openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #26866
[Bug 1229750] Re: [trunk] sale.order.line.make.invoice and purchase.order.line.invoice are impossible to extend
** Changed in: openobject-addons
Status: Invalid => New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1229750
Title:
[trunk] sale.order.line.make.invoice and purchase.order.line.invoice
are impossible to extend
Status in OpenERP Addons (modules):
New
Bug description:
The code in the two wizards sale.order.line.make.invoice and
purchase.order.line.invoice needs fixing:
* it uses inner function to create the invoices and invoice lines, which makes it impossible to extend using the standard openerp practices (_inherit + super())
* it bypasses the _prepare_invoice_line methods of sale order and purchase orders
the net effect is that the customizations need to be written twice,
and one of the places is awkward (requires complete rewrite of the
wizard implementation, which in turns breaks separation of concern
through different modules extending the same object)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1229750/+subscriptions
References