Skip to content

Commit

Permalink
[REF] checks_odoo_module_xml: Allow duplicated fields with 'groups'
Browse files Browse the repository at this point in the history
Related to odoo/odoo#103743
Fix OCA#10
  • Loading branch information
moylop260 committed Oct 24, 2022
1 parent 445a347 commit 816fc33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/oca_pre_commit_hooks/checks_odoo_module_xml.py
Expand Up @@ -90,6 +90,7 @@ def check_xml_records(self):
field.get("name"),
field.get("context"),
field.get("filter_domain"),
field.get("groups"),
field.getparent(),
)
xml_fields[field_key].append((manifest_data, field))
Expand Down
3 changes: 3 additions & 0 deletions test_repo/broken_module/model_view_odoo2.xml
Expand Up @@ -131,6 +131,9 @@
<tree>
<field name="name"/>
<field name="name"/>

<field name="company_id" invisible="1"/>
<field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
<field name="value_ids">
Expand Down

0 comments on commit 816fc33

Please sign in to comment.