Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-912953-mma into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #912953 in OpenERP Addons: "Product Visible Discount causes error when
entering invoice lines"
https://bugs.launchpad.net/openobject-addons/+bug/912953
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-912953-mma/+merge/88038
Hello,
product_visible_discount: I Have a add company in product_id_change
method
Thanks.
Mayur Mahehswari [ mma ]
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-912953-mma/+merge/88038
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-912953-mma.
=== modified file 'product_visible_discount/product_visible_discount.py'
--- product_visible_discount/product_visible_discount.py 2011-12-31 07:57:20 +0000
+++ product_visible_discount/product_visible_discount.py 2012-01-10 11:43:26 +0000
@@ -103,7 +103,7 @@
class account_invoice_line(osv.osv):
_inherit = "account.invoice.line"
- def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None):
+ def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None, company_id=None):
res = super(account_invoice_line, self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition_id, price_unit, address_invoice_id, currency_id, context=context)
def get_real_price(res_dict, product_id, qty, uom, pricelist):
_______________________________________________
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