mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] Checkin Workflow
This commit is contained in:
@@ -1058,8 +1058,9 @@ class HotelReservation(models.Model):
|
||||
'view_id': view_id,
|
||||
'context': {
|
||||
'reservation_id': reservation_id,
|
||||
'default_reservation_id': reservation_id,
|
||||
'default_folio_id': self.folio_id,
|
||||
},
|
||||
'flags': {'initial_mode': 'edit'},
|
||||
'domain': [('reservation_id', '=', self.id)],
|
||||
'target': 'new',
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<act_window
|
||||
id="action_checkin_partner"
|
||||
name="Action checkin"
|
||||
res_model='hotel.checkin.partner'
|
||||
res_model="hotel.checkin.partner"
|
||||
view_mode="tree,form" />
|
||||
|
||||
<menuitem
|
||||
@@ -40,7 +40,7 @@
|
||||
<field name="model">hotel.checkin.partner</field>
|
||||
<field name="priority">20</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree editable="bottom" create="1"
|
||||
<tree editable="bottom"
|
||||
decoration-danger="state == 'draft'"
|
||||
decoration-muted="state == 'cancelled' or state =='done'"
|
||||
decoration-success="state == 'booking'">
|
||||
|
||||
Reference in New Issue
Block a user