Browse Source

[IMP][account_financial_report] New Rules to AFR module

in multicompany environment a user should only see his/her own company reports
pull/7/merge
Humberto Arocha 11 years ago
parent
commit
99d023f9f4
  1. 11
      account_financial_report/security/security.xml

11
account_financial_report/security/security.xml

@ -5,5 +5,16 @@
<field name="name">Account Financial Report</field>
</record>
<record id="ir_rule_same_company" model="ir.rule">
<field name="name">See AFR Reports of My Own Company</field>
<field model="ir.model" name="model_id" ref="model_afr"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
<field eval="False" name="global"/>
<field name="domain_force">[('company_id','=',user.company_id.id)]</field>
<field name="groups" eval="[(4,ref('account_financial_report.group_afreport'))]"/>
</record>
</data>
</openerp>
Loading…
Cancel
Save