Olivier Dony
f4041de4ed
[FIX] website: use proper env in model methods
...
Using `request.env` should be reserved for code that lies outside of
model methods (typically: controllers). Model methods have to use the
appropriate `self.env`.
This particular case caused frequent Python-PostgreSQL undetected
deadlocks during installations of website-related modules in 12.0.
One way to reproduce it was to trigger the installation of both
`website` and `website_form` in a single transaction, with neither
pre-installed.
Installing Apps that depend on both would do the job, such as
`website_sale`, provided that GEOIP is available on the system.
In details:
During installation of `website`, new attachments creation would call
get_current_website (see 602807acdf and
4f6ec1cd2a ), using the wrong database
cursor: the one from the request instead of the one for the
installation, as provided by `ir.module.module._button_immediate_function`.
This would acquire database locks on `res.country` and `ir.model` in
the wrong transaction, later blocking alterations to `ir.model` in
the installation transaction, e.g. for website_form's
'website_form_access' column.
This combination of events was possible before 12.0, but more difficult
to reproduce as module installations used to happen with a super-user
account, ignoring ACL checks and therefore not locking `ir.model`.
2018-10-08 19:29:24 +02:00
..
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 10:45:06 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-02 13:15:40 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-09-25 23:01:40 +02:00
2018-10-02 14:27:11 +02:00
2018-10-01 16:34:30 +02:00
2018-09-25 23:01:40 +02:00
2018-09-25 23:01:40 +02:00
2018-10-02 08:38:21 +02:00
2018-09-25 23:01:40 +02:00
2018-09-25 23:01:40 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-19 15:58:10 +02:00
2018-09-19 16:11:51 +02:00
2018-09-27 12:10:23 +02:00
2018-10-03 17:56:58 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-10-02 12:35:34 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-14 16:06:41 +02:00
2018-10-01 11:27:51 +02:00
2018-10-01 16:01:54 +02:00
2018-10-01 16:01:54 +02:00
2018-10-03 17:48:14 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-10-01 16:01:54 +02:00
2018-09-18 15:58:44 +02:00
2018-09-28 13:39:26 +02:00
2018-09-27 12:10:23 +02:00
2018-09-18 14:30:04 +02:00
2018-09-28 13:39:26 +02:00
2018-09-28 13:39:26 +02:00
2018-09-26 18:31:38 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-10-01 11:27:51 +02:00
2018-09-28 13:39:26 +02:00
2018-09-18 15:58:44 +02:00
2018-10-01 11:27:51 +02:00
2018-10-01 11:27:51 +02:00
2018-09-18 15:58:44 +02:00
2018-09-30 00:29:10 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-26 15:56:11 +02:00
2018-09-18 15:58:44 +02:00
2018-09-27 12:10:23 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-09-18 15:58:44 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-09-21 14:02:22 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:52:57 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-05 11:28:50 +00:00
2018-10-07 02:27:57 +02:00
2018-10-02 16:05:17 +02:00
2018-10-02 16:52:18 +02:00
2018-10-07 02:27:57 +02:00
2018-09-16 07:08:38 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:27:40 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 19:29:24 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00
2018-10-08 07:13:33 +00:00
2018-10-07 02:27:57 +02:00
2018-10-07 02:27:57 +02:00