[Trunk]Problem in product on_change method in sale_margin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Steps to reproduce:
1) Install sale_margin module
2) Create a SO Open the So line you have faced the following traceback.
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
TypeError: product_id_change() takes at most 18 arguments (19 given)
Solution : the context is missing in product_id_change method is sale.order.line object.
=== modified file 'sale_margin/
--- sale_margin/
+++ sale_margin/
@@ -25,7 +25,7 @@
def product_
- lang=False, update_tax=True, date_order=False, packaging=False, fiscal_
+ lang=False, update_tax=True, date_order=False, packaging=False, fiscal_
res = super(sale_
Related branches
- Mustufa Rangwala (Open ERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 16 lines (+2/-2)1 file modifiedsale_margin/sale_margin.py (+2/-2)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hello Amit Parik,
Thanks for Reporting this issue. i have checked your solution and its working fine. Following are the Revision ID and Number of the bug :
Revision ID : <email address hidden>
Revision Number : 4883
The solution will be merged in addons soon.
Thanks & Regards,
Devnani Bharat R.