mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[OU-ADD] stock_request: Add migration scripts for security rules
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{
|
||||
"name": "Stock Request",
|
||||
"summary": "Internal request for stock",
|
||||
"version": "14.0.1.2.0",
|
||||
"version": "14.0.1.3.0",
|
||||
"license": "LGPL-3",
|
||||
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||
|
||||
14
stock_request/migrations/14.0.1.3.0/noupdate_changes.xml
Normal file
14
stock_request/migrations/14.0.1.3.0/noupdate_changes.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record model="ir.rule" id="stock_picking_rule">
|
||||
<field name="name">stock_request multi-company</field>
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
<record model="ir.rule" id="stock_request_order_picking_rule">
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
</odoo>
|
||||
10
stock_request/migrations/14.0.1.3.0/post-migration.py
Normal file
10
stock_request/migrations/14.0.1.3.0/post-migration.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copyright 2023 Tecnativa - Pedro M. Baeza
|
||||
# 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, "stock_request", "migrations/14.0.1.3.0/noupdate_changes.xml"
|
||||
)
|
||||
Reference in New Issue
Block a user