From 95514b83c571f6685aef15dcf3355426011278c1 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Sun, 1 Dec 2019 12:52:57 +0100 Subject: [PATCH] fixup! fixup! [ADD] pos_round_payment: Allow to round payment to 5 cents --- pos_round_payment/models/pos_order.py | 2 +- pos_round_payment/wizards/pos_payment.py | 3 ++- setup/hw_customer_display/odoo_addons/hw_customer_display | 1 - .../odoo_addons/hw_telium_payment_terminal | 1 - setup/pos_autoreconcile/odoo_addons/pos_autoreconcile | 1 - setup/pos_customer_display/odoo_addons/pos_customer_display | 1 - setup/pos_customer_required/odoo_addons/pos_customer_required | 1 - .../odoo_addons/pos_default_empty_image | 1 - setup/pos_gift_ticket/odoo_addons/pos_gift_ticket | 1 - setup/pos_invoice_journal/odoo_addons/pos_invoice_journal | 1 - setup/pos_order_load/odoo_addons/pos_order_load | 1 - .../pos_order_picking_link/odoo_addons/pos_order_picking_link | 1 - .../odoo_addons/pos_order_pricelist_change | 1 - setup/pos_payment_terminal/odoo_addons/pos_payment_terminal | 1 - setup/pos_pricelist/odoo_addons/pos_pricelist | 1 - setup/pos_product_template/odoo_addons/pos_product_template | 1 - .../odoo_addons/pos_remove_pos_category | 1 - 17 files changed, 3 insertions(+), 17 deletions(-) delete mode 120000 setup/hw_customer_display/odoo_addons/hw_customer_display delete mode 120000 setup/hw_telium_payment_terminal/odoo_addons/hw_telium_payment_terminal delete mode 120000 setup/pos_autoreconcile/odoo_addons/pos_autoreconcile delete mode 120000 setup/pos_customer_display/odoo_addons/pos_customer_display delete mode 120000 setup/pos_customer_required/odoo_addons/pos_customer_required delete mode 120000 setup/pos_default_empty_image/odoo_addons/pos_default_empty_image delete mode 120000 setup/pos_gift_ticket/odoo_addons/pos_gift_ticket delete mode 120000 setup/pos_invoice_journal/odoo_addons/pos_invoice_journal delete mode 120000 setup/pos_order_load/odoo_addons/pos_order_load delete mode 120000 setup/pos_order_picking_link/odoo_addons/pos_order_picking_link delete mode 120000 setup/pos_order_pricelist_change/odoo_addons/pos_order_pricelist_change delete mode 120000 setup/pos_payment_terminal/odoo_addons/pos_payment_terminal delete mode 120000 setup/pos_pricelist/odoo_addons/pos_pricelist delete mode 120000 setup/pos_product_template/odoo_addons/pos_product_template delete mode 120000 setup/pos_remove_pos_category/odoo_addons/pos_remove_pos_category diff --git a/pos_round_payment/models/pos_order.py b/pos_round_payment/models/pos_order.py index 48ee264b..6ab4ff7c 100644 --- a/pos_round_payment/models/pos_order.py +++ b/pos_round_payment/models/pos_order.py @@ -2,7 +2,7 @@ # Copyright 2019 Jacques-Etienne Baudoux (BCIM sprl) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import api, models, fields +from openerp import api, models class PosOrder(models.Model): diff --git a/pos_round_payment/wizards/pos_payment.py b/pos_round_payment/wizards/pos_payment.py index ee56665a..ad76a358 100644 --- a/pos_round_payment/wizards/pos_payment.py +++ b/pos_round_payment/wizards/pos_payment.py @@ -34,7 +34,8 @@ class PosMakePayment(models.TransientModel): if amount != 0.0: data = self.read()[0] data['journal'] = data['journal_id'][0] - self.pool['pos.order'].add_payment(self._cr, self._uid, active_id, data, self._context) + self.pool['pos.order'].add_payment( + self._cr, self._uid, active_id, data, self._context) if order.test_paid(): order.signal_workflow('paid') diff --git a/setup/hw_customer_display/odoo_addons/hw_customer_display b/setup/hw_customer_display/odoo_addons/hw_customer_display deleted file mode 120000 index 3d16b5aa..00000000 --- a/setup/hw_customer_display/odoo_addons/hw_customer_display +++ /dev/null @@ -1 +0,0 @@ -../../../hw_customer_display \ No newline at end of file diff --git a/setup/hw_telium_payment_terminal/odoo_addons/hw_telium_payment_terminal b/setup/hw_telium_payment_terminal/odoo_addons/hw_telium_payment_terminal deleted file mode 120000 index a9293767..00000000 --- a/setup/hw_telium_payment_terminal/odoo_addons/hw_telium_payment_terminal +++ /dev/null @@ -1 +0,0 @@ -../../../hw_telium_payment_terminal \ No newline at end of file diff --git a/setup/pos_autoreconcile/odoo_addons/pos_autoreconcile b/setup/pos_autoreconcile/odoo_addons/pos_autoreconcile deleted file mode 120000 index ba307025..00000000 --- a/setup/pos_autoreconcile/odoo_addons/pos_autoreconcile +++ /dev/null @@ -1 +0,0 @@ -../../../pos_autoreconcile \ No newline at end of file diff --git a/setup/pos_customer_display/odoo_addons/pos_customer_display b/setup/pos_customer_display/odoo_addons/pos_customer_display deleted file mode 120000 index d11b4b03..00000000 --- a/setup/pos_customer_display/odoo_addons/pos_customer_display +++ /dev/null @@ -1 +0,0 @@ -../../../pos_customer_display \ No newline at end of file diff --git a/setup/pos_customer_required/odoo_addons/pos_customer_required b/setup/pos_customer_required/odoo_addons/pos_customer_required deleted file mode 120000 index b0327685..00000000 --- a/setup/pos_customer_required/odoo_addons/pos_customer_required +++ /dev/null @@ -1 +0,0 @@ -../../../pos_customer_required \ No newline at end of file diff --git a/setup/pos_default_empty_image/odoo_addons/pos_default_empty_image b/setup/pos_default_empty_image/odoo_addons/pos_default_empty_image deleted file mode 120000 index 6a9331c8..00000000 --- a/setup/pos_default_empty_image/odoo_addons/pos_default_empty_image +++ /dev/null @@ -1 +0,0 @@ -../../../pos_default_empty_image \ No newline at end of file diff --git a/setup/pos_gift_ticket/odoo_addons/pos_gift_ticket b/setup/pos_gift_ticket/odoo_addons/pos_gift_ticket deleted file mode 120000 index 09c14c85..00000000 --- a/setup/pos_gift_ticket/odoo_addons/pos_gift_ticket +++ /dev/null @@ -1 +0,0 @@ -../../../pos_gift_ticket \ No newline at end of file diff --git a/setup/pos_invoice_journal/odoo_addons/pos_invoice_journal b/setup/pos_invoice_journal/odoo_addons/pos_invoice_journal deleted file mode 120000 index 775ff58f..00000000 --- a/setup/pos_invoice_journal/odoo_addons/pos_invoice_journal +++ /dev/null @@ -1 +0,0 @@ -../../../pos_invoice_journal \ No newline at end of file diff --git a/setup/pos_order_load/odoo_addons/pos_order_load b/setup/pos_order_load/odoo_addons/pos_order_load deleted file mode 120000 index c3683a1e..00000000 --- a/setup/pos_order_load/odoo_addons/pos_order_load +++ /dev/null @@ -1 +0,0 @@ -../../../pos_order_load \ No newline at end of file diff --git a/setup/pos_order_picking_link/odoo_addons/pos_order_picking_link b/setup/pos_order_picking_link/odoo_addons/pos_order_picking_link deleted file mode 120000 index a0786f1d..00000000 --- a/setup/pos_order_picking_link/odoo_addons/pos_order_picking_link +++ /dev/null @@ -1 +0,0 @@ -../../../pos_order_picking_link \ No newline at end of file diff --git a/setup/pos_order_pricelist_change/odoo_addons/pos_order_pricelist_change b/setup/pos_order_pricelist_change/odoo_addons/pos_order_pricelist_change deleted file mode 120000 index 29e12004..00000000 --- a/setup/pos_order_pricelist_change/odoo_addons/pos_order_pricelist_change +++ /dev/null @@ -1 +0,0 @@ -../../../pos_order_pricelist_change \ No newline at end of file diff --git a/setup/pos_payment_terminal/odoo_addons/pos_payment_terminal b/setup/pos_payment_terminal/odoo_addons/pos_payment_terminal deleted file mode 120000 index 9a24a376..00000000 --- a/setup/pos_payment_terminal/odoo_addons/pos_payment_terminal +++ /dev/null @@ -1 +0,0 @@ -../../../pos_payment_terminal \ No newline at end of file diff --git a/setup/pos_pricelist/odoo_addons/pos_pricelist b/setup/pos_pricelist/odoo_addons/pos_pricelist deleted file mode 120000 index f1c65c88..00000000 --- a/setup/pos_pricelist/odoo_addons/pos_pricelist +++ /dev/null @@ -1 +0,0 @@ -../../../pos_pricelist \ No newline at end of file diff --git a/setup/pos_product_template/odoo_addons/pos_product_template b/setup/pos_product_template/odoo_addons/pos_product_template deleted file mode 120000 index d57d77dc..00000000 --- a/setup/pos_product_template/odoo_addons/pos_product_template +++ /dev/null @@ -1 +0,0 @@ -../../../pos_product_template \ No newline at end of file diff --git a/setup/pos_remove_pos_category/odoo_addons/pos_remove_pos_category b/setup/pos_remove_pos_category/odoo_addons/pos_remove_pos_category deleted file mode 120000 index b3d43689..00000000 --- a/setup/pos_remove_pos_category/odoo_addons/pos_remove_pos_category +++ /dev/null @@ -1 +0,0 @@ -../../../pos_remove_pos_category \ No newline at end of file