Incorrect sequence when calling Super()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have this modules installed:
1 - purchase
2 - account_
3 - l10n_br_purchase ( depends account_
#l10n_br_
def onchange_
if not context:
context = {}
# TODO try to upstream web_context_tunnel in fiscal-rules
# to avoid having to change this signature
if not company_id:
cr, uid, uid, context)
return super(PurchaseO
cr, uid, ids, partner_id, company_id, context,
#account_
def onchange_
if not context:
context = {}
result = super(purchase_
cr, uid, ids, partner_id)
if not partner_id or not company_id:
return result
})
return self._fiscal_
# purchase/
def onchange_
partner = self.pool.
if not partner_id:
return {'value': {
}}
supplier = partner.browse(cr, uid, partner_id)
return {'value': {
}}
In common situations the l10n_br_purchase calls account_
Client Traceback (most recent call last):
File "/opt/openerp/
response[
File "/opt/openerp/
return self._call_kw(req, model, method, args, kwargs)
File "/opt/openerp/
return getattr(
File "/opt/openerp/
result = self.proxy.
File "/opt/openerp/
result = self.session.
File "/opt/openerp/
raise xmlrpclib.
Server Traceback (most recent call last):
File "/opt/openerp/
return openerp.
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
fiscal_
TypeError: onchange_
I don't know why the super calling sequence is wrong, but if i uninstall account_
Any one have some issue like this?
Thanks in advance.