Merge lp:~openerp-dev/openobject-addons/6.1-opw-577716-mtr into lp:openobject-addons/6.1

Proposed by Meera Trambadia (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 6948
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-577716-mtr
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
stock/stock.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-577716-mtr
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+119517@code.launchpad.net

Description of the change

Hello,

[FIX] stock: fixed the issue of ascii code on packaging number.

Steps:-
1.Create a Delivery order.
2.Create a Packaging,the packaging number get some strange ascii code after it.

Kindly review the fix.

Thanks,
mtr

To post a comment you must log in.
6948. By Meera Trambadia (OpenERP)

[IMP] stock: removed or from the condition preventing the concatenation of empty brackets on packaging no

Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug is not reproducible on Trunk, if this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6948. By Meera Trambadia (OpenERP)

[IMP] stock: removed or from the condition preventing the concatenation of empty brackets on packaging no

6947. By Meera Trambadia (OpenERP)

[FIX] stock: fixed the issue of ascii code on packaging number (OPW:577716)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2012-08-07 10:04:35 +0000
3+++ stock/stock.py 2012-08-27 07:32:36 +0000
4@@ -512,7 +512,7 @@
5 def name_get(self, cr, uid, ids, context=None):
6 if not len(ids):
7 return []
8- res = [(r['id'], r['name']+' ['+(r['serial'] or '')+']') for r in self.read(cr, uid, ids, ['name', 'serial'], context)]
9+ res = [(r['id'], r['name']+' ['+(r['serial'])+']') if r['serial'] else (r['id'], r['name']) for r in self.read(cr, uid, ids, ['name', 'serial'], context)]
10 return res
11
12 def unlink(self, cr, uid, ids, context=None):