mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_cycle_count: add multicompany rule
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
"reports/stock_location_accuracy_report.xml",
|
||||
"reports/stock_cycle_count_report.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"security/security.xml",
|
||||
],
|
||||
"license": "AGPL-3",
|
||||
"installable": True,
|
||||
|
||||
11
stock_cycle_count/security/security.xml
Normal file
11
stock_cycle_count/security/security.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo noupdate="0">
|
||||
<record model="ir.rule" id="stock_cycle_count_comp_rule">
|
||||
<field name="name">Stock Cycle Count multi-company</field>
|
||||
<field name="model_id" ref="model_stock_cycle_count" />
|
||||
<field name="global" eval="True" />
|
||||
<field
|
||||
name="domain_force"
|
||||
>['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -18,6 +18,7 @@
|
||||
<field name="responsible_id" />
|
||||
<field name="date_deadline" />
|
||||
<field name="state" />
|
||||
<field name="company_id" optional="hide" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user