Skip to content

Commit

Permalink
[IMP] stock_cycle_count: add multicompany rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnauCForgeFlow committed Sep 10, 2024
1 parent d6c95c0 commit a82f01c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions stock_cycle_count/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 11 additions & 0 deletions stock_cycle_count/security/security.xml
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions stock_cycle_count/views/stock_cycle_count_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<field name="responsible_id" />
<field name="date_deadline" />
<field name="state" />
<field name="company_id" optional="hide" />
</tree>
</field>
</record>
Expand Down

0 comments on commit a82f01c

Please sign in to comment.