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

I have to save a Quotation (in Sales module) manually when a custom button is clicked. Can i achieve this?


Is the option only create() and write()? These method are specific. But i need a general save function


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

Hi,

If you are looking to save record on clicking a newly introduced button in the form, then the functionality is already there. On clicking any buttons in the form, the record will get saved automatically.

Thanks

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

Hi,

In Odoo any button click will save the record in the database. So you don't need to call  any other method to save the record.

Hope it helps

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

I don't know what you wanna mean with save​ but in Odoo save it's create​ or write​ and that will happens always before  the button method call execution. 

Perhaps you are referring to the regular Save​ button from older Odoo versions... In Odoo 16 that have changed into automatically save the record without the need to hit the save button. I'm not a fan of that also but there is a button that appears for manually save the form without the need to click away from the current form in order to save it. 


Perhaps you want another button to trigger the save. You can just put a regular Button calling an empty method and everything will be saved first


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

Yeah that is the button i was talking about. I want to manually call the save button for customization changes. Is there a way for that?

I want to manually call the save button for customization changes. Is there a way for that?

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 4 24
2374
1
thg 8 21
6604
1
thg 7 16
3649
0
thg 3 15
3816
2
thg 7 23
2586