Rifakat (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-57602-rha into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-57602-rha/+merge/94540

Hello,

Fixed the issue for invoicing from delivery order while having sale ref in 
picking and sale line ahs service product.

Please review it.

Regards,
Rifakat.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-57602-rha/+merge/94540
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-57602-rha.
=== modified file 'purchase/stock.py'
--- purchase/stock.py	2012-02-17 07:11:21 +0000
+++ purchase/stock.py	2012-02-24 13:17:21 +0000
@@ -101,7 +101,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

Reply via email to