Commit Graph

31 Commits (7092543f3f0dddfe8f72261e226294b9516889a1)

Author SHA1 Message Date
Laurent Mignon (ACSONE) 31c074cdc3 [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.
2023-07-05 10:01:19 +02:00
Laurent Mignon (ACSONE) 254c5684e3 [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
2023-07-05 10:01:19 +02:00
Laurent Mignon (ACSONE) b5099bc51e [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
2023-07-04 15:36:50 +02:00
Laurent Mignon (ACSONE) 7ceadd9fc6 [IMP] base_exception: One model per python file 2023-07-04 15:36:50 +02:00
Miquel Raïch 34fe6b3308 [FIX] base_exception: add _popup_exceptions deleted in migration
This method is used by other modules that depend on 'base_exception'.
2022-11-16 16:52:00 -03:00
Cesar Andres Sanchez 9810c79870 [MIG] base_exception: Migration to 15.0 2022-11-16 16:52:00 -03:00
Ivàn Todorovich 15f1c01227 [IMP] base_exception: log traceback when code exception is raised 2022-11-16 16:52:00 -03:00
Sébastien BEAU e08dc1d578 [REF] Refactor test
use odoo-test-helper
split test so one test do one thing
2022-11-16 16:52:00 -03:00
Sébastien BEAU 0992d09738 [IMP] add method exception 2022-11-16 16:52:00 -03:00
Hai Lang bebea98896 [IMP] base_exception: test blocking exceptions 2022-11-16 16:52:00 -03:00
Thierry Ducrest 82e0042208 [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.
2022-11-16 16:52:00 -03:00
Jordi Ballester d9281728b6 [13.0][fix][base_exception] search only active exception rules 2022-11-16 16:52:00 -03:00
Ivàn Todorovich db98fc0c29 [IMP] base_exception: Allow to skip exception checks through context 2022-11-16 16:52:00 -03:00
Kitti U 2cdcc177d4 [14.0][FIX] base_exception, error if rule's description is null 2022-11-16 16:52:00 -03:00
mreficent 141f2ef027 [FIX] base_exception: import correctly osv.expression 2022-11-16 16:52:00 -03:00
Sébastien BEAU 13bf702cfd [FIX] fix access right 2022-11-16 16:52:00 -03:00
Kevin Khao 9c114a9451 [14.0][MIG] base_exception: Migration to 14.0 2022-11-16 16:52:00 -03:00
Kevin Khao 240cb3f301 [IMP] base_exception: black, isort, prettify 2022-11-16 16:52:00 -03:00
Jared Kipe 6ac2e7b225 [MIG] base_exception: Migration to 13.0 2022-11-16 16:52:00 -03:00
Jared Kipe 1100cd5dbc [IMP] base_exception: black, isort 2022-11-16 16:52:00 -03:00
Ivan Todorovich 5a4d2aefc0 [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
2022-11-16 16:52:00 -03:00
Iván Todorovich 44638455eb [MIG] dict.iteritems() does not exist in Python3 2022-11-16 16:52:00 -03:00
Iván Todorovich 834fe15d06 FIX self[0] in _rule_group 2022-11-16 16:52:00 -03:00
Mourad f6b72003ff [WIP] sale_exception_by_domain 2022-11-16 16:52:00 -03:00
Iván Todorovich fac14db84f [MIG] base_exception: Migration to 12.0 2022-11-16 16:52:00 -03:00
nicomacr 78d29e7b87 [FIX] base_exception: send the active_model in the conxtext when call the _popup_exceptions mehtod 2022-11-16 16:52:00 -03:00
David Beal 391c1244bc FIX remove old api parameters in base_exception 2022-11-16 16:52:00 -03:00
Mourad dd29ddf6ed [FIX] temp model test access rule & fix OCA remarks 2022-11-16 16:52:00 -03:00
Mourad Elhadj Mimoune 877487608e [MIG] base_exception: Migration to 11.0 2022-11-16 16:52:00 -03:00
Laurent Mignon (ACSONE) 401b114771 [FIX] base_exception: '_check_exception' is 'api.multi' since it's called by constraint methods
'detect_exception' can be called on an empty recordset.
2022-11-16 16:52:00 -03:00
Mourad Elhadj Mimoune 89af146fd4 [ADD] split module sale_exception into base_exception 2022-11-16 16:52:00 -03:00