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.

16 lines
454 B

  1. # Copyright 2017 LasLabs Inc.
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import fields, models
  4. class AccountAnalyticInvoiceLine(models.Model):
  5. _name = 'account.analytic.invoice.line'
  6. _inherit = 'account.analytic.contract.line'
  7. analytic_account_id = fields.Many2one(
  8. comodel_name='account.analytic.account',
  9. string='Analytic Account',
  10. required=True,
  11. ondelete='cascade',
  12. )