diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
| commit | 1ca3b3df3421961caec3b747a364071c80f5c7da (patch) | |
| tree | 6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /base_account_budget/security/account_budget_security.xml | |
| parent | b57188be371d36d96caac4b8d65a40745c0e972c (diff) | |
initial commit
Diffstat (limited to 'base_account_budget/security/account_budget_security.xml')
| -rw-r--r-- | base_account_budget/security/account_budget_security.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/base_account_budget/security/account_budget_security.xml b/base_account_budget/security/account_budget_security.xml new file mode 100644 index 0000000..a152523 --- /dev/null +++ b/base_account_budget/security/account_budget_security.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data noupdate="1"> + <record id="budget_post_comp_rule" model="ir.rule"> + <field name="name">Budget post multi-company</field> + <field name="model_id" ref="model_account_budget_post"/> + <field eval="True" name="global"/> + <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> + </record> + + <record id="budget_comp_rule" model="ir.rule"> + <field name="name">Budget multi-company</field> + <field name="model_id" ref="model_budget_budget"/> + <field eval="True" name="global"/> + <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> + </record> + + <record id="budget_lines_comp_rule" model="ir.rule"> + <field name="name">Budget lines multi-company</field> + <field name="model_id" ref="model_budget_lines"/> + <field eval="True" name="global"/> + <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> + </record> + + <record model="res.users" id="base.user_root"> + <field eval="[(4,ref('analytic.group_analytic_accounting'))]" name="groups_id"/> + </record> + + </data> +</odoo> |
