Skip to Content
Menu
This question has been flagged
1 Atsakyti
2798 Rodiniai

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


Portretas
Atmesti
Best Answer

Hi,

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


Thanks & Regards

Walnut Software Solutions

Portretas
Atmesti
Autorius

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>

Autorius

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

Related Posts Replies Rodiniai Veikla
1
kov. 15
7273
0
birž. 22
1772
1
spal. 19
5002
3
bal. 18
5192
4
rugp. 21
67221