|
|
@ -74,6 +74,17 @@ |
|
|
|
<field name="name"/> |
|
|
|
<field name="table_id"/> |
|
|
|
<field name="datetime_start"/> |
|
|
|
<group expand="0" string="Filters"> |
|
|
|
<filter name="this_week" string="This week" domain="[('datetime_start','>=',(context_today() + relativedelta(weekday=0)).strftime('%Y-%m-%d 00:00:00')),('date','<=',(context_today() + relativedelta(weekday=6)).strftime('%Y-%m-%d 23:59:59'))]"/> |
|
|
|
<filter name="next_week" string="Next week" domain="[('datetime_start','>=',(context_today() + relativedelta(weeks=1, weekday=0)).strftime('%Y-%m-%d 00:00:00')),('date','<=',(context_today() + relativedelta(weeks=1, weekday=6)).strftime('%Y-%m-%d 23:59:59'))]"/> |
|
|
|
<separator/> |
|
|
|
<filter name="upcoming" string="Upcoming" domain="[('datetime_start','>=',context_today().strftime('%Y-%m-%d 00:00:00'))]"/> |
|
|
|
</group> |
|
|
|
<group expand="0" string="Group By"> |
|
|
|
<filter name="by_booking" string="Booking" domain="[]" context="{'group_by': 'booking_id'}"/> |
|
|
|
<filter name="by_table" string="Table" domain="[]" context="{'group_by': 'table_id'}"/> |
|
|
|
<filter name="by_date" string="Date" domain="[]" context="{'group_by': 'datetime_start:day'}"/> |
|
|
|
</group> |
|
|
|
</search> |
|
|
|
</field> |
|
|
|
</record> |
|
|
@ -82,14 +93,14 @@ |
|
|
|
<field name="name">Tables bookings</field> |
|
|
|
<field name="res_model">restaurant.table_booking</field> |
|
|
|
<field name="view_mode">gantt,form</field> |
|
|
|
<!-- <field name="context">{'search_default_today':1}</field> --> |
|
|
|
<!-- <field name="help" type="html"> |
|
|
|
<field name="context">{'search_default_upcoming':1}</field> |
|
|
|
<field name="help" type="html"> |
|
|
|
<p class="o_view_nocontent_smiling_face"> |
|
|
|
Prendre une nouvelle réservation. |
|
|
|
Schedule a new booking. |
|
|
|
</p><p> |
|
|
|
Une réservation compreend un nom, une date, des horaires et une ou plusieurs tables. |
|
|
|
To book, you must provide a name, a date, start and stop hours, the people count and one or more tables. |
|
|
|
</p> |
|
|
|
</field> --> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<menuitem |
|
|
|