mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] amenity py guideline
This commit is contained in:
@@ -10,7 +10,10 @@ class HotelRoomAmenity(models.Model):
|
||||
|
||||
# Fields declaration
|
||||
name = fields.Char('Amenity Name', translate=True, required=True)
|
||||
hotel_ids = fields.Many2many('hotel.property', string='Hotels', required=False, ondelete='restrict')
|
||||
hotel_ids = fields.Many2many('hotel.property',
|
||||
string='Hotels',
|
||||
required=False,
|
||||
ondelete='restrict')
|
||||
default_code = fields.Char('Internal Reference')
|
||||
room_amenity_type_id = fields.Many2one('hotel.amenity.type',
|
||||
'Amenity Category')
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2017 Alexandre Díaz
|
||||
# Copyright 2017 Dario Lodeiros
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo import models, fields, api
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class HotelRoomAmenityType(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user