Skip to Content
Menú
This question has been flagged
2 Respostes
2875 Vistes

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
Descartar
Autor Best Answer

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

Avatar
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
d’abr. 24
2660
1
de des. 24
4057
0
de nov. 24
1663
2
de jul. 24
3397
0
d’abr. 24
2191