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

Is possible manipulation on postgresql temporary table in odoo?


Presumably, the creation is not a problem, but how to organize views?

I would be grateful for any suggestion or an example.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

In posgresql you can use temporary views and or tables but they are not accessible from Odoo.

Odoo has it's special temporary tables, they are  typically used for wizards.  To use a temporary table you can define it as a normal class, just use the following type of inheritance:  models.TransientModel (new api) or osv.osv_memory (old api).

The views are defined as normal views.


see:
http://findnerd.com/list/view/-How-to-create-an-osv-memory-wizard-systems-in-Odoo-9-/12288/

http://stackoverflow.com/questions/28237145/using-popup-window-to-get-user-inputs-and-use-those-inputs-in-buttons-function


HTH

:)

อวตาร
ละทิ้ง
ผู้เขียน

Thank you for your answer. I'm not interested in wizard with model Transient. I seek solutions with temporary table and access records per session, not per user.

Related Posts ตอบกลับ มุมมอง กิจกรรม
Openerp database list in postgresql แก้ไขแล้ว
5
เม.ย. 23
16287
what postgresql table for Devis? แก้ไขแล้ว
1
พ.ย. 16
3165
0
มี.ค. 15
5634
0
ก.พ. 25
1591
2
ม.ค. 25
8220