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

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.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 25
3694
3
12月 22
11611
5
4月 24
42172
6
4月 24
39015
3
3月 24
10618