Browse Source
Merge pull request #10 from Eficent/11.0-imp-date_range-multicompany
Merge pull request #10 from Eficent/11.0-imp-date_range-multicompany
[11.0][IMP] date_range: adapt to multicompanypull/11/head
Jordi Ballester Alomar
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 207 additions and 26 deletions
-
1date_range/README.rst
-
2date_range/__manifest__.py
-
9date_range/migrations/11.0.2.0.0/noupdate_changes.xml
-
3date_range/migrations/11.0.2.0.0/openupgrade_analysis.txt
-
4date_range/migrations/11.0.2.0.0/openupgrade_analysis_work.txt
-
11date_range/migrations/11.0.2.0.0/post-migration.py
-
20date_range/models/date_range.py
-
17date_range/models/date_range_type.py
-
4date_range/security/date_range_security.xml
-
2date_range/security/ir.model.access.csv
-
63date_range/tests/test_date_range.py
-
44date_range/tests/test_date_range_generator.py
-
31date_range/tests/test_date_range_type.py
-
22date_range/wizard/date_range_generator.py
@ -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> |
@ -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) |
@ -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 |
@ -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', |
||||
|
) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue