Atik Agewan(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-737786-aag into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #737786 in OpenERP Addons: "[6.0.1] Invoicing an outgoing picking list
from a sale order including service products"
https://bugs.launchpad.net/openobject-addons/+bug/737786
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-737786-aag/+merge/71172
Hello
Purchase:Invoice is create when outgoing picking list from a sale order
including service products
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-737786-aag/+merge/71172
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-737786-aag.
=== modified file 'purchase/stock.py'
--- purchase/stock.py 2011-02-25 14:53:47 +0000
+++ purchase/stock.py 2011-08-11 10:11:37 +0000
@@ -105,7 +105,7 @@
return super(stock_picking, self)._get_taxes_invoice(cursor, user, move_line, type)
def _get_account_analytic_invoice(self, cursor, user, picking, move_line):
- if move_line.purchase_line_id:
+ if picking.purchase_id and move_line.purchase_line_id:
return move_line.purchase_line_id.account_analytic_id.id
return super(stock_picking, self)._get_account_analytic_invoice(cursor, user, picking, move_line)
_______________________________________________
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