[FIX] version
[FIX] new line [FIX] new line [FIX] without openupgrade [FIX] without openupgrade [FIX] without openupgrade [FIX] without openupgrade [FIX] without openupgrade
This commit is contained in:
parent
6d84227c16
commit
71006a184e
@ -4,7 +4,7 @@
|
||||
|
||||
{
|
||||
"name": "Assets Management",
|
||||
"version": "13.0.1.1.2",
|
||||
"version": "13.0.1.2.0",
|
||||
"license": "AGPL-3",
|
||||
"depends": ["account"],
|
||||
"excludes": ["account_asset"],
|
||||
|
@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<data noupdate="1">
|
||||
<record id="account_asset_profile_multi_company_rule" model="ir.rule">
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
<record id="account_asset_multi_company_rule" model="ir.rule">
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
<record id="account_asset_group_multi_company_rule" model="ir.rule">
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
</data>
|
||||
|
@ -1,8 +0,0 @@
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
from openupgradelib import openupgrade # pylint: disable=W7936
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
openupgrade.load_data(
|
||||
env.cr, "account_asset_management", "migrations/13.0.1.0.0/noupdate_changes.xml"
|
||||
)
|
@ -0,0 +1,27 @@
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import SUPERUSER_ID, api
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
with api.Environment.manage():
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
domain = "['|',('company_id','=',False),('company_id','in',company_ids)]"
|
||||
rule = env.ref(
|
||||
"account_asset_management.account_asset_profile_multi_company_rule",
|
||||
raise_if_not_found=False,
|
||||
)
|
||||
if rule:
|
||||
rule.write({"domain_force": domain})
|
||||
rule = env.ref(
|
||||
"account_asset_management.account_asset_multi_company_rule",
|
||||
raise_if_not_found=False,
|
||||
)
|
||||
if rule:
|
||||
rule.write({"domain_force": domain})
|
||||
rule = env.ref(
|
||||
"account_asset_management.account_asset_group_multi_company_rule",
|
||||
raise_if_not_found=False,
|
||||
)
|
||||
if rule:
|
||||
rule.write({"domain_force": domain})
|
Loading…
Reference in New Issue
Block a user