Skip to content

Commit 8653cb3

Browse files
committed
[IMP] new IR and domain fields
Added in saas~17.3 by odoo/odoo@f983703 closes #104 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent ca848eb commit 8653cb3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/util/domains.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def _get_domain_fields(cr):
111111
DomainField("ir_model_fields", "domain", "model"),
112112
DomainField("ir_act_window", "domain", "res_model"),
113113
DomainField("ir_filters", "domain", "model_id"), # model_id is a varchar
114+
DomainField("ir_embedded_actions", "domain", "parent_res_model"),
114115
DomainField("ir_rule", "domain_force", "(SELECT model FROM ir_model m WHERE m.id = t.model_id)"),
115116
DomainField("document_directory", "domain", "(SELECT model FROM ir_model m WHERE m.id = t.ressource_type_id)"),
116117
DomainField(

src/util/indirect_references.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ def indirect_references(cr, bound_only=False):
3434
IR("ir_act_server", "crud_model_name", None),
3535
IR("ir_act_server", "model_name", None, "model_id", set_unknown=True),
3636
IR("ir_act_client", "res_model", None, set_unknown=True),
37+
IR("ir_embedded_actions", "parent_res_model", "parent_res_id"),
3738
IR("ir_model", "model", None),
3839
IR("ir_model_fields", "model", None),
3940
IR("ir_model_fields", "relation", None), # destination of a relation field
4041
IR("ir_model_data", "model", "res_id"),
4142
IR("ir_filters", "model_id", None, set_unknown=True), # YUCK!, not an id
43+
# duplicated for versions where the `res_id` column does not exists
44+
IR("ir_filters", "model_id", "embedded_parent_res_id"),
4245
IR("ir_exports", "resource", None),
4346
IR("ir_ui_view", "model", None, set_unknown=True),
4447
IR("ir_values", "model", "res_id"),

0 commit comments

Comments
 (0)