Skip to Content
Menu
This question has been flagged
2 Replies
1798 Views

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
Discard
Author Best Answer

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

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
1
Apr 24
1039
1
Dec 24
178
0
Nov 24
69
2
Jul 24
713
0
Apr 24
563