[WIP] Add virtual pricelists

This commit is contained in:
Pablo
2019-03-05 01:34:44 +01:00
parent 80719f3f16
commit 604234fb6c
4 changed files with 38 additions and 1 deletions

View File

@@ -2,11 +2,16 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api
class ProductPricelist(models.Model):
_inherit = 'product.pricelist'
is_staff = fields.Boolean('Is Staff')
is_daily_plan = fields.Boolean('Daily Pricing Plan', default=True,
help = "Check if the pricing plan is daily. "
"Note that only daily plans can be edited on "
"the Hotel Calendar Management.")
@api.multi
@api.depends('name')
def name_get(self):