Skip to content

Commit 4c9439a

Browse files
committed
[18.0][MIG] pos_payment_change: Migration to 18.0
1 parent a05d2af commit 4c9439a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pos_payment_change/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
44
{
55
"name": "Point Of Sale - Change Payments",
6-
"version": "17.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"summary": "Allow cashier to change order payments, as long as"
88
" the session is not closed.",
99
"category": "Point Of Sale",

pos_payment_change/models/pos_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def change_payment(self, payment_lines):
8383
)
8484

8585
for order in orders:
86-
order.note = "{}\n{}".format(order.note or "", comment)
86+
order.general_note = "{}\n{}".format(order.general_note or "", comment)
8787
return orders
8888

8989
def _check_payment_change_allowed(self):

pos_payment_change/wizards/view_pos_payment_change_wizard.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
1313
<field name="order_id" />
1414
<field name="amount_total" invisible="1" />
1515
<field name="old_line_ids" colspan="4">
16-
<tree>
16+
<list>
1717
<field name="old_payment_method_id" widget="selection" />
1818
<field name="amount" sum="Total" />
1919
<field name="company_currency_id" column_invisible="1" />
20-
</tree>
20+
</list>
2121
</field>
2222
<newline />
2323
<field
2424
name="new_line_ids"
2525
colspan="4"
2626
context="{'new_line_ids': new_line_ids, 'amount_total': amount_total}"
2727
>
28-
<tree editable="bottom">
28+
<list editable="bottom">
2929
<field name="new_payment_method_id" widget="selection" />
3030
<field name="amount" sum="Total" />
3131
<field name="company_currency_id" column_invisible="1" />
3232
<field
3333
name="available_payment_method_ids"
3434
column_invisible="1"
3535
/>
36-
</tree>
36+
</list>
3737
</field>
3838
</group>
3939
<footer>

0 commit comments

Comments
 (0)