Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2868 Visualizzazioni

I have created custom module after but Create New button on top of form not showing i already add the button code on xml view ? 

Avatar
Abbandona
Autore Risposta migliore

Ok can we use validation in the xml view input fields?? 

Avatar
Abbandona
Risposta migliore

Hi

Please try this example 

<record id="model_form" model="ir.ui.view">
<field name="name">model.model.form</field>
<field name="model">model.model</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_confirm" type="object"
string="Confirm"
states="draft"/>
</header>
</form>
</field>
</record>


Also define the action_confirm function inside the model .


Regards 

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 24
2650
1
dic 24
4030
0
nov 24
1648
2
lug 24
3377
0
apr 24
2177