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

Hello community,


Actually my requirement is record will be save only if i click save button. but whenever i click button in my form then duplicate record saved in my table. so how to sort out this issue in odoo 8 ?

  <button name="show_fevrier" type="object">
     <field name="mo_2" nolabel="1"/>
</button>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You  cannot do anything for it, Odoo is designed in such a way, that the saving of the record can be easily done using either Save Button or any Custom Buttons, which leads to efficiency of usage.


However in your case, duplicate records are getting created, could that mean, there is something wrong in your code, perhaps you are manually calling create method in your custom method, or it could be due some other issues, do check it out.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 25
3590
3
ธ.ค. 22
11482
How to get current url from bowser? แก้ไขแล้ว
5
เม.ย. 24
41996
Add users to group through python code แก้ไขแล้ว
6
เม.ย. 24
38875
how to compute Len() of list python แก้ไขแล้ว
3
มี.ค. 24
10486