Skip to content

Commit

Permalink
[OU-IMP] resource_booking: Add noupdate_changes.xml
Browse files Browse the repository at this point in the history
TT50035
  • Loading branch information
victoralmau committed Jul 10, 2024
1 parent c1a4eb6 commit d97ee4b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resource_booking/migrations/15.0.1.4.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version='1.0' encoding='utf-8' ?>
<odoo>
<record id="rule_resource_booking_portal" model="ir.rule">
<field
name="domain_force"
>['|', ('partner_ids', 'child_of', user.partner_id.ids), ('message_partner_ids', 'child_of', user.partner_id.ids)]</field>
</record>
<record id="rule_resource_booking_user" model="ir.rule">
<field
name="domain_force"
>['|', '|', ('partner_ids', 'child_of', user.partner_id.ids), ('message_partner_ids', 'child_of', user.partner_id.ids), ('combination_id.resource_ids.user_id', 'in', user.ids)]</field>
</record>
</odoo>
3 changes: 3 additions & 0 deletions resource_booking/migrations/15.0.1.4.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ def convert_resource_booking_partners(env):
def migrate(env, version):
"""Put partner_id in partner_ids"""
convert_resource_booking_partners(env)
openupgrade.load_data(
env.cr, "resource_booking", "migrations/15.0.1.4.0/noupdate_changes.xml"
)

0 comments on commit d97ee4b

Please sign in to comment.