Divyesh Makwana(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-881337-mdi into 
lp:openobject-addons.

Requested reviews:
  Divyesh Makwana(OpenERP) (mdi-openerp)
  Mustufa Rangwala (Open ERP) (mra-tinyerp)
Related bugs:
  Bug #870099 in OpenERP Addons: "accounting report filter: period start and 
end are sometimes swapped"
  https://bugs.launchpad.net/openobject-addons/+bug/870099
  Bug #881337 in OpenERP Addons: "duplicate key value violates unique 
constraint "picking_invoice_rel_picking_id_key"
  https://bugs.launchpad.net/openobject-addons/+bug/881337

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-881337-mdi/+merge/81807

Hello Sir,

I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/881337 
"duplicate key value violates unique constraint 
'picking_invoice_rel_picking_id_key' ".

Thanks and Regards,

Divyesh Makwana(MDI)
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-881337-mdi/+merge/81807
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-881337-mdi.
=== modified file 'sale_margin/sale_margin.py'
--- sale_margin/sale_margin.py	2011-09-17 17:38:27 +0000
+++ sale_margin/sale_margin.py	2011-11-10 05:19:34 +0000
@@ -95,7 +95,8 @@
         picking_obj = self.pool.get('stock.picking')
         res = super(stock_picking, self).action_invoice_create(cr, uid, ids, journal_id=journal_id, group=group, type=type, context=context)
         invoice_ids = res.values()
-        picking_obj.write(cr, uid, ids, {'invoice_ids': [[6, 0, invoice_ids]]})
+        for inv_ids in invoice_ids:
+            picking_obj.write(cr, uid, ids, {'invoice_ids': [(6, 0, [inv_ids])]})
         return res
 
 stock_picking()

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to