← Back to team overview

openerp-india team mailing list archive

[Bug 1229750] Re: [trunk] sale.order.line.make.invoice and purchase.order.line.invoice are impossible to extend

 

Hello Alexandre,

Would you please explain this with complete example. So I can do a test
on it.

Thank you

** Changed in: openobject-addons
       Status: New => Incomplete

-- 
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):
  Incomplete

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