mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[PORT] value_reference of ir.property is a char
This commit is contained in:
@@ -272,7 +272,8 @@ class wizard_update_charts_accounts(orm.TransientModel):
|
||||
if property_ids:
|
||||
prop = property_obj.browse(
|
||||
cr, uid, property_ids[0], context=context)
|
||||
account_id = prop.value_reference.id
|
||||
account_id = len(prop.value_reference.split(',')) == 2 and\
|
||||
int(prop.value_reference.split(',')[1]) or False
|
||||
if account_id:
|
||||
code = account_obj.read(
|
||||
cr, uid, account_id, ['code'], context)['code']
|
||||
|
||||
Reference in New Issue
Block a user