Files
contract/agreement_legal_sale/models/agreement.py
Patrick Wilson 3c56a7777c [14.0][MIG] agreement_legal_sale (Version 12.0 to 14.0)
[MIG] Prettier

[MIG] Tests

Pre-Commit
2021-06-29 09:39:30 -06:00

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")