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'))]"| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
1
3月 25
|
2732 | |||
|
0
11月 24
|
2598 | |||
|
0
6月 24
|
2283 | |||
|
1
6月 24
|
2890 | |||
|
0
10月 23
|
2956 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.