Skip to Content
Menu
This question has been flagged
2 Replies
2857 Rodiniai

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 ? 

Portretas
Atmesti
Autorius Best Answer

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

Portretas
Atmesti
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 

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
bal. 24
2626
1
gruod. 24
4003
0
lapkr. 24
1637
2
liep. 24
3358
0
bal. 24
2166