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
568 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2017 Pesol (<http://pesol.es>)
  3. # Copyright 2017 Angel Moya <angel.moya@pesol.es>
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. from odoo import fields, models
  6. class AccountAnalyticContract(models.Model):
  7. _inherit = 'account.analytic.contract'
  8. type = fields.Selection(
  9. string='Type',
  10. selection=[('invoice', 'Invoice'),
  11. ('sale', 'Sale')],
  12. default='invoice',
  13. required=True,
  14. )
  15. sale_autoconfirm = fields.Boolean(
  16. string='Sale autoconfirm')