mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[REF] Contract: split from analytic account
This commit is contained in:
committed by
Jean-Charles Drubay
parent
c66e3dd47b
commit
bfe3154377
@@ -9,15 +9,15 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountAnalyticContractLine(models.Model):
|
||||
_name = 'account.analytic.contract.line'
|
||||
_inherit = 'account.abstract.analytic.contract.line'
|
||||
_description = 'Contract Lines'
|
||||
class ContractTemplateLine(models.Model):
|
||||
_name = 'contract.template.line'
|
||||
_inherit = 'contract.abstract.contract.line'
|
||||
_description = "Contract Template Line"
|
||||
_order = "sequence,id"
|
||||
|
||||
contract_id = fields.Many2one(
|
||||
string='Contract',
|
||||
comodel_name='account.analytic.contract',
|
||||
comodel_name='contract.template',
|
||||
required=True,
|
||||
ondelete='cascade',
|
||||
oldname='analytic_account_id',
|
||||
|
||||
Reference in New Issue
Block a user