← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-724131-ksa into lp:openobject-addons

 

Kirti Savalia(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-724131-ksa into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  #724131 Purchase lines without Invoice Lines Relationship
  https://bugs.launchpad.net/bugs/724131

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-724131-ksa/+merge/51113

https://bugs.launchpad.net/openobject-addons/+bug/724131
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-724131-ksa/+merge/51113
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-724131-ksa.
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py	2011-02-14 11:45:07 +0000
+++ purchase/purchase.py	2011-02-24 12:11:26 +0000
@@ -389,7 +389,7 @@
             }
             inv_id = self.pool.get('account.invoice').create(cr, uid, inv, {'type':'in_invoice'})
             self.pool.get('account.invoice').button_compute(cr, uid, [inv_id], {'type':'in_invoice'}, set_total=True)
-            self.pool.get('purchase.order.line').write(cr, uid, todo, {'invoiced':True})
+            self.pool.get('purchase.order.line').write(cr, uid, todo, {'invoiced':True, 'invoice_lines': [(4, inv_id)]})
             self.write(cr, uid, [o.id], {'invoice_ids': [(4, inv_id)]})
             res = inv_id
         return res


Follow ups