Browse Source

fixup! fixup! [ADD] pos_round_payment: Allow to round payment to 5 cents

pull/420/head
Jacques-Etienne Baudoux 5 years ago
parent
commit
95514b83c5
  1. 2
      pos_round_payment/models/pos_order.py
  2. 3
      pos_round_payment/wizards/pos_payment.py
  3. 1
      setup/hw_customer_display/odoo_addons/hw_customer_display
  4. 1
      setup/hw_telium_payment_terminal/odoo_addons/hw_telium_payment_terminal
  5. 1
      setup/pos_autoreconcile/odoo_addons/pos_autoreconcile
  6. 1
      setup/pos_customer_display/odoo_addons/pos_customer_display
  7. 1
      setup/pos_customer_required/odoo_addons/pos_customer_required
  8. 1
      setup/pos_default_empty_image/odoo_addons/pos_default_empty_image
  9. 1
      setup/pos_gift_ticket/odoo_addons/pos_gift_ticket
  10. 1
      setup/pos_invoice_journal/odoo_addons/pos_invoice_journal
  11. 1
      setup/pos_order_load/odoo_addons/pos_order_load
  12. 1
      setup/pos_order_picking_link/odoo_addons/pos_order_picking_link
  13. 1
      setup/pos_order_pricelist_change/odoo_addons/pos_order_pricelist_change
  14. 1
      setup/pos_payment_terminal/odoo_addons/pos_payment_terminal
  15. 1
      setup/pos_pricelist/odoo_addons/pos_pricelist
  16. 1
      setup/pos_product_template/odoo_addons/pos_product_template
  17. 1
      setup/pos_remove_pos_category/odoo_addons/pos_remove_pos_category

2
pos_round_payment/models/pos_order.py

@ -2,7 +2,7 @@
# Copyright 2019 Jacques-Etienne Baudoux (BCIM sprl) <je@bcim.be>
# 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):

3
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')

1
setup/hw_customer_display/odoo_addons/hw_customer_display

@ -1 +0,0 @@
../../../hw_customer_display

1
setup/hw_telium_payment_terminal/odoo_addons/hw_telium_payment_terminal

@ -1 +0,0 @@
../../../hw_telium_payment_terminal

1
setup/pos_autoreconcile/odoo_addons/pos_autoreconcile

@ -1 +0,0 @@
../../../pos_autoreconcile

1
setup/pos_customer_display/odoo_addons/pos_customer_display

@ -1 +0,0 @@
../../../pos_customer_display

1
setup/pos_customer_required/odoo_addons/pos_customer_required

@ -1 +0,0 @@
../../../pos_customer_required

1
setup/pos_default_empty_image/odoo_addons/pos_default_empty_image

@ -1 +0,0 @@
../../../pos_default_empty_image

1
setup/pos_gift_ticket/odoo_addons/pos_gift_ticket

@ -1 +0,0 @@
../../../pos_gift_ticket

1
setup/pos_invoice_journal/odoo_addons/pos_invoice_journal

@ -1 +0,0 @@
../../../pos_invoice_journal

1
setup/pos_order_load/odoo_addons/pos_order_load

@ -1 +0,0 @@
../../../pos_order_load

1
setup/pos_order_picking_link/odoo_addons/pos_order_picking_link

@ -1 +0,0 @@
../../../pos_order_picking_link

1
setup/pos_order_pricelist_change/odoo_addons/pos_order_pricelist_change

@ -1 +0,0 @@
../../../pos_order_pricelist_change

1
setup/pos_payment_terminal/odoo_addons/pos_payment_terminal

@ -1 +0,0 @@
../../../pos_payment_terminal

1
setup/pos_pricelist/odoo_addons/pos_pricelist

@ -1 +0,0 @@
../../../pos_pricelist

1
setup/pos_product_template/odoo_addons/pos_product_template

@ -1 +0,0 @@
../../../pos_product_template

1
setup/pos_remove_pos_category/odoo_addons/pos_remove_pos_category

@ -1 +0,0 @@
../../../pos_remove_pos_category
Loading…
Cancel
Save