Browse Source

[ADD] date_range: migration files

pull/10/head
mreficent 7 years ago
parent
commit
830575740d
  1. 9
      date_range/migrations/11.0.2.0.0/noupdate_changes.xml
  2. 3
      date_range/migrations/11.0.2.0.0/openupgrade_analysis.txt
  3. 4
      date_range/migrations/11.0.2.0.0/openupgrade_analysis_work.txt
  4. 11
      date_range/migrations/11.0.2.0.0/post-migration.py

9
date_range/migrations/11.0.2.0.0/noupdate_changes.xml

@ -0,0 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="date_range_type_comp_rule" model="ir.rule">
<field name="domain_force"> ['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field>
</record>
<record id="date_range_comp_rule" model="ir.rule">
<field name="domain_force"> ['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field>
</record>
</odoo>

3
date_range/migrations/11.0.2.0.0/openupgrade_analysis.txt

@ -0,0 +1,3 @@
---Fields in module 'date_range'---
---XML records in module 'date_range'---
NEW ir.rule: date_range.date_range_generator_comp_rule (noupdate)

4
date_range/migrations/11.0.2.0.0/openupgrade_analysis_work.txt

@ -0,0 +1,4 @@
---Fields in module 'date_range'---
---XML records in module 'date_range'---
NEW ir.rule: date_range.date_range_generator_comp_rule (noupdate)
# NOTHING TO DO

11
date_range/migrations/11.0.2.0.0/post-migration.py

@ -0,0 +1,11 @@
# Copyright 2017 Eficent <http://www.eficent.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(
env.cr, 'date_range', 'migrations/11.0.2.0.0/noupdate_changes.xml',
)
Loading…
Cancel
Save