Fix
This commit is contained in:
parent
36bafab94e
commit
776507b946
|
@ -491,7 +491,7 @@ class Booking(Workflow, ModelSQL, ModelView):
|
|||
reference = fo.registration_card
|
||||
else:
|
||||
reference = ','.join(
|
||||
[fo.registration_card for fo in folios]
|
||||
[fo.registration_card for fo in folios if fo.registration_card or '']
|
||||
)
|
||||
res[party.id] = {
|
||||
'party': party,
|
||||
|
|
|
@ -11,6 +11,8 @@ class Maintenance(Workflow, ModelSQL, ModelView):
|
|||
'Hotel Maintenance'
|
||||
__name__ = 'hotel.maintenance'
|
||||
room = fields.Many2One('hotel.room', 'Room', required=True, states=STATES)
|
||||
register_date = fields.Date('Date', states=STATES, required=True,
|
||||
help='The date of register of the issue')
|
||||
start_date = fields.Date('Start Maintenance', states=STATES)
|
||||
end_date = fields.Date('End Maintenance', states={
|
||||
'required': Bool(Eval('start_date')),
|
||||
|
|
|
@ -3,11 +3,13 @@
|
|||
this repository contains the full copyright notices and license terms. -->
|
||||
<form col="6">
|
||||
<label name="room"/>
|
||||
<field name="room"/>
|
||||
<field name="room" widget="selection"/>
|
||||
<label name="criticality"/>
|
||||
<field name="criticality"/>
|
||||
<label name="create_uid"/>
|
||||
<field name="create_uid"/>
|
||||
<label name="register_date"/>
|
||||
<field name="register_date"/>
|
||||
<label name="start_date"/>
|
||||
<field name="start_date"/>
|
||||
<label name="end_date"/>
|
||||
|
@ -15,12 +17,13 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<label name="total_days"/>
|
||||
<field name="total_days"/>
|
||||
<label name="inspected_by"/>
|
||||
<field name="inspected_by"/>
|
||||
<separator name="issue" colspan="4"/>
|
||||
<field name="issue" colspan="4"/>
|
||||
<separator name="action" colspan="4"/>
|
||||
<field name="action" colspan="4"/>
|
||||
<group col="6" colspan="4" id="buttons">
|
||||
<field name="inspected_by" widget="selection"/>
|
||||
<newline />
|
||||
<separator name="issue" colspan="6"/>
|
||||
<field name="issue" colspan="6"/>
|
||||
<separator name="action" colspan="6"/>
|
||||
<field name="action" colspan="6"/>
|
||||
<group col="6" colspan="6" id="buttons">
|
||||
<label name="state"/>
|
||||
<field name="state"/>
|
||||
<button name="draft" string="Draft"/>
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="kind"/>
|
||||
<field name="kind"/>
|
||||
<label name="room"/>
|
||||
<field name="room"/>
|
||||
<label name="start_date"/>
|
||||
<field name="start_date"/>
|
||||
<label name="end_date"/>
|
||||
<field name="end_date"/>
|
||||
<separator name="description" colspan="4"/>
|
||||
<field name="description" colspan="4"/>
|
||||
<group col="6" colspan="4" id="buttons">
|
||||
<label name="state"/>
|
||||
<field name="state"/>
|
||||
<button name="cancel" string="Cancel"
|
||||
icon="tryton-cancel"/>
|
||||
<button name="confirm" string="Confirm"
|
||||
icon="tryton-forward"/>
|
||||
<button name="finish" string="Finish"
|
||||
icon="tryton-ok"/>
|
||||
</group>
|
||||
</form>
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tree>
|
||||
<field name="kind"/>
|
||||
<field name="room"/>
|
||||
<field name="start_date" widget="date"/>
|
||||
<field name="end_date" widget="date"/>
|
||||
<field name="state"/>
|
||||
</tree>
|
Loading…
Reference in New Issue