OCA reporting engine fork for dev and update.
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.

19 lines
521 B

  1. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  2. from odoo import api, fields, models
  3. class ResPartner(models.Model):
  4. _inherit = "res.partner"
  5. property_comment_template_id = fields.Many2one(
  6. comodel_name='base.comment.template',
  7. string='Conditions template',
  8. company_dependant=True,
  9. )
  10. @api.model
  11. def _commercial_fields(self):
  12. res = super(ResPartner, self)._commercial_fields()
  13. res += ['property_comment_template_id']
  14. return res