diff options
| author | Goffin Simon <sig@odoo.com> | 2018-08-09 13:36:16 +0200 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2018-08-09 16:01:31 +0200 |
| commit | bf282f2b7b02f279bdf703d8fc74c63b28594f71 (patch) | |
| tree | b84da8889e2e8242fe35afa4841b51dc6f8c1c58 /addons/stock_landed_costs/security | |
| parent | a10ea93dbe5bbfcdc53f7ba46fd2b52ef6862a8f (diff) | |
[FIX] stock_landed_costs: List view in multi-company
In multi-company, it was not possible to distinguish the records
of the current company of the user.
opw:1870561
Diffstat (limited to 'addons/stock_landed_costs/security')
| -rw-r--r-- | addons/stock_landed_costs/security/stock_landed_cost_security.xml | 13 |
1 files changed, 13 insertions, 0 deletions
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 00000000000..1182f9c687a --- /dev/null +++ b/addons/stock_landed_costs/security/stock_landed_cost_security.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> +<data noupdate="0"> + + <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="global" eval="True"/> + <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> + </record> + +</data> +</odoo>
\ No newline at end of file |
