Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2507 Visualizzazioni

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


Avatar
Abbandona
Risposta migliore

Hi,

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


Thanks & Regards

Walnut Software Solutions

Avatar
Abbandona
Autore

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>

Autore

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

Post correlati Risposte Visualizzazioni Attività
1
mar 15
6880
0
giu 22
1542
1
ott 19
4673
3
apr 18
4906
4
ago 21
65680