Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2881 Widoki

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 ? 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 24
2662
1
gru 24
4063
0
lis 24
1666
2
lip 24
3401
0
kwi 24
2195