pms: Improvement views

This commit is contained in:
Darío Lodeiros
2023-03-21 16:59:56 +01:00
parent efcad295c6
commit 99a704833d
3 changed files with 5 additions and 1 deletions

View File

@@ -411,6 +411,7 @@
<search string="Checkin Detail"> <search string="Checkin Detail">
<field name="partner_id" /> <field name="partner_id" />
<field name="reservation_id" /> <field name="reservation_id" />
<field name="pms_property_id" />
<filter <filter
string="On Board" string="On Board"
name="on_board" name="on_board"

View File

@@ -944,6 +944,7 @@
string="Reservations to 7 days" string="Reservations to 7 days"
name="next_res_week" name="next_res_week"
domain="[('checkin', '&lt;', (context_today()+datetime.timedelta(days=7)).strftime('%Y-%m-%d')), domain="[('checkin', '&lt;', (context_today()+datetime.timedelta(days=7)).strftime('%Y-%m-%d')),
('checkin', '&gt;', (context_today()).strftime('%Y-%m-%d')),
('state', 'in', ['confirm','onboard'])]" ('state', 'in', ['confirm','onboard'])]"
help="Show all reservations for which date enter is before than 7 days" help="Show all reservations for which date enter is before than 7 days"
/> />
@@ -951,6 +952,7 @@
string="Reservations to 14 days" string="Reservations to 14 days"
name="next_res_2week" name="next_res_2week"
domain="[('checkin', '&lt;', (context_today()+datetime.timedelta(days=14)).strftime('%Y-%m-%d')), domain="[('checkin', '&lt;', (context_today()+datetime.timedelta(days=14)).strftime('%Y-%m-%d')),
('checkin', '&gt;', (context_today()).strftime('%Y-%m-%d')),
('state', 'in', ['confirm','onboard'])]" ('state', 'in', ['confirm','onboard'])]"
help="Show all reservations for which date enter is before than 14 days" help="Show all reservations for which date enter is before than 14 days"
/> />
@@ -958,6 +960,7 @@
string="Reservations to 1 month" string="Reservations to 1 month"
name="next_res_week" name="next_res_week"
domain="[('checkin', '&lt;', (context_today()+datetime.timedelta(days=30)).strftime('%Y-%m-%d')), domain="[('checkin', '&lt;', (context_today()+datetime.timedelta(days=30)).strftime('%Y-%m-%d')),
('checkin', '&gt;', (context_today()).strftime('%Y-%m-%d')),
('state', 'in', ['confirm','onboard'])]" ('state', 'in', ['confirm','onboard'])]"
help="Show all reservations for which date enter is before than aprox. 1 month" help="Show all reservations for which date enter is before than aprox. 1 month"
/> />

View File

@@ -74,7 +74,7 @@
<field name="model">pms.service.line</field> <field name="model">pms.service.line</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search string="Services By Day"> <search string="Services By Day">
<field name="service_id" /> <field name="product_id" />
<separator /> <separator />
<field name="pms_property_id" /> <field name="pms_property_id" />
<separator /> <separator />