mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
pms: Improvement views
This commit is contained in:
@@ -411,6 +411,7 @@
|
||||
<search string="Checkin Detail">
|
||||
<field name="partner_id" />
|
||||
<field name="reservation_id" />
|
||||
<field name="pms_property_id" />
|
||||
<filter
|
||||
string="On Board"
|
||||
name="on_board"
|
||||
|
||||
@@ -944,6 +944,7 @@
|
||||
string="Reservations to 7 days"
|
||||
name="next_res_week"
|
||||
domain="[('checkin', '<', (context_today()+datetime.timedelta(days=7)).strftime('%Y-%m-%d')),
|
||||
('checkin', '>', (context_today()).strftime('%Y-%m-%d')),
|
||||
('state', 'in', ['confirm','onboard'])]"
|
||||
help="Show all reservations for which date enter is before than 7 days"
|
||||
/>
|
||||
@@ -951,6 +952,7 @@
|
||||
string="Reservations to 14 days"
|
||||
name="next_res_2week"
|
||||
domain="[('checkin', '<', (context_today()+datetime.timedelta(days=14)).strftime('%Y-%m-%d')),
|
||||
('checkin', '>', (context_today()).strftime('%Y-%m-%d')),
|
||||
('state', 'in', ['confirm','onboard'])]"
|
||||
help="Show all reservations for which date enter is before than 14 days"
|
||||
/>
|
||||
@@ -958,6 +960,7 @@
|
||||
string="Reservations to 1 month"
|
||||
name="next_res_week"
|
||||
domain="[('checkin', '<', (context_today()+datetime.timedelta(days=30)).strftime('%Y-%m-%d')),
|
||||
('checkin', '>', (context_today()).strftime('%Y-%m-%d')),
|
||||
('state', 'in', ['confirm','onboard'])]"
|
||||
help="Show all reservations for which date enter is before than aprox. 1 month"
|
||||
/>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<field name="model">pms.service.line</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Services By Day">
|
||||
<field name="service_id" />
|
||||
<field name="product_id" />
|
||||
<separator />
|
||||
<field name="pms_property_id" />
|
||||
<separator />
|
||||
|
||||
Reference in New Issue
Block a user