[FIX] contract: Template lines handling (#92)

Update contract template lines handling to fix #80, and fix #59 #100
This commit is contained in:
Dave Lasley
2017-09-25 05:14:21 -07:00
committed by Pedro M. Baeza
parent 6b8e6de95b
commit 7a644fda57
8 changed files with 203 additions and 34 deletions

View File

@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# Copyright 2017 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountAnalyticContractLine(models.Model):
_name = 'account.analytic.contract.line'
_description = 'Contract Lines'
_inherit = 'account.analytic.invoice.line'
analytic_account_id = fields.Many2one(
string='Contract',
comodel_name='account.analytic.contract',
required=True,
ondelete='cascade',
)