c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23060
[Bug 767350] Re: Assets field does not exist
** Changed in: openobject-addons
Status: New => Confirmed
** Changed in: openobject-addons
Importance: Undecided => Medium
** Changed in: openobject-addons
Status: Confirmed => Fix Committed
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/767350
Title:
Assets field does not exist
Status in OpenERP Modules (addons):
Fix Committed
Bug description:
The new design in asset module remove one2mny relation between
account.asset.asset object and account.asset.method but several
methods in account.asset.method still consider this relation to
compute/process data.
One error as example:
Traceback (most recent call last):
File "/home/ovnicraft/development/openerp/v6/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/ovnicraft/development/openerp/v6/server/bin/service/web_services.py", line 636, in dispatch
res = fn(db, uid, *params)
File "/home/ovnicraft/development/openerp/v6/server/bin/service/web_services.py", line 663, in exp_execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/home/ovnicraft/development/openerp/v6/server/bin/service/web_services.py", line 645, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File "/home/ovnicraft/development/openerp/v6/server/bin/wizard/__init__.py", line 177, in execute
res = self.execute_cr(cr, uid, data, state, context)
File "/home/ovnicraft/development/openerp/v6/server/bin/wizard/__init__.py", line 72, in execute_cr
action_res = action(self, cr, uid, data, context)
File "/home/ovnicraft/development/openerp/proyectos/autoplaza/addons/account_fixed_assets/wizard/wizard_asset_reval.py", line 56, in _asset_default
asset_category_id = method.asset_id.category_id and method.asset_id.category_id.id or False
File "/home/ovnicraft/development/openerp/v6/server/bin/osv/orm.py", line 294, in __getattr__
raise AttributeError(e)
AttributeError: "Field 'asset_id' does not exist in object 'browse_record(account.asset.method, 2)'"
References