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

Hi guys,
I want to make a database connection (which I know how to do that), but I am not sure where to write such code so that it will remain connected until the next Odoo service happens something similar to self.env.cr.execute which I believe the connection handshake doesn't happen every time we execute the queries.


Also, it should safely disconnect the connection before Odoo service restart happen.

Any help will be appreciated. Also if there is any better approach to do same then please let me know.

Thanks,
Vinay

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 23
14889
0
thg 10 23
33
3
thg 10 23
789
1
thg 10 23
569
1
thg 8 23
2538