mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] base_comment_template multi company rules
[IMP] Move comment_template_id from account_invoice_comment_template and make it company_dependant [IMP] base_comment_template: Add test
This commit is contained in:
committed by
Pierre Verkest
parent
0bfc51ec59
commit
e7d0910671
11
base_comment_template/security/security.xml
Normal file
11
base_comment_template/security/security.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record model="ir.rule" id="rule_multicompany">
|
||||
<field name="name">Base comment multi-company</field>
|
||||
<field name="model_id" ref="model_base_comment_template"/>
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user