跳至内容
菜单
此问题已终结
2 回复
2853 查看

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
2622
1
12月 24
3997
0
11月 24
1631
2
7月 24
3351
0
4月 24
2161