mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
20 lines
545 B
Python
20 lines
545 B
Python
# Copyright (C) 2019 - TODAY, Open Source Integrators
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class Agreement(models.Model):
|
|
_inherit = "agreement"
|
|
|
|
sale_id = fields.Many2one("sale.order", string="Sales Order")
|
|
analytic_account_id = fields.Many2one(
|
|
"account.analytic.account", "Analytic Account", copy=False
|
|
)
|
|
|
|
|
|
class AgreementLine(models.Model):
|
|
_inherit = "agreement.line"
|
|
|
|
sale_line_id = fields.Many2one("sale.order.line", string="Sales Order Line")
|