Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2897 Vizualizări

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 ? 

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
apr. 24
2678
1
dec. 24
4091
0
nov. 24
1672
2
iul. 24
3425
0
apr. 24
2202