Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-893130-ksa into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #893130 in OpenERP Addons: "Invoice state should be reset when an
invoiced picking is copied"
https://bugs.launchpad.net/openobject-addons/+bug/893130
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-893130-ksa/+merge/82975
original invoice state is 'invoiced' when copied that picking invoice state
should be '2binvoiced'.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-893130-ksa/+merge/82975
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-893130-ksa.
=== modified file 'stock/stock.py'
--- stock/stock.py 2011-11-17 19:12:15 +0000
+++ stock/stock.py 2011-11-22 06:28:25 +0000
@@ -694,6 +694,8 @@
default['name'] = self.pool.get('ir.sequence').get(cr, uid, seq_obj_name)
default['origin'] = ''
default['backorder_id'] = False
+ if picking_obj.invoice_state == 'invoiced':
+ default['invoice_state'] = '2binvoiced'
res=super(stock_picking, self).copy(cr, uid, id, default, context)
if res:
picking_obj = self.browse(cr, uid, res, context=context)
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp