openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14048
[Bug 1029198] Re: [6.1] product_extended error when compute standard price
Hello Diego,
Hello,
product_extended module is part of the extra-addons, which are maintained by the community, including all the modules created by "OpenERP" or "Tiny",
as none of these are actively developed by our teams anymore.
First of all "Compute standard price" wizard is a old pattern wizard
which doesn't supported on new web client, So defiantly you have faced
the error on gtk-client. But we have to improve it and make this wizard
as a "osv.osv_memory". Now the main thing which is the error. You have
faced this error because _compute_price 's argument are wrong on
wizard_price.py. The main method created on product.py which have a
_compute_price(self, cr, uid, from_uom_id, price, to_uom_id=False)
parameter but at the time of overriding on wizard_price.py passed
context on agrument. So you will be changed the agurment on this method
as well as when method will call.
If you or anyone from the community would like to work on it, please mark the bug as "In progress" and assign it to yourself
(or ask us or anyone from OpenERP Drivers to do it for you). In the mean time, we will mark it as "Won't fix" to indicate that
no further progress is expected at the moment. If you require further assistance with any trouble while updating the module,
do not hesitate to ask here or via a question: https://answers.launchpad.net/openobject-addons
I hope you understand, and perhaps this explanation will be helpful to you if you start fixing this extra-addon...
Thank you!
PS: For whomever works on fixing this, you probably want to apply/merge your changes in both the 6.0 and trunk branches of extra-addons:
- https://code.launchpad.net/~openerp-commiter/openobject-addons/extra-6.0
- https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons
** Changed in: openobject-addons
Status: New => Won't Fix
** Summary changed:
- [6.1] product_extended error when compute standard price
+ [extra-addons] product_extended error when compute standard price
--
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/1029198
Title:
[extra-addons] product_extended error when compute standard price
Status in OpenERP Addons (modules):
Won't Fix
Bug description:
Hi all:
When I try to compute the price of a product via BOM, the next error
occurs:
Environment Information :
System : Linux-3.2.0-27-generic-x86_64-with-Ubuntu-12.04-precise
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
Operating System Release : 3.2.0-27-generic
Operating System Version : #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012
Operating System Architecture : 64bit
Operating System Locale : es_DO.UTF-8
Python Version : 2.7.3
OpenERP-Client Version : 6.1-20120709-233338
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/dna1/openerp-6.1-20120711-233320/openerp/service/netrpc_server.py", line 64, in run
result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
File "/home/dna1/openerp-6.1-20120711-233320/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/dna1/openerp-6.1-20120711-233320/openerp/service/web_services.py", line 617, in dispatch
res = fn(db, uid, *params)
File "/home/dna1/openerp-6.1-20120711-233320/openerp/service/web_services.py", line 641, in exp_execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/home/dna1/openerp-6.1-20120711-233320/openerp/service/web_services.py", line 623, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File "/home/dna1/openerp-6.1-20120711-233320/openerp/wizard/__init__.py", line 185, in execute
res = self.execute_cr(cr, uid, data, state, context)
File "/home/dna1/openerp-6.1-20120711-233320/openerp/wizard/__init__.py", line 90, in execute_cr
res['action'] = result_def['action'](self, cr, uid, data, context)
File "/home/dna1/openerp-6.1-20120711-233320/openerp/addons/product_extended/wizard/wizard_price.py", line 31, in _compute_price
bom.product_id.compute_price(cr, uid, bom.product_id.id)
File "/home/dna1/openerp-6.1-20120711-233320/openerp/osv/orm.py", line 368, in function_proxy
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
TypeError: compute_price() got an unexpected keyword argument 'context'
Can you help me??
Best regards
DG
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1029198/+subscriptions
References