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!
Înscrie-te| Related Posts | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
1
mar. 25
|
2726 | |||
|
0
nov. 24
|
2577 | |||
|
0
iun. 24
|
2277 | |||
|
1
iun. 24
|
2879 | |||
|
0
oct. 23
|
2953 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.