summaryrefslogtreecommitdiff
path: root/addons/stock_landed_costs/security
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/stock_landed_costs/security
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/stock_landed_costs/security')
-rw-r--r--addons/stock_landed_costs/security/ir.model.access.csv4
-rw-r--r--addons/stock_landed_costs/security/stock_landed_cost_security.xml10
2 files changed, 14 insertions, 0 deletions
diff --git a/addons/stock_landed_costs/security/ir.model.access.csv b/addons/stock_landed_costs/security/ir.model.access.csv
new file mode 100644
index 00000000..ee279151
--- /dev/null
+++ b/addons/stock_landed_costs/security/ir.model.access.csv
@@ -0,0 +1,4 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+"access_stock_landed_cost","stock.landed.cost","model_stock_landed_cost","stock.group_stock_manager",1,1,1,1
+"access_stock_landed_cost_lines","stock.landed.cost.lines","model_stock_landed_cost_lines","stock.group_stock_manager",1,1,1,1
+"access_stock_valuation_adjustment_lines","stock.valuation.adjustment.lines","model_stock_valuation_adjustment_lines","stock.group_stock_manager",1,1,1,1
diff --git a/addons/stock_landed_costs/security/stock_landed_cost_security.xml b/addons/stock_landed_costs/security/stock_landed_cost_security.xml
new file mode 100644
index 00000000..fd3f1b52
--- /dev/null
+++ b/addons/stock_landed_costs/security/stock_landed_cost_security.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo noupdate="1">
+
+ <record model="ir.rule" id="stock_landed_cost_rule">
+ <field name="name">stock_landed_cost multi-company</field>
+ <field name="model_id" search="[('model','=','stock.landed.cost')]" model="ir.model"/>
+ <field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
+ </record>
+
+</odoo>