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.

23 lines
674 B

  1. # Copyright 2016 Tecnativa - Pedro M. Baeza
  2. # Copyright 2018 Tecnativa - Carlos Dauden
  3. # Copyright 2018 ACSONE SA/NV
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. from odoo import fields, models
  6. class ContractAbstractContractLine(models.AbstractModel):
  7. _inherit = 'contract.abstract.contract.line'
  8. qty_type = fields.Selection(
  9. selection=[
  10. ('fixed', 'Fixed quantity'),
  11. ('variable', 'Variable quantity'),
  12. ],
  13. required=True,
  14. default='fixed',
  15. string="Qty. type",
  16. )
  17. qty_formula_id = fields.Many2one(
  18. comodel_name="contract.line.qty.formula", string="Qty. formula"
  19. )