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.

21 lines
591 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',
  9. 'Analytic Account',
  10. copy=False)
  11. class AgreementLine(models.Model):
  12. _inherit = "agreement.line"
  13. sale_line_id = fields.Many2one('sale.order.line',
  14. string='Sales Order Line')