mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] Move comment_template_id from account_invoice_comment_template and make it company_dependant [IMP] base_comment_template: Add test
20 lines
521 B
Python
20 lines
521 B
Python
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = "res.partner"
|
|
|
|
property_comment_template_id = fields.Many2one(
|
|
comodel_name='base.comment.template',
|
|
string='Conditions template',
|
|
company_dependant=True,
|
|
)
|
|
|
|
@api.model
|
|
def _commercial_fields(self):
|
|
res = super(ResPartner, self)._commercial_fields()
|
|
res += ['property_comment_template_id']
|
|
return res
|