Minor fix
This commit is contained in:
parent
27ca9db024
commit
143fb602cd
|
@ -21,11 +21,12 @@ class SaleShopTable(ModelSQL, ModelView):
|
|||
name = fields.Char('Table Name', required=True, select=True)
|
||||
active = fields.Boolean('Active', select=True)
|
||||
capacity = fields.Integer('Capacity', required=True, select=True)
|
||||
sale = fields.Many2One('sale.sale', 'Sale')
|
||||
state = fields.Selection([
|
||||
('available', 'Available'),
|
||||
('occupied', 'Occupied'),
|
||||
('reserved', 'Reserved')
|
||||
], 'State', states={'readonly': False}
|
||||
('available', 'Available'),
|
||||
('occupied', 'Occupied'),
|
||||
('reserved', 'Reserved')
|
||||
], 'State', states={'readonly': False}
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
|
|
@ -8,6 +8,8 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
|
|||
<field name="active"/>
|
||||
<label name="capacity"/>
|
||||
<field name="capacity"/>
|
||||
<label name="sale"/>
|
||||
<field name="sale"/>
|
||||
<label name="state"/>
|
||||
<field name="state"/>
|
||||
</form>
|
||||
|
|
|
@ -4,6 +4,7 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
|
|||
<tree editable="bottom">
|
||||
<field name="name"/>
|
||||
<field name="capacity"/>
|
||||
<field name="sale"/>
|
||||
<field name="state"/>
|
||||
<field name="active" tree_invisible="1"/>
|
||||
</tree>
|
||||
|
|
Loading…
Reference in New Issue