mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] agreement: Migration to 12.0
This commit is contained in:
17
agreement/security/agreement_security.xml
Normal file
17
agreement/security/agreement_security.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
© 2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<odoo noupdate="1">
|
||||
|
||||
|
||||
<record id="agreement_rule" model="ir.rule">
|
||||
<field name="name">Agreement multi-company</field>
|
||||
<field name="model_id" ref="model_agreement"/>
|
||||
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
2
agreement/security/ir.model.access.csv
Normal file
2
agreement/security/ir.model.access.csv
Normal file
@@ -0,0 +1,2 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_agreement_read,Read access on agreement to Employees,model_agreement,base.group_user,1,0,0,0
|
||||
|
Reference in New Issue
Block a user