[19.0][MIG] automation_oca: Migration to 19.0 - #54
Open
BogatovT wants to merge 95 commits into
Open
Conversation
Currently translated at 100.0% (218 of 218 strings) Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/it/
Currently translated at 100.0% (218 of 218 strings) Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/it/
Currently translated at 96.7% (211 of 218 strings) Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/es/
Currently translated at 61.9% (135 of 218 strings) Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/fr/
This commit adds the corresponding imports and preparation code for using some variables and expressions like `today()`, `datetime`, `user`, etc in the domain (filter) of the automation configuration.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/
Currently translated at 100.0% (220 of 220 strings) Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/it/
[FIX] automation_oca: pass eval_context in step domain safe_eval
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/
Currently translated at 100.0% (220 of 220 strings) Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: automation-16.0/automation-16.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-16-0/automation-16-0-automation_oca/
Co-authored-by: Luís Rodríguez <luis.rodriguez@dixmit.com>
Applying a global style affects the styles of other views. To prevent this from happening, apply a more specific selector that only applies to the view of this module.
With the changes introduced in odoo/odoo@de056cc#diff-b37c7fd5520c97a29ddc59495779e7be61a66e15e85603928e27b3affb9dc31f, an error was occurring because the change validation on the model was being performed before tearDownClass was executed. Therefore, it has been modified so that the mock changes are applied in each test and cleaned up after each test. This way, the error will no longer appear and the test will run normally.
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
Currently translated at 100.0% (254 of 254 strings) Translation: automation-18.0/automation-18.0-automation_oca Translate-URL: https://translation.odoo-community.org/projects/automation-18-0/automation-18-0-automation_oca/sl/
BogatovT
force-pushed
the
19.0-mig-automation_oca
branch
2 times, most recently
from
July 8, 2026 08:23
e77a2ba to
464d980
Compare
BogatovT
force-pushed
the
19.0-mig-automation_oca
branch
from
July 8, 2026 08:40
464d980 to
052d252
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migration of
automation_ocato 19.0Migrates
automation_ocafrom 18.0 to 19.0, following theOCA migration guide.
Verified on a local Odoo 19.0 instance: clean install, module test suite green
(Python + JS/hoot in a headless browser), and the automation designer working
end-to-end (mail step, behaviour-triggered child steps, server-action step, cron
progression and statistics).
Framework changes applied
res.groups.category_id→privilege_id(newres.groups.privilegemodel);
groups_id→group_idson menus / users / views.odoo.osv.expression.AND→odoo.fields.Domain.AND.read_group(...)→_read_group(...)(returns tuples; m2o groupby yields arecordset; a
:daygroupby on a datetime field returns a tz-awaredatetime,which required reworking the step sparkline bucketing).
Query.select()now returns anSQLobject;query.groupbyset viaSQL.identifier(...).self._cr/self._uid→self.env.cr/self.env.uid;auto_join→bypass_search_access._searchoverride now forwards the new keyword-only args(
active_test,bypass_access).werkzeug.urls.url_join→odoo.tools.urls.urljoin(
url_parsekept, still used by corelink_tracker).record.data.x[0]→record.data.x.id;useOpenX2ManyRecordwithParentId→isMany2Many; the custom kanban compileris now injected via
rendererProps.Compiler(the staticKanbanRecord.Compileris no longer read);
web.KanbanView.Buttonsis empty in 19, so the upload buttonis now xpath-injected on
.(as coreaccountdoes);owlglobal →@odoo/owlimports.Runtime fixes (not visible at install time, caught by the test suite)
BaseModel._where_calcwas removed →_search(domain, bypass_access=True)in_get_automation_records_to_create(the record-enrollment query).mail.compose.message.record_namefield was removed → dropped from the composervalues in
_run_mail.threading.current_thread().testingis no longerset in 19 →
not odoo.modules.module.current_test(matching coremail_mail.py),otherwise
auto_commit=Truetriggered a forbiddencr.commit()inside tests.Tests
hierarchy/sort, record click, add-child button).
test_automation_mailnow inherits core'sMockLinkTrackermixin, since in 19the link tracker fetches the page title over HTTP when shortening links (blocked
in tests).
TestAutomationDate— it relies onodoo-test-helper, which is notyet compatible with 19.0 (it uses the removed
MetaModel.module_to_modelsand theold
Registry.load(cr, package)/setup_modelsAPI). The import is guarded andthe test is
@unittest.skipUnless-skipped with an explicit reason; it can bere-enabled once the helper is ported.