You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
663 B

  1. # Copyright 2019 Camptocamp SA
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. class ResPartner(models.Model):
  5. _inherit = "res.partner"
  6. default_agreement_type_id = fields.Many2one(
  7. comodel_name='agreement.type',
  8. string='Default Agreement Type'
  9. )
  10. customer_agreement_settings_id = fields.Many2one(
  11. comodel_name='agreement',
  12. domain=[('is_customer_requirement', '=', True)],
  13. string="Agreed customer preferences"
  14. )
  15. customer_agreements = fields.One2many(
  16. comodel_name='agreement', inverse_name='partner_id',
  17. string="All agreements"
  18. )