[V6]on_change_product search for the property id instead of account_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
Hello,
In addons/
app_acc_exp = account_
But, if you search at exp_pro_id, you'll see that it is define in line 1319:
exp_pro_id = property_
or 1321:
exp_pro_id = property_
exp_pro_id is the id of a property (table ir.property), not of an account. This causes errors.
To resolve the problem, you should use the same function that the in account.
# Get the fields from the ir.property record
my_value = property_
# Parse the value_reference field to get the ID of the account.account record
account_id = int (my_value[
I use OpenERP 6.0.3 (the release we can download from the download page in the openerp website)
tags: | added: maintenance |
Hello Damien
I have checked your issue at my side. It's working properly
the code you have suggested is already updated in stable(6.0.3) at line no "1332".
so you please check with updated code.
if you still face the problem. notify us
Thanks
Ravish