跳至內容
選單
此問題已被標幟
2 回覆
2869 瀏覽次數

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
2650
1
12月 24
4030
0
11月 24
1648
2
7月 24
3377
0
4月 24
2177