← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 767350] Re: Assets field does not exist

 

On 20. 04. 11 19:00, Cristian Salamea (Gnuthink) wrote:
> This bug does not affect to official addons but i reported to link to
> branch for this.
>
> regards,
>
I am very happy that the interest in the Fixed Assets Module grows!

I also think that it is a great idea to refactor the wizards into the
new style! I planned for that, but I am quite busy for the moment...

Just one remark, I think that the wiki style naming is not in line with
the OpenERP standards (e.g. class WizardAssetClose).  Of course, this is
not a big "deal" for the time being, but if I am right, then going by
the standards could be a good idea.

Thank you,
Bogdan

-- 
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):
  New

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