mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
16 lines
450 B
Python
16 lines
450 B
Python
# Copyright 2016 Tecnativa - Pedro M. Baeza
|
|
# Copyright 2018 Tecnativa - Carlos Dauden
|
|
# Copyright 2018 ACSONE SA/NV
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ContractContract(models.Model):
|
|
_inherit = "contract.contract"
|
|
|
|
skip_zero_qty = fields.Boolean(
|
|
string="Skip Zero Qty Lines",
|
|
help="If checked, contract lines with 0 qty don't create invoice line",
|
|
)
|