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

Hi, I want to define some default values used by other tables that can change over time. The user must be able to change these fields.

I have thought about creating a new table in the DB that will only have one row that will change over time, I'm not sure if it's the best way to do it.

Then I would have a menu action to open the form view to can edit these values, but the problem is that I want to open always the same row (id=1), not open the view to create a new one. I don't know how can I set it up, or if this is the best option.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I finally found the answer here:

https://www.odoo.com/forum/help-1/question/how-can-i-save-load-my-own-configuration-settings-30123

 

I needed to create a configuration object instead of a normal one.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
พ.ค. 24
10741
Open a form in Edit mode แก้ไขแล้ว
1
พ.ค. 22
26147
How to open a popup when opening a view? แก้ไขแล้ว
4
ก.ย. 21
7751
0
มี.ค. 15
5352
1
มี.ค. 15
4717