c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #19641
[Bug 737786] [NEW] [6.0.1] Invoicing an outgoing picking list from a sale order including service products
Public bug reported:
If you invoice an outgoing picking list whose sale order includes
service products, and the purchase module is installed, you can get the
following error because action_invoice_create() tries to get an
analytical account but the inherit _get_account_analytic_invoice()
method defined in purchase module is called.
It could be fixes if line 104 of file purchase/stock.py:
if move_line.purchase_line_id:
is changed to:
if picking.purchase_id and move_line.purchase_line_id:
File "server/bin/addons/stock/wizard/stock_invoice_onshipping.py", line 93, in open_invoice
res = self.create_invoice(cr, uid, ids, context=context)
File "server/bin/addons/purchase/purchase.py", line 835, in create_invoice
res = super(stock_invoice_onshipping,self).create_invoice(cr, uid, ids, context=context)
File "server/bin/addons/stock/wizard/stock_invoice_onshipping.py", line 131, in create_invoice
context=context)
File "server/bin/addons/delivery/stock.py", line 81, in action_invoice_create
context=context)
File "server/bin/addons/sale/stock.py", line 167, in action_invoice_create
user, picking, sale_line)
File "server/bin/addons/purchase/stock.py", line 104, in _get_account_analytic_invoice
if move_line.purchase_line_id:
File "server/bin/osv/orm.py", line 287, in __getattr__
raise AttributeError(e)
AttributeError: "Field 'purchase_line_id' does not exist in object 'browse_record(sale.order.line, 393)'"
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/737786
Title:
[6.0.1] Invoicing an outgoing picking list from a sale order including
service products
Status in OpenERP Modules (addons):
New
Bug description:
If you invoice an outgoing picking list whose sale order includes
service products, and the purchase module is installed, you can get
the following error because action_invoice_create() tries to get an
analytical account but the inherit _get_account_analytic_invoice()
method defined in purchase module is called.
It could be fixes if line 104 of file purchase/stock.py:
if move_line.purchase_line_id:
is changed to:
if picking.purchase_id and move_line.purchase_line_id:
File "server/bin/addons/stock/wizard/stock_invoice_onshipping.py", line 93, in open_invoice
res = self.create_invoice(cr, uid, ids, context=context)
File "server/bin/addons/purchase/purchase.py", line 835, in create_invoice
res = super(stock_invoice_onshipping,self).create_invoice(cr, uid, ids, context=context)
File "server/bin/addons/stock/wizard/stock_invoice_onshipping.py", line 131, in create_invoice
context=context)
File "server/bin/addons/delivery/stock.py", line 81, in action_invoice_create
context=context)
File "server/bin/addons/sale/stock.py", line 167, in action_invoice_create
user, picking, sale_line)
File "server/bin/addons/purchase/stock.py", line 104, in _get_account_analytic_invoice
if move_line.purchase_line_id:
File "server/bin/osv/orm.py", line 287, in __getattr__
raise AttributeError(e)
AttributeError: "Field 'purchase_line_id' does not exist in object 'browse_record(sale.order.line, 393)'"
Follow ups
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Rucha (Open ERP), 2011-09-19
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: qdp (OpenERP), 2011-09-19
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Fabien (Open ERP), 2011-09-18
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Atik Agewan(OpenERP), 2011-08-11
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Launchpad Bug Tracker, 2011-08-11
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Atik Agewan(OpenERP), 2011-08-11
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Olivier Dony (OpenERP), 2011-08-10
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Olivier Dony (OpenERP), 2011-08-10
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Jordi Esteve (www.zikzakmedia.com), 2011-08-09
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Amit Parik (OpenERP), 2011-08-03
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Ken Chen, 2011-07-21
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Fabien (Open ERP), 2011-07-20
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Raphaël Valyi - http : //www . akretion . com, 2011-07-20
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Ken Chen, 2011-07-20
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Amit Parik (OpenERP), 2011-05-25
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Amit Parik (OpenERP), 2011-05-12
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Amit Parik (OpenERP), 2011-05-12
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Samuel_B, 2011-05-11
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: SG E-ndicus(Selvam), 2011-05-11
-
[Bug 737786] Re: [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Amit Parik (OpenERP), 2011-03-23
-
[Bug 737786] [NEW] [6.0.1] Invoicing an outgoing picking list from a sale order including service products
From: Jordi Esteve (www.zikzakmedia.com), 2011-03-18
References