Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7 Trả lời
9316 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ

Wich button u clicking??

Wich button u clicking??

i think he means any button with some function inside the form. also he don't have any required fields inside that form i guess

Câu trả lời hay nhất

Hello Bailey,

Every button that has an action like add discounts, open another form, update function fields.... and more... Every button is going to save the data, because some of them need the active_id (actual id of the form), so they need it to be stored, function fields needs records to be stored to work. The only operation that you can do without saving the form is ON CHANGE, because you are passing arguments and it's returning something.... But the rest operations, are going to be stored.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Make any one field as required

Ảnh đại diện
Huỷ bỏ

I think Thankaraj & Gopalakrishnam are friends....Or both r same

Câu trả lời hay nhất

you are clicking duplicate button????

Ảnh đại diện
Huỷ bỏ
Tác giả

Not like that, any button inside in form,any idea for this?

you should check your code which ever button you are clicking. may be you call write method that save your data. this is one of the possibility.