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.
 
 
 

24 lines
696 B

# -*- coding: utf-8 -*-
# Copyright 2017 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class AccountAnalyticContract(models.Model):
_inherit = 'account.analytic.contract'
website_template_id = fields.Many2one(
string='Website Template',
comodel_name='account.analytic.contract.template',
help='Website layout for contract',
default=lambda s: s._get_default_template(),
)
@api.model
def _get_default_template(self):
return self.env.ref(
'website_portal_contract.website_contract_template_default',
raise_if_not_found=False,
)