|
56 | 56 | <xpath expr="//field[@name='is_rental_order']" position="after"> |
57 | 57 | <button string="City Tax" type="action" name="%(open_x_city_tax_action)d" context="{'search_default_x_sale_order_id': id, 'default_x_sale_order_id': id}" invisible="not x_order_involves_room"/> |
58 | 58 | </xpath> |
59 | | - <xpath expr="//form[1]/sheet[1]/notebook[1]" position="inside"> |
| 59 | + <xpath expr="//group[@name='order_details']" postion="inside"> |
| 60 | + <field name="x_priority_flag_ids" widget="many2many_tags" invisible="not x_priority_flag_ids"/> |
| 61 | + </xpath> |
| 62 | + <xpath expr="//notebook" position="inside"> |
60 | 63 | <page string="Guests" invisible="not x_order_involves_room"> |
61 | 64 | <field name="x_guest_line_ids"> |
62 | 65 | <list default_order="x_sequence asc,id desc" editable="bottom"> |
|
163 | 166 | <field name="type">form</field> |
164 | 167 | <field name="active" eval="True"/> |
165 | 168 | </record> |
166 | | - <record id="product_product_form_view" model="ir.ui.view"> |
167 | | - <field name="arch" type="xml"> |
168 | | - <xpath expr="//label[@for='lst_price']" position="attributes"> |
169 | | - <attribute name="invisible">planning_role_id.x_resource_category</attribute> |
170 | | - </xpath> |
171 | | - <xpath expr="//div[@name='list_price_per_uom_id']" position="attributes"> |
172 | | - <attribute name="invisible">x_is_a_room_offer</attribute> |
173 | | - </xpath> |
174 | | - </field> |
175 | | - <field name="inherit_id" ref="product.product_normal_form_view"/> |
176 | | - <field name="mode">extension</field> |
177 | | - <field name="model">product.product</field> |
178 | | - <field name="name">product.product.form.inherit.booking_engine</field> |
179 | | - <field name="priority">160</field> |
180 | | - <field name="type">form</field> |
181 | | - <field name="active" eval="True"/> |
182 | | - </record> |
183 | 169 | <record id="planning_kanban_view" model="ir.ui.view"> |
184 | 170 | <field name="active" eval="True"/> |
185 | 171 | <field name="arch" type="xml"> |
|
407 | 393 | <field name="type">search</field> |
408 | 394 | <field name="active" eval="True"/> |
409 | 395 | </record> |
410 | | - <record id="booking_engine_order_search" model="ir.ui.view"> |
411 | | - <field name="arch" type="xml"> |
412 | | - <xpath expr="//filter[@name='my_sale_orders_filter']" position="before"> |
413 | | - <filter domain="['|', |
414 | | - '&', '&', '&', |
415 | | - ('rental_status', '=', 'return'), |
416 | | - ('rental_return_date', '>=', datetime.datetime.combine(context_today(), datetime.time(0, 0, 0)).to_utc().strftime('%Y-%m-%d %H:%M:%S')), |
417 | | - ('rental_return_date', '<', datetime.datetime.combine(context_today() + relativedelta(days = 1), datetime.time(0, 0, 0)).to_utc().strftime('%Y-%m-%d %H:%M:%S')), |
418 | | - ('state', '=', 'sale'), |
419 | | - '&', '&', '&', |
420 | | - ('rental_status', '=', 'pickup'), |
421 | | - ('rental_start_date', '>=', datetime.datetime.combine(context_today(), datetime.time(0, 0, 0)).to_utc().strftime('%Y-%m-%d %H:%M:%S')), |
422 | | - ('rental_start_date', '<', datetime.datetime.combine(context_today() + relativedelta(days = 1), datetime.time(0, 0, 0)).to_utc().strftime('%Y-%m-%d %H:%M:%S')), |
423 | | - ('state', '=', 'sale')]" |
424 | | - name="filter_today" string="Today"/> |
425 | | - <separator/> |
426 | | - </xpath> |
427 | | - <xpath expr="//filter[@name='my_sale_orders_filter']" position="after"> |
428 | | - <separator/> |
429 | | - <filter domain="[('rental_status', 'in', ['sent', 'draft'])]" name="filter_draft" string="Draft"/> |
430 | | - <filter domain="[('rental_status', '=', 'pickup'), ('state', '=', 'sale')]" name="filter_check_in" string="To Check In"/> |
431 | | - <filter domain="[('rental_status', '=', 'return'), ('state', '=', 'sale')]" name="filter_check_out" string="To Check Out"/> |
432 | | - </xpath> |
433 | | - <xpath expr="//filter[@name='salesperson']" position="before"> |
434 | | - <filter string="Status" name="rental_status_group" context="{'group_by': 'rental_status'}"/> |
435 | | - </xpath> |
436 | | - </field> |
437 | | - <field name="inherit_id" ref="sale.view_sales_order_filter"/> |
438 | | - <field name="mode">primary</field> |
439 | | - <field name="model">sale.order</field> |
440 | | - <field name="name">sale.order.list.select.inherit.booking_engine</field> |
441 | | - <field name="priority">320</field> |
442 | | - <field name="type">search</field> |
443 | | - <field name="active" eval="True"/> |
444 | | - </record> |
445 | 396 | <record id="booking_engine_schedule_form" model="ir.ui.view"> |
446 | 397 | <field name="arch" type="xml"> |
447 | 398 | <xpath expr="//field[@name='resource_ids']" position="attributes"> |
|
472 | 423 | <attribute name="multi_create_view"/> |
473 | 424 | <attribute name="color">x_booking_color</attribute> |
474 | 425 | </xpath> |
| 426 | + <xpath expr="/gantt" position="inside"> |
| 427 | + <field name="x_has_early_checkin"/> |
| 428 | + <field name="x_has_late_checkout"/> |
| 429 | + </xpath> |
475 | 430 | </field> |
476 | 431 | <field name="inherit_id" ref="planning.planning_view_gantt"/> |
477 | 432 | <field name="mode">primary</field> |
|
591 | 546 | ]"/> |
592 | 547 | </record> |
593 | 548 | <record id="booking_engine_rooms_order_action" model="ir.actions.act_window"> |
594 | | - <field name="search_view_id" ref="booking_engine_order_search"/> |
| 549 | + <field name="search_view_id" ref="sale_renting.rental_order_view_search"/> |
595 | 550 | <field name="view_ids" eval="[ |
596 | 551 | (5, 0, 0), |
597 | 552 | (0, 0, {'view_mode': 'kanban', 'view_id': ref('booking_engine_orders_kanban')}), |
|
702 | 657 | <!-- project.task views --> |
703 | 658 | <record id="project_task_form_view_primary" model="ir.ui.view"> |
704 | 659 | <field name="arch" type="xml"> |
| 660 | + <xpath expr="//field[@name='project_id']" position="replace"> |
| 661 | + <field name="x_priority_flag_ids" widget="many2many_tags"/> |
| 662 | + </xpath> |
705 | 663 | <xpath expr="//field[@name='stage_id']" position="attributes"> |
706 | 664 | <attribute name="options">{'clickable': '1', 'fold_field': 'auto_validation_state'}</attribute> |
707 | 665 | </xpath> |
|
734 | 692 | <xpath expr="/list//field[@name='priority']" position="move"/> |
735 | 693 | </xpath> |
736 | 694 | <xpath expr="/list//field[@name='name']" position="after"> |
| 695 | + <field name="x_priority_flag_ids" widget="many2many_tags"/> |
737 | 696 | <field name="x_task_occupancy_color" column_invisible="True"/> |
738 | 697 | <field name="x_cleaning_color" column_invisible="True"/> |
739 | 698 | <field name="x_task_occupancy" optional="show" widget="badge" options="{'color_field': 'x_task_occupancy_color'}"/> |
|
0 commit comments