콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7126 화면

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.

관련 게시물 답글 화면 활동
5
4월 23
16418
1
11월 16
3250
0
3월 15
5700
0
2월 25
1721
2
1월 25
8413