odoo/odoo#193576

Created by Marc Lopes (loma)
Merged at ab3ef1718a8c1cacf7efecfd8e5d85e366cb3cd6

Statuses:

label
odoo-dev:18.0-base-automations-default-trigger-field-ids-loma
head
2b404e43161734888bc3b386481ca3acd3efa738
merged
9 months ago by JavaScript, Lucas Perais (lpe)
odoo/odoo
18.0 #193576
saas-18.1 #194438
saas-18.2
saas-18.3
saas-18.4
19.0
master #194443

[FIX] {test_}base_automation: compute trigger_field_ids from default_filter_domain

Before this commit, 'trigger_field_ids' were already computed from the
filter_domain, but using a default_filter_domain didn't work due to the
'_onchange_trigger' method emptying 'trigger_field_ids' in the case of
on_create_or_write.

After this commit, we made '_onchange_trigger' take into account
the filter_domain for this case.

This addition fixes a window action from Documents to Automation Rules.

see #193206
see odoo/enterprise#75719
task-4481308


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr