Skip to content
Health
100/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by25/25
    5 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
5
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.72 MB
Module directory on disk
Code analysis 0 migration notes 4 models 9 views 0 HTTP endpoints

Description

This module adds an Agreement object to Odoo so that contracts and other agreements concluded with customers and suppliers can be registered and followed in one place. Each agreement has a code, a name, a partner, a Sale or Purchase domain, and signature, start and end dates. The partner may be a contact person of a company: the company is stored on the agreement as Commercial Entity, and the agreement code must be unique per commercial entity and company.

Agreements have a chatter with tracked field changes and activities, can be archived, are listed on the partner form through a smart button, and are protected by three access roles (Read-Only Users, User and Manager). Optionally, agreements can be classified with agreement types, which preset the domain, and flagged as templates that can be duplicated to create new agreements.

This module is the base of the OCA agreement modules. Its settings page lets you install extensions for stages, signatures, revisions, termination, legal content, and links to sales, products, projects and rebates.

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
agreement_project, agreement_rebate, agreement_sale, fieldservice_agreement, l10n_py_maquila_base

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 9

XML IDNameModelTypeStatus
agreement_form agreement.form agreement form New
agreement_kanban Agreement Kanban agreement kanban New
agreement_search agreement.search agreement search New
agreement_tree agreement.list agreement list New
agreement_type_form_view Agreement Type Form agreement.type form New
agreement_type_list_view Agreement Type List agreement.type list New
agreement_type_search agreement.type.search agreement.type search New
partner_form res.partner form Inherits base.view_partner_form
res_config_settings_view_form res.config.settings.view.form.agreement res.config.settings form Inherits base.res_config_settings_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (12)
  • active Boolean
    default=True
  • agreement_type_id Many2one → agreement.type
    help='Select the type of agreement' args: 'agreement.type'
  • code Char
    required=True tracking=True
  • commercial_partner_id Many2one → res.partner
    compute='_compute_commercial_partner_id' precompute=True store=True string='Commercial Entity' tracking=True args: 'res.partner'
  • company_id Many2one → res.company
    default=<expr> args: 'res.company'
  • domain Selection
    compute='_compute_domain' readonly=False selection='_domain_selection' store=True tracking=True
  • end_date Date
    help='When the agreement ends.' tracking=True
  • is_template Boolean
    copy=False help="Set if the agreement is a template. Template agreements don't require a partner." string='Is a Template?'
  • name Char
    required=True tracking=True
  • partner_id Many2one → res.partner
    ondelete='restrict' tracking=True args: 'res.partner'
  • signature_date Date
    tracking=True
  • start_date Date
    help='When the agreement starts.' tracking=True
Public methods (1)
  • copy(self, default=None)
    Always assign a value for code because is required

New fields (3)
  • active Boolean
    default=True
  • domain Selection
    default='sale' args: '_domain_selection'
  • name Char
    required=True
Public methods (0)

No public methods.

New fields (13)
  • group_use_agreement_template Boolean
    implied_group='agreement.group_use_agreement_template' args: 'Use agreement template'
  • group_use_agreement_type Boolean
    implied_group='agreement.group_use_agreement_type' args: 'Use agreement types'
  • module_agreement_legal Boolean
    help='Manage legal aspects of agreements'
  • module_agreement_legal_content Boolean
    help='Add legal content to agreements'
  • module_agreement_product Boolean
    help='Agreement on products'
  • module_agreement_project Boolean
    help='Agreement on projects'
  • module_agreement_rebate Boolean
    help='Rebate in agreements'
  • module_agreement_revision Boolean
    help='Track versions and revisions of legal agreements'
  • module_agreement_sale Boolean
    help='Agreement on sales'
  • module_agreement_signature Boolean
    help='Track signatories and the signed document of agreements'
  • module_agreement_stage Boolean
    help='Add a stage workflow to legal agreements'
  • module_agreement_termination Boolean
    help='Term dates, notices and termination tracking for agreements'
  • module_agreement_type Boolean
    help='Hierarchical agreement types (with sub-types) and review reminders'
Public methods (0)

No public methods.

New fields (2)
  • agreement_ids One2many → agreement
    string='Agreements' args: 'agreement', 'partner_id'
  • agreements_count Integer
    compute='_compute_agreements_count'
Public methods (1)
  • action_open_agreement(self)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…