Khushboo Bhatt(openerp) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1074228-kbh into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1074228 in OpenERP Addons: "Accounting Asset syntax error"
  https://bugs.launchpad.net/openobject-addons/+bug/1074228

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1074228-kbh/+merge/132655

Hello,
  I have fixed the issue of account assets.

Thanks,
KBH.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1074228-kbh/+merge/132655
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1074228-kbh.
=== modified file 'account_asset/account_asset.py'
--- account_asset/account_asset.py	2012-10-12 11:42:58 +0000
+++ account_asset/account_asset.py	2012-11-02 09:16:21 +0000
@@ -376,7 +376,7 @@
             current_currency = line.asset_id.currency_id.id
             context.update({'date': depreciation_date})
             amount = currency_obj.compute(cr, uid, current_currency, company_currency, line.amount, context=context)
-            sign = line.asset_id.category_id.journal_id.type = 'purchase' and 1 or -1
+            sign = (line.asset_id.category_id.journal_id.type == 'purchase' and 1) or -1
             asset_name = line.asset_id.name
             reference = line.name
             move_vals = {

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to