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.

18 lines
654 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 AccountAbstractAnalyticContractLine(models.AbstractModel):
  7. _inherit = 'account.abstract.analytic.contract.line'
  8. qty_type = fields.Selection(
  9. selection=[
  10. ('fixed', 'Fixed quantity'),
  11. ('variable', 'Variable quantity'),
  12. ], required=True, default='fixed', string="Qty. type")
  13. qty_formula_id = fields.Many2one(
  14. comodel_name="contract.line.qty.formula", string="Qty. formula")