Minor fix

This commit is contained in:
Oscar Alvarez 2020-12-20 12:20:34 -05:00
parent 27ca9db024
commit 143fb602cd
3 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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>

View File

@ -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>