I have many 2one field like this <field name="contract_id" widget="selection" domain="[('partner_id','=',partner_id),('state','=','draft')]" required="1"/>
i am getting invalid architecture problem how to solve the issue
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have many 2one field like this <field name="contract_id" widget="selection" domain="[('partner_id','=',partner_id),('state','=','draft')]" required="1"/>
i am getting invalid architecture problem how to solve the issue
Unfortunately widget="selection" don't support dinamic domain.
If you need widget selection then remove from domain non static value like partner_id:
<field name="contract_id" widget="selection" domain="[('state','=','draft')]" required="1"/>
If you need domain with dinamic value you have to remove widget="selection":
<field name="contract_id" domain="[('partner_id','=',partner_id),('state','=','draft')]" required="1"/>
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
2
9月 23
|
10576 | |||
|
1
10月 22
|
4624 | |||
|
0
10月 20
|
4045 | |||
|
1
8月 17
|
4652 | |||
|
8
2月 17
|
9212 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.