You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
598 B

  1. # Copyright (C) 2019 - TODAY, Open Source Integrators
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. class Agreement(models.Model):
  5. _inherit = 'agreement'
  6. sale_id = fields.Many2one('sale.order', string='Sales Order')
  7. analytic_account_id = fields.Many2one(
  8. 'account.analytic.account', 'Analytic Account', readonly=True,
  9. copy=False)
  10. class AgreementLine(models.Model):
  11. _inherit = "agreement.line"
  12. sale_line_id = fields.Many2one('sale.order.line',
  13. string='Sales Order Line')