mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] Add Services Popover information
This commit is contained in:
@@ -193,6 +193,7 @@
|
||||
<field name="per_person">False</field>
|
||||
<field name="daily_limit">1</field>
|
||||
<field name="is_extra_bed">True</field>
|
||||
<field name="is_popoverable">True</field>
|
||||
</record>
|
||||
|
||||
<record id="hotel_service_3" model="product.product">
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# Copyright 2017 Alexandre Díaz
|
||||
# Copyright 2017 Dario Lodeiros
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from openerp import models, fields
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = "product.template"
|
||||
@@ -10,3 +11,5 @@ class ProductTemplate(models.Model):
|
||||
per_person = fields.Boolean('Unit increment per person')
|
||||
daily_limit = fields.Integer('Daily limit')
|
||||
is_extra_bed = fields.Boolean('Is extra bed', default=False)
|
||||
is_popoverable = fields.Boolean('Show in Popover', default=False,
|
||||
help='Specifies if the product is shown in the popover information.')
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<group>
|
||||
<field name="is_extra_bed" />
|
||||
<field name="daily_limit" />
|
||||
<field name="is_popoverable" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="per_day" />
|
||||
|
||||
Reference in New Issue
Block a user