← Back to team overview

openerp-india team mailing list archive

[Bug 1074228] Re: Accounting Asset syntax error

 

Hello jacara,

As your suggestion is right.This issue has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-1074228-kbh
branch with following rev no and rev ID

Rev No : 7906
Revision ID:  kbh@xxxxxxxxxxx-20121102072500-ylzaw1i75a13kimh

Thanks,
Khushboo.

** Changed in: openobject-addons
       Status: In Progress => Fix Committed

-- 
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/1074228

Title:
  Accounting Asset syntax error

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  
  On addons/account_asset/account_asset.py line 365:

  sign = line.asset_id.category_id.journal_id.type = 'purchase' and 1 or
  -1

  this expression has a BUG. It's seems always return 1 value. Never get
  -1 value.

  It must be like this:
  sign = (line.asset_id.category_id.journal_id.type == 'purchase' and 1) or -1

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1074228/+subscriptions


References