I am trying to use ref() to get the ID of a field based on it's name but I am having issues.
eval="[(4, ref(sale.field_sale_order__amount_untaxed))]"The above gives me an "Access to forbidden name" error
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am trying to use ref() to get the ID of a field based on it's name but I am having issues.
eval="[(4, ref(sale.field_sale_order__amount_untaxed))]"The above gives me an "Access to forbidden name" error
Hi Jonah:
You need to put single quotes around the id like so:
eval="[(4, ref('sale.field_sale_order__amount_untaxed'))]"
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Nov 24
|
128 | ||
|
0
Jun 24
|
265 | ||
|
1
Jun 24
|
694 | ||
|
0
Oct 23
|
949 | ||
|
2
Mar 23
|
1483 |