Merge lp:~openerp-dev/openobject-addons/trunk-bug-1122461-cha into lp:openobject-addons

Proposed by Ajay Chauhan(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1122461-cha
Merge into: lp:openobject-addons
Diff against target: 46 lines (+6/-6)
2 files modified
stock/stock.py (+3/-3)
stock/stock_view.xml (+3/-3)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1122461-cha
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+159815@code.launchpad.net

Description of the change

Hello,

  I have solved bug: https://bugs.launchpad.net/openobject-addons/+bug/1122461
The issue is that is is possible to edit packs even when stock move hase been done.

Thanks,
Ajay Chauhan(CHA)

To post a comment you must log in.

Unmerged revisions

8687. By Ajay Chauhan(OpenERP)

[FIX] stock: solve issue that packaging edition can be done when product is recieved

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'stock/stock.py'
--- stock/stock.py 2013-04-15 10:23:49 +0000
+++ stock/stock.py 2013-04-19 12:55:30 +0000
@@ -1588,7 +1588,7 @@
1588 return True1588 return True
15891589
1590 _columns = {1590 _columns = {
1591 'name': fields.char('Description', required=True, select=True),1591 'name': fields.char('Description', required=True, select=True, states={'done': [('readonly', True)]}),
1592 'priority': fields.selection([('0', 'Not urgent'), ('1', 'Urgent')], 'Priority'),1592 'priority': fields.selection([('0', 'Not urgent'), ('1', 'Urgent')], 'Priority'),
1593 'create_date': fields.datetime('Creation Date', readonly=True, select=True),1593 'create_date': fields.datetime('Creation Date', readonly=True, select=True),
1594 'date': fields.datetime('Date', required=True, select=True, help="Move date: scheduled date until move is done, then date of actual move processing", states={'done': [('readonly', True)]}),1594 'date': fields.datetime('Date', required=True, select=True, help="Move date: scheduled date until move is done, then date of actual move processing", states={'done': [('readonly', True)]}),
@@ -1640,11 +1640,11 @@
1640 'price_currency_id': fields.many2one('res.currency', 'Currency for average price', help="Technical field used to record the currency chosen by the user during a picking confirmation (when average price costing method is used)"),1640 'price_currency_id': fields.many2one('res.currency', 'Currency for average price', help="Technical field used to record the currency chosen by the user during a picking confirmation (when average price costing method is used)"),
1641 'company_id': fields.many2one('res.company', 'Company', required=True, select=True),1641 'company_id': fields.many2one('res.company', 'Company', required=True, select=True),
1642 'backorder_id': fields.related('picking_id','backorder_id',type='many2one', relation="stock.picking", string="Back Order of", select=True),1642 'backorder_id': fields.related('picking_id','backorder_id',type='many2one', relation="stock.picking", string="Back Order of", select=True),
1643 'origin': fields.related('picking_id','origin',type='char', size=64, relation="stock.picking", string="Source", store=True),1643 'origin': fields.related('picking_id','origin',type='char', size=64, relation="stock.picking", string="Source", store=True, states={'done': [('readonly', True)]}),
16441644
1645 # used for colors in tree views:1645 # used for colors in tree views:
1646 'scrapped': fields.related('location_dest_id','scrap_location',type='boolean',relation='stock.location',string='Scrapped', readonly=True),1646 'scrapped': fields.related('location_dest_id','scrap_location',type='boolean',relation='stock.location',string='Scrapped', readonly=True),
1647 'type': fields.related('picking_id', 'type', type='selection', selection=[('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal')], string='Shipping Type'),1647 'type': fields.related('picking_id', 'type', type='selection', selection=[('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal')], string='Shipping Type', states={'done': [('readonly', True)]}),
1648 }1648 }
16491649
1650 def _check_location(self, cr, uid, ids, context=None):1650 def _check_location(self, cr, uid, ids, context=None):
16511651
=== modified file 'stock/stock_view.xml'
--- stock/stock_view.xml 2013-03-21 09:37:16 +0000
+++ stock/stock_view.xml 2013-04-19 12:55:30 +0000
@@ -1151,12 +1151,12 @@
1151 <field name="tracking_id" groups="stock.group_tracking_lot"/>1151 <field name="tracking_id" groups="stock.group_tracking_lot"/>
1152 <button name="setlast_tracking" string="Put in current pack" type="object"1152 <button name="setlast_tracking" string="Put in current pack" type="object"
1153 groups="product.group_stock_packaging"1153 groups="product.group_stock_packaging"
1154 icon="terp-accessories-archiver" attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"1154 icon="terp-accessories-archiver"
1155 states="draft,assigned,confirmed,done"/>1155 states="draft,assigned,confirmed"/>
1156 <button name="%(split_into)d" string="Put in a new pack" type="action"1156 <button name="%(split_into)d" string="Put in a new pack" type="action"
1157 groups="product.group_stock_packaging"1157 groups="product.group_stock_packaging"
1158 icon="terp-accessories-archiver+"1158 icon="terp-accessories-archiver+"
1159 states="draft,assigned,confirmed,done"/>1159 states="draft,assigned,confirmed"/>
1160 <field name="location_id" groups="stock.group_locations"/>1160 <field name="location_id" groups="stock.group_locations"/>
1161 <field name="location_dest_id" groups="stock.group_locations"/>1161 <field name="location_dest_id" groups="stock.group_locations"/>
1162 <field name="date" groups="base.group_no_one"/>1162 <field name="date" groups="base.group_no_one"/>

Subscribers

People subscribed via source and target branches

to all changes: