Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2662 Vistas

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 Mejor respuesta

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

Avatar
Descartar
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 24
2344
1
dic 24
3268
0
nov 24
1406
2
jul 24
2808
0
abr 24
1940