Merge lp:~openerp-dev/openobject-addons/6.0-opw-578986-ado into lp:openobject-addons/6.0

Proposed by Amit Dodiya (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 5338
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-578986-ado
Merge into: lp:openobject-addons/6.0
Diff against target: 11 lines (+1/-0)
1 file modified
stock/stock.py (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-578986-ado
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+123488@code.launchpad.net

Description of the change

Hello,

[FIX] export inventory gives traceback due to name is not supplied for inventory line

Stpes:
1). Goto : Warehouse/Inventory Control/Physical Inventories
2). Now try to export the inventory with inventory line
You will get the traceback.

Code is back-ported from stable 6.1

Regards,
Amit Dodiya

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve

Unmerged revisions

5338. By Amit Dodiya<email address hidden>

[FIX] export inventory gives traceback due to name is not supplied for inventory line

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-17 07:46:56 +0000
3+++ stock/stock.py 2012-09-10 06:47:47 +0000
4@@ -2649,6 +2649,7 @@
5 class stock_inventory_line(osv.osv):
6 _name = "stock.inventory.line"
7 _description = "Inventory Line"
8+ _rec_name = "inventory_id"
9 _columns = {
10 'inventory_id': fields.many2one('stock.inventory', 'Inventory', ondelete='cascade', select=True),
11 'location_id': fields.many2one('stock.location', 'Location', required=True),