Commit Graph

33 Commits (626fe54fe43c3cc4df249bfec4363a6ebe133bcb)

Author SHA1 Message Date
Pedro M. Baeza b92a0cb5bc [FIX] *: Pre-commit fixes 2024-05-02 12:28:48 +02:00
docker-odoo 7d0237f0bd [MIG] base_exception: Migration to 17.0 2024-01-25 20:08:04 +00:00
Laurent Mignon (ACSONE) e2b5ae3ce1 [IMP] base_exception: Improves performances
Don't call the ORM to filter current recordset. Replace call to the orm by a call to the filtered_domain method.
2024-01-16 18:08:18 +00:00
Laurent Mignon (ACSONE) a3597cbba6 [IMP] base_exception: Improves performances
Keeps rule information into cache to avoid to always call the ORM for static informations. This is change allows a boost into the evaluation of exception rules by avoiding useless SQL queries to retrieve rules definitions
2024-01-16 18:08:18 +00:00
Laurent Mignon (ACSONE) bf775122c9 [IMP] base_exception: Improves performances
Before this change, the inverse relation from the exception to the records linked to the exception was read to determine if the rule should be added or removed from the rule detected for the current records. On large database with non blocking exceptions this lead to a performance issues since this issues a read of all the SO where the exception has been applied. With this change, we only read the information from the current records
2024-01-16 18:08:18 +00:00
Laurent Mignon (ACSONE) f8094c9bb4 [IMP] base_exception: One model per python file 2024-01-16 18:08:18 +00:00
Miquel Raïch af9ecca3c7 [FIX] base_exception: add _popup_exceptions deleted in migration
This method is used by other modules that depend on 'base_exception'.
2024-01-16 18:08:18 +00:00
Cesar Andres Sanchez a9561b289a [MIG] base_exception: Migration to 15.0 2024-01-16 18:08:18 +00:00
Ivàn Todorovich 9c26945393 [IMP] base_exception: log traceback when code exception is raised 2024-01-16 18:08:18 +00:00
Sébastien BEAU e41b48ffea [REF] Refactor test
use odoo-test-helper
split test so one test do one thing
2024-01-16 18:08:18 +00:00
Sébastien BEAU 91fb471ae0 [IMP] add method exception 2024-01-16 18:08:18 +00:00
Hai Lang 8fc680c9b1 [IMP] base_exception: test blocking exceptions 2024-01-16 18:08:18 +00:00
Thierry Ducrest 6994ba4b48 [13.0][IMP] base_exception add blocking exceptions
By default exceptions can be ignored by the click of a button.
Users begin human they will just click that button what ever
the internal rules.

So this PR adds the option to set specific exceptions as blocking.

When exceptions are detected if one of them is blocking, the user
will not be able to ignore them.
2024-01-16 18:08:18 +00:00
Jordi Ballester 0554460817 [13.0][fix][base_exception] search only active exception rules 2024-01-16 18:08:18 +00:00
Ivàn Todorovich 3783a9504e [IMP] base_exception: Allow to skip exception checks through context 2024-01-16 18:08:18 +00:00
Kitti U 9170475311 [14.0][FIX] base_exception, error if rule's description is null 2024-01-16 18:08:18 +00:00
mreficent 0a396550ac [FIX] base_exception: import correctly osv.expression 2024-01-16 18:08:18 +00:00
Sébastien BEAU 7c61d47daf [FIX] fix access right 2024-01-16 18:08:18 +00:00
Kevin Khao d68b825504 [14.0][MIG] base_exception: Migration to 14.0 2024-01-16 18:08:18 +00:00
Kevin Khao ca28712b28 [IMP] base_exception: black, isort, prettify 2024-01-16 18:08:18 +00:00
Jared Kipe 7d48027fe8 [MIG] base_exception: Migration to 13.0 2024-01-16 18:08:18 +00:00
Jared Kipe 8bb03e4acb [IMP] base_exception: black, isort 2024-01-16 18:08:18 +00:00
Ivan Todorovich e35b73018a [IMP] Add convenience action to ignore exceptions on record
[IMP] Computed exception descriptions field, to display better help messages

[IMP] Exceptions shouldn't be copied
2024-01-16 18:08:18 +00:00
Iván Todorovich c5c86408b8 [MIG] dict.iteritems() does not exist in Python3 2024-01-16 18:08:18 +00:00
Iván Todorovich 335b42290a FIX self[0] in _rule_group 2024-01-16 18:08:18 +00:00
Mourad 5e8b92bc1b [WIP] sale_exception_by_domain 2024-01-16 18:08:18 +00:00
Iván Todorovich ad193b7bf4 [MIG] base_exception: Migration to 12.0 2024-01-16 18:08:18 +00:00
nicomacr 416f4403b4 [FIX] base_exception: send the active_model in the conxtext when call the _popup_exceptions mehtod 2024-01-16 18:08:18 +00:00
David Beal 838339d966 FIX remove old api parameters in base_exception 2024-01-16 18:08:18 +00:00
Mourad 89161856db [FIX] temp model test access rule & fix OCA remarks 2024-01-16 18:08:18 +00:00
Mourad Elhadj Mimoune 467f8dd170 [MIG] base_exception: Migration to 11.0 2024-01-16 18:08:18 +00:00
Laurent Mignon (ACSONE) 4e96d7d910 [FIX] base_exception: '_check_exception' is 'api.multi' since it's called by constraint methods
'detect_exception' can be called on an empty recordset.
2024-01-16 18:08:18 +00:00
Mourad Elhadj Mimoune 05d595d065 [ADD] split module sale_exception into base_exception 2024-01-16 18:08:18 +00:00