oca-travis
2cf46c37ea
[UPD] Update base_exception.pot
5 years ago
Denis Roussel
c053112860
[10.0][FIX] base_exception: browse records were not updated
As recordset are immutables, update() does not work on dict
that contain such recordsets.
5 years ago
OCA Transbot
67a9379792
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-10.0/server-tools-10.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-10-0/server-tools-10-0-base_exception/
5 years ago
OCA-git-bot
8df0132841
base_exception 10.0.4.1.0
5 years ago
oca-travis
197afcf726
[UPD] Update base_exception.pot
5 years ago
OCA Transbot
58ea2d676a
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-10.0/server-tools-10.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-10-0/server-tools-10-0-base_exception/
5 years ago
Guewen Baconnier
6a301a1bf5
[10.0] 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
6 years ago
OCA-git-bot
c232cdcd52
base_exception 10.0.4.0.0
6 years ago
oca-travis
0f57853884
[UPD] Update base_exception.pot
6 years ago
hparfr
eae8e7cdf2
Remove the feature when self is empty.
This recently added feature is counter intuitive, error prone and is
already causing bugs in sale_workflow.
6 years ago
OCA Transbot
bfa9a856f9
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-10.0/server-tools-10.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-10-0/server-tools-10-0-base_exception/
6 years ago
oca-travis
350c62deac
[UPD] Update base_exception.pot
6 years ago
Florian da Costa
fe8e47674c
Fix union between recordset and parent recordset in base_exception
6 years ago
hparfr
f2cd517434
Fix union and inc vers number
6 years ago
OCA Transbot
7215b81d77
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: server-tools-10.0/server-tools-10.0-base_exception
Translate-URL: https://translation.odoo-community.org/projects/server-tools-10-0/server-tools-10-0-base_exception/
6 years ago
oca-travis
f329542094
[UPD] Update base_exception.pot
6 years ago
Florian da Costa
00202b47c1
Simplifies code and fix rules by domain
6 years ago
Florent THOMAS
ee2e78d348
[FIX] base_exception: Bad syntax ( #1493 )
6 years ago
Florent THOMAS
0824ef11c9
[FIX] sale_exception: Make a defensive check before processing table and model rename ( #1486 )
6 years ago
OCA Transbot
fc592f954c
Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
6 years ago
oca-travis
5a305d9f5c
[UPD] Update base_exception.pot
6 years ago
hparfr
386c5e1055
base_exception allow to filter rules in inherited modules
6 years ago
OCA Transbot
365318b87e
Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
6 years ago
oca-travis
1d517cfcce
[UPD] Update base_exception.pot
6 years ago
Hpar
c640d3e6af
Update readme
Add a note about safe_eval
6 years ago
Mourad EL HADJ MIMOUNE
7d2f7d6644
[FIX] rename migration floder according to the new version
6 years ago
Hpar
252ee43620
Remove onchange on exception_type
No more empty fields after changing type.
6 years ago
hparfr
34ae095f2c
add execution rule based instead of record based
improve the perfs dramastically when there is a lot of records
6 years ago
Mourad
7db7db8301
[WIP] sale_exception_by_domain
7 years ago
Pedro M. Baeza
dc928a601c
[FIX] base_exception: Migration scripts
Current method doesn't work, as this module is not being migrated, but
fresh-installed by dependencies of old `sale_exception`, so we should use
the pre_init_hook and detect if we should run the migration code according the
existence of the table.
6 years ago
Mourad
93f03270e5
[IMP] OpenUpgrade Script
7 years ago
OCA Transbot
18bee2b4c6
Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
6 years ago
oca-travis
f2171dfa56
[UPD] Update base_exception.pot
6 years ago
OCA Transbot
1bec3a7474
Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
6 years ago
David Beal
688c3cbb2e
FIX remove old api parameters in base_exception
6 years ago
oca-travis
cd5f919d64
[UPD] Update base_exception.pot
7 years ago
Cédric Pigeon
7427a8d301
[10.0][FIX] base_exception: add active_model in returned action
7 years ago
oca-travis
c409b875d7
[UPD] Update base_exception.pot
7 years ago
Stéphane Bidoul (ACSONE)
4a0e13da97
remove obsolete .pot files [ci skip]
7 years ago
OCA Transbot
21a1c80140
OCA Transbot updated translations from Transifex
7 years ago
OCA Transbot
110d313a54
OCA Transbot updated translations from Transifex
7 years ago
OCA Transbot
3bb12bd80c
OCA Transbot updated translations from Transifex
7 years ago
OCA Transbot
4b1cd222f7
OCA Transbot updated translations from Transifex
7 years ago
OCA Transbot
0bced7b8df
OCA Transbot updated translations from Transifex
8 years ago
OCA Transbot
6c3f8f6623
OCA Transbot updated translations from Transifex
8 years ago
OCA Transbot
f9f511db12
OCA Transbot updated translations from Transifex
8 years ago
OCA Transbot
db575829f0
OCA Transbot updated translations from Transifex
8 years ago
OCA Transbot
a871820209
OCA Transbot updated translations from Transifex
8 years ago
Laurent Mignon (ACSONE)
35d196b7dd
[FIX] base_exception: '_check_exception' is 'api.multi' since it's called by constraint methods
'detect_exception' can be called on an empty recordset.
8 years ago
Eugen Don
3e7ee6c939
Fix menu in base_exception ( #803 )
* Fix menu in base_exception
* Fix base_exception/views/base_exception_view.xml
8 years ago