summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/__manifest__.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2017-03-29 11:58:48 +0200
committerMartin Trigaux <mat@odoo.com>2018-08-13 11:08:03 +0200
commit0222fdfdc749b35b0e59f4e10e7177197c126eba (patch)
treeff8257eef120f574d4cd3488c5de4d70cadb6a39 /addons/point_of_sale/__manifest__.py
parent68616ea74687112e2c92934630752fd74e55a4f9 (diff)
[IMP] point_of_sale: trust client totals
The amounts sent by the point of sale should be trusted instead of recomputing it server side. The previous compution could introduce differences in amounts. The pos.orders should only be created from the pos interface. Turn the compute methods into onchange to still be possible to do refund but disable edition from the backend. Change amount_paid computation with the one server side The way amount_paid is computed was not coherant Remove pos.discount model as never used from the server interface Adapt tests to use a computed amount_total and amount_paid Adapt tests to be closer to real use flows (no more manual creation of account move lines or pickings, it should be automatic) Remove tests that no longer make sense (create + payment from backend is only relevant for refund, rest should be with create_from_ui) Add force_create in the view to make sure the onchange values are used
Diffstat (limited to 'addons/point_of_sale/__manifest__.py')
-rw-r--r--addons/point_of_sale/__manifest__.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/point_of_sale/__manifest__.py b/addons/point_of_sale/__manifest__.py
index bdc5f4983ec..1cb4f10517e 100644
--- a/addons/point_of_sale/__manifest__.py
+++ b/addons/point_of_sale/__manifest__.py
@@ -16,7 +16,6 @@
'data/digest_data.xml',
'wizard/pos_box.xml',
'wizard/pos_details.xml',
- 'wizard/pos_discount.xml',
'wizard/pos_open_statement.xml',
'wizard/pos_payment.xml',
'views/pos_templates.xml',