OCA Transbot
2b5b5d698d
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/
4 years ago
OCA-git-bot
20a3504055
base_exception 12.0.3.1.0
4 years ago
OCA-git-bot
83baa88c4a
[UPD] README.rst
4 years ago
oca-travis
3d93b73eda
[UPD] Update base_exception.pot
4 years ago
OCA Transbot
12a7f11450
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/
4 years ago
Sébastien BEAU
0f0576424c
[IMP] use selection field to be safer, add maintainers
4 years ago
KevinKhao
3044d1db2e
[IMP] Code coverage
5 years ago
KevinKhao
694fc82710
[IMP] Added tests, fixed logic on rule validity testing
5 years ago
KevinKhao
6498d43a33
[IMP] black, flake8 nitpick
5 years ago
Sébastien BEAU
fe923aab8d
[12.0][IMP] add by_method exception
5 years ago
Jared Kipe
64136bde44
FIX `base_exception` at the end of detect_exceptions, link to the detected exceptions (with test)
5 years ago
Rodrigo Macedo
5386ea9746
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (47 of 47 strings)
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/pt_BR/
5 years ago
OCA Transbot
3793b0c8e9
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/
5 years ago
OCA-git-bot
62eec9e9af
base_exception 12.0.3.0.1
5 years ago
oca-travis
0556eb6e09
[UPD] Update base_exception.pot
5 years ago
Guewen Baconnier
43def640a9
Remove RowExclusiveLock on exception_rule
The goal of the modified method is to create or remove the relationship
(in the M2m relation tabel) between the tested model (such as
sale_order) and the exception rules. When the ORM writes on
ExceptionRule.sale_ids (using the example of sale_exception), it will
first proceeds with these updates:
* an UPDATE on exception_rule to set the write_date
* INSERT or DELETE on the relation table
* but then, as "write" is called on the exception rule, the ORM will
trigger the api.depends to recompute all the "main_exception_ids"
of the records (sales, ...) related to it, leading to an UPDATE
for each sale order
We end up with RowExclusiveLock on such records:
* All the records of the relation table added / deleted for the current
sale order
* All the records of exception_rule matching the current sale order
* All the records of sale_order related to the exception rules matching
the current sale order
The first one is expected, the next 2 are not. We can remove the lock on
the exception_rule table by removing `_log_access`, however in any case,
the main_exception_ids computed field will continue to lock many sale
orders, effectively preventing 2 sales orders with the same exception
to be confirmed at the same time.
Reversing the write by writing on SaleOrder instead of ExceptionRule
fixes the 2 unexpected locks. It should not result in more queries: the
"to remove" part generates a DELETE on the relation table for the rule
to remove and the "to add" part generates an INSERT for the rule to add,
both will be exactly the same in both cases.
Related to #1642
Replaces #1638
5 years ago
hparfr
60d3d6241d
Remove the feature when self is empty.
This recently added feature is counter intuitive, error prone and is
already causing bugs in sale_workflow.
5 years ago
OCA Transbot
7c033dd086
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/
5 years ago
OCA-git-bot
fa199bede4
[UPD] README.rst
5 years ago
oca-travis
805a61bf31
[UPD] Update base_exception.pot
5 years ago
Ivan Todorovich
ee215ee79d
[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
5 years ago
黎伟杰
97ce766ba4
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (46 of 46 strings)
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/zh_CN/
5 years ago
黎伟杰
52da3b2635
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (46 of 46 strings)
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/zh_CN/
5 years ago
Rodrigo Macedo
9fe8d50eac
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (46 of 46 strings)
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/pt_BR/
5 years ago
Pedro Castro Silva
899e96a7e2
Translated using Weblate (Portuguese)
Currently translated at 97.8% (45 of 46 strings)
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/pt/
5 years ago
OCA-git-bot
a5e8c969e6
[UPD] README.rst
5 years ago
OCA Transbot
5b766898c7
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/
5 years ago
oca-travis
a1182efc7e
[UPD] Update base_exception.pot
5 years ago
Florian da Costa
ad39e06685
Fix union between recordset and parent recordset in base_exception
5 years ago
hparfr
c65ca1e0ab
Fix intersection operator
6 years ago
oca-travis
0d2235da07
[UPD] Update base_exception.pot
6 years ago
David Beal
4cc0e98533
FIX base_exception: typo
6 years ago
oca-travis
f91254e186
[UPD] Update base_exception.pot
6 years ago
Florian da Costa
254391987c
Refactore base_exception in order to drastically simplify it
6 years ago
OCA Transbot
515ab7c959
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-12.0/server-tools-12.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-base_exception/
6 years ago
oca-travis
9621b93df9
[UPD] Update base_exception.pot
6 years ago
OCA-git-bot
5935e931fc
[UPD] README.rst
6 years ago
Iván Todorovich
550fe0dfc9
[MIG] dict.iteritems() does not exist in Python3
6 years ago
Iván Todorovich
e9ebea399b
FIX self[0] in _rule_group
6 years ago
hparfr
28fca353b1
base_exception allow to filter rules in inherited modules
6 years ago
Hpar
0b13b65b81
Update readme
Add a note about safe_eval
6 years ago
Hpar
3cc3ba4ebc
Remove onchange on exception_type
No more empty fields after changing type.
6 years ago
hparfr
00569defba
add execution rule based instead of record based
improve the perfs dramastically when there is a lot of records
6 years ago
Mourad
4f9eec5363
[WIP] sale_exception_by_domain
7 years ago
Iván Todorovich
1088f5c3ae
[MIG] base_exception: Migration to 12.0
6 years ago
OCA Transbot
30711b90cc
OCA Transbot updated translations from Transifex
8 years ago
nicomacr
1307e60902
[FIX] base_exception: send the active_model in the conxtext when call the _popup_exceptions mehtod
6 years ago
David Beal
448e20efd6
FIX remove old api parameters in base_exception
6 years ago
Iván Todorovich
7a9a692b42
[IMP] Update base_exception views
- Show menu only to Exception Rule Managers
- Use sequence and active widgets on tree view
- Updated form to use sheet
6 years ago
Andrea
ec969fc23e
[FIX] Enable post_install for tests + pylint
7 years ago