Skip to content

Commit

Permalink
⬆️ update views and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
trojikman committed Jun 30, 2021
1 parent df0dba5 commit a94353f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pos_order_merge/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Configuration

* Open POS configuration form
* Click on ``[Edit]``
* Check **[x] Order Merge** box under ``Bar & Restaurant`` section
* Check **[x] Order Merge** box under ``Order Interface`` section

Usage
=====
Expand Down
21 changes: 18 additions & 3 deletions pos_order_merge/views/pos_config_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@
<record id="view_pos_config_form" model="ir.ui.view">
<field name="name">pos.config.form.view.inherit</field>
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form" />
<field
name="inherit_id"
ref="pos_restaurant.pos_config_view_form_inherit_restaurant"
/>
<field name="arch" type="xml">
<xpath expr="//field[@name='iface_orderline_notes']" position="after">
<field name="iface_order_merge" />
<xpath expr="//div[@id='iface_orderline_notes']" position="after">
<div
class="col-12 col-lg-6 o_setting_box"
id="iface_order_merge"
attrs="{'invisible': [('module_pos_restaurant', '=', False)]}"
>
<div class="o_setting_left_pane">
<field name="iface_order_merge" />
</div>
<div class="o_setting_right_pane">
<label for="iface_order_merge" />
<div class="text-muted">Merge orders</div>
</div>
</div>
</xpath>
</field>
</record>
Expand Down

0 comments on commit a94353f

Please sign in to comment.