Review: Needs Fixing
8 + def onchange_account_asset(self, cr, uid, ids, account_asset_id,
context=None):
9 + res = {'value':{}}
10 + if account_asset:
11 + res['value'] = {'account_depreciation_id': account_asset_id}
12 + return res
13 +
=> you are getting account_asset_id and you have if condition with if
account_asset: ?
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-account-asset-onchange-asset-account-bde/+merge/61209
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-account-asset.
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help : https://help.launchpad.net/ListHelp