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.

15 lines
450 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 ContractContract(models.Model):
  7. _inherit = "contract.contract"
  8. skip_zero_qty = fields.Boolean(
  9. string='Skip Zero Qty Lines',
  10. help="If checked, contract lines with 0 qty don't create invoice line",
  11. )