mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
we move the is_template field definition and the agreement.type model from the agreement_legal module to the agreement module. The fields are not displayed by default, unless the feature is enabled through a technical feature group, this is configurable in the agreement_sale module (because agreement in itself has no UI, and agreement_legal enables the feature by default) [UPD] Update agreement_legal.pot Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-12.0/contract-12.0-agreement_legal Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_legal/ Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (284 of 284 strings) Translation: contract-12.0/contract-12.0-agreement_legal Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_legal/zh_CN/
31 lines
1.3 KiB
XML
31 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="module_agreement_legal_category" model="ir.module.category">
|
|
<field name ="name">Agreement</field>
|
|
<field name ="sequence">17</field>
|
|
</record>
|
|
|
|
<!-- Readonly group -->
|
|
<record id="group_agreement_readonly" model="res.groups">
|
|
<field name="name">Read-Only Users</field>
|
|
<field name="category_id" ref="module_agreement_legal_category"/>
|
|
<field name="implied_ids" eval="[(4, ref('base.group_user')), (4, ref('agreement.group_use_agreement_type')), (4, ref('agreement.group_use_agreement_template'))]"/>
|
|
</record>
|
|
|
|
<!-- User group -->
|
|
<record id="group_agreement_user" model="res.groups">
|
|
<field name="name">User</field>
|
|
<field name="category_id" ref="module_agreement_legal_category"/>
|
|
<field name="implied_ids" eval="[(4, ref('group_agreement_readonly'))]"/>
|
|
</record>
|
|
|
|
<!-- Manager group -->
|
|
<record id="group_agreement_manager" model="res.groups">
|
|
<field name="name">Manager</field>
|
|
<field name="category_id" ref="module_agreement_legal_category"/>
|
|
<field name="implied_ids" eval="[(4, ref('group_agreement_user'))]"/>
|
|
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
|
|
</record>
|
|
|
|
</odoo>
|