← Back to team overview

openerp-india team mailing list archive

[Bug 1012276] Re: sale_multi_shop has two definitions of method sale._make_invoice

 

Mariano,

Good catch.

You are Right but which one to remove?

I see second one a clearer one to use. But if I talk about first one,
the author has added shop_id to user and thus first override is also not
to be ignored.

Overall, the author can signify the importance!

Thanks.

-- 
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/1012276

Title:
  sale_multi_shop has two definitions of method sale._make_invoice

Status in OpenERP Addons (modules):
  New

Bug description:
  In lp:openobject-addons/extra-6.0, the sale_multi_shop has a class
  sale_order that extend of "sale.order", and have two definitions of
  the same method

      def _make_invoice(self, cr, uid, order, lines, context=None)

  This not cause any error in OpenERP, but only the second definitions
  is invoked, and represent a programming error.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1012276/+subscriptions


References