Skip to content

Commit

Permalink
[FIX] stock_valuation_layer_usage: company security rule
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHForgeFlow committed Jan 8, 2025
1 parent 56a321f commit af90a39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions stock_valuation_layer_usage/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"depends": ["sale", "stock_account_product_run_fifo_hook"],
"data": [
"security/ir.model.access.csv",
"security/ir_rule.xml",
"views/stock_valuation_layer_usage_views.xml",
"views/stock_valuation_layer_views.xml",
"views/stock_move_views.xml",
Expand Down
9 changes: 9 additions & 0 deletions stock_valuation_layer_usage/security/ir_rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record model="ir.rule" id="stock_valuation_layer_usage_company_rule">
<field name="name">Company Layer Usages</field>
<field name="model_id" ref="model_stock_valuation_layer_usage" />
<field name="global" eval="True" />
<field name="domain_force">[('company_id','in', company_ids)]</field>
</record>
</odoo>

0 comments on commit af90a39

Please sign in to comment.