コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2873 ビュー

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 ? 

アバター
破棄
著作者 最善の回答

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

アバター
破棄
最善の回答

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 

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 24
2654
1
12月 24
4040
0
11月 24
1656
2
7月 24
3381
0
4月 24
2183