跳至内容
菜单
此问题已终结
1 回复
2363 查看

Hello everyone,

I need to make partner and bill/invoice date required field in when create bill or invoice, i did it using xpath but i notice that when i try to create and save journal entries it show an error message say that the field partner and date are required.

using python inherit cause same issue.

any idea how to avoid that but i need the field required when create invoice.

Thank all


形象
丢弃
最佳答案

Hi,

If you have directly given required = 1, try giving as follows:  attrs="{'required':[('move_type', '!=', 'entry')]}"


Thanks & Regards

Walnut Software Solutions

形象
丢弃
编写者

Thank For Replay,
but i used like that:
<xpath expr="//field[@name='partner_id']" position="attributes">
<attribute name="attrs">attrs="{'required':[('move_type', '!=', 'entry')]}"</attribute>
</xpath>
and i get 500 internal server error
any idea ?

Written syntax is wrong.
Try this:
<attribute name="attrs">{'required':[('move_type', '!=', 'entry')]}</attribute>

编写者

You are great, its work now.
you save me, i really appreciate your help.

相关帖文 回复 查看 活动
1
3月 15
6626
0
6月 22
1389
1
10月 19
4423
3
4月 18
4606
4
8月 21
64844