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

Hi

Ive succesfully managed to add a field in the project settings menu which seems to store the value I input to it.

However when I click apply it stores in the database, but doesnt retain the stored value. So say I enter in the field 21, click apply I would expect for it to reload with 21 in it, similarly if it was a check box and it was checked it should remain checked.

How do I achieve this?

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

Hi,

For this you have to define the two function, one is to save the value to config parameter and the other is to take the value from config parameter and to show in the form.

See this Video: How To Add Settings/Configuration For Module in Odoo

Thanks

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 22
6550
1
thg 5 16
5973
1
thg 3 15
5414
2
thg 3 15
8739
4
thg 8 17
8806