Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2716 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 24
2426
1
pro 24
3489
0
lis 24
1449
2
čvc 24
2944
0
dub 24
2009