[FIX] point_of_sale: prevent deletion of payment

Deleting a payment will prevent the POS session closing.

opw-2155093

closes odoo/odoo#41752

X-original-commit: a6927e31af53f28c04eb567db0da396ad07e7206
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2019-12-12 07:38:26 +00:00
parent 0d6ddb7bda
commit 40fa388b5b
@@ -4,7 +4,7 @@
<field name="name">pos.payment.form</field>
<field name="model">pos.payment</field>
<field name="arch" type="xml">
<form string="Payments" create="0">
<form string="Payments" create="0" delete="0">
<sheet>
<group>
<field name="currency_id" invisible="1" />
@@ -25,7 +25,7 @@
<field name="name">pos.payment.tree</field>
<field name="model">pos.payment</field>
<field name="arch" type="xml">
<tree string="Payments" create="0">
<tree string="Payments" create="0" delete="0">
<field name="currency_id" invisible="1" />
<field name="payment_date" widget="date" />
<field name="payment_method_id" />