mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Template lines handling (#92)
Update contract template lines handling to fix #80, and fix #59 #100
This commit is contained in:
committed by
Pedro M. Baeza
parent
6b8e6de95b
commit
7a644fda57
19
contract/models/account_analytic_contract_line.py
Normal file
19
contract/models/account_analytic_contract_line.py
Normal 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',
|
||||
)
|
||||
Reference in New Issue
Block a user