Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2861 มุมมอง

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 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 24
2627
1
ธ.ค. 24
4003
0
พ.ย. 24
1639
2
ก.ค. 24
3360
0
เม.ย. 24
2168