11 Commits

Author SHA1 Message Date
Monica Diaz Pena
1d433f1099 Call super with normalized ids.
self._ids is expected to be a tuple instance, using that on SQL queries
will raise a `psycopg2.ProgrammingError: syntax error at or near "ARRAY"`.

Add test.
2021-11-02 15:17:41 -04:00
Monica Diaz Pena
77be6275b1 Allow reactivate the security in a suspend security call. 2020-01-06 17:17:46 -05:00
Monica Diaz Pena
8f24e9e776 Avoid Access Error when search with suspend security.
The Odoo `_search` function performs a  `sudo` on the first line of its
implementation, causing that the uid's wrapper (class BaseSuspendSecurityUid) is lost.

This is evidenced when a function with suspend security is called and in
its implementation needs the values ​​of a 'one2many' field (it does a
`search` in another model without reading access) an Access Error is raised.
2020-01-06 17:17:46 -05:00
Pedro M. Baeza
92ebf2dc2a [FIX] base_suspend_security: Adapt to upstream
On 9af8b31d921dcccb7bcf230271fd3ef4R4329, a new keyword argument was added
for `_browse`, so any overriding needs to add that argument, as it's the case
for this module.
2019-02-21 15:23:34 +01:00
Denis Robinet (ACSONE)
4801c32f84 [12.0][MIG] Migrate base_suspend_security 2019-02-21 15:23:34 +01:00
Dmytro Katyukha
310b04bccc [FIX] suspend security incorrect uid in env 2019-02-21 15:23:34 +01:00
Frédéric Garbely
61ca98ebe3 [MIG] base_suspend_security: Migration to 11.0 2019-02-21 15:23:34 +01:00
Adrien Peiffer (ACSONE)
e719bc627e [MIG] base_suspend_security to 10.0 (#586) 2019-02-21 15:23:34 +01:00
Adrien Peiffer (ACSONE)
b7f756185d [PORT] Port base_suspend_security to 9.0 2019-02-21 15:23:34 +01:00
Holger Brunn
032f163a22 [FIX] flake8 2019-02-21 15:23:34 +01:00
Holger Brunn
fe16cc7ca1 [ADD] base_suspend_security 2019-02-21 15:23:34 +01:00