Skip to content

Commit

Permalink
[MIG] pos_payment_change: modification wizard view, add widget selection
Browse files Browse the repository at this point in the history
  • Loading branch information
julenfl committed May 17, 2023
1 parent 02ba9cb commit 82e3147
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Binary file modified pos_payment_change/static/description/pos_config_form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pos_payment_change/static/description/pos_order_form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pos_payment_change/static/description/pos_order_tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion pos_payment_change/views/view_pos_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="model">pos.config</field>
<field name="inherit_id" ref="point_of_sale.pos_config_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('o_settings_container')][2]" position="inside">
<xpath
expr="//div[hasclass('o_settings_container')][2]/div"
position="after"
>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane">
<span class="o_form_label">Payment Change Policy</span>
Expand Down
7 changes: 2 additions & 5 deletions pos_payment_change/wizards/view_pos_payment_change_wizard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="amount_total" invisible="1" />
<field name="old_line_ids" colspan="4">
<tree>
<field name="old_payment_method_id" />
<field name="old_payment_method_id" widget="selection" />
<field name="amount" sum="Total" />
</tree>
</field>
Expand All @@ -26,10 +26,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
context="{'new_line_ids': new_line_ids, 'amount_total': amount_total}"
>
<tree editable="bottom">
<field
name="new_payment_method_id"
options="{'no_open': True, 'no_create_edit': True}"
/>
<field name="new_payment_method_id" widget="selection" />
<field name="amount" sum="Total" />
</tree>
</field>
Expand Down

0 comments on commit 82e3147

Please sign in to comment.