account-closing/account_invoice_start_end_dates/models/product.py

15 lines
506 B
Python
Raw Permalink Normal View History

2021-03-23 19:28:14 +00:00
# Copyright 2013-2016 Akretion, Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from flectra import models, fields
class ProductTemplate(models.Model):
_inherit = 'product.template'
must_have_dates = fields.Boolean(
string='Must Have Start and End Dates',
help="If this option is active, the user will have to enter "
"a Start Date and an End Date on the invoice lines that have "
"this product.")