Odoo modules related to point of sales
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.

12 lines
395 B

  1. # -*- coding: utf-8 -*-
  2. from odoo import models, fields
  3. class ResConfigSettings(models.TransientModel):
  4. _inherit = 'res.config.settings'
  5. default_duration = fields.Float(string="Default duration", default_model='restaurant.booking')
  6. _sql_constraints = [
  7. ('duration_positive', 'CHECK(default_duration >= 0)', "The default booking duration must be positive or null.")
  8. ]