0222fdfdc749b35b0e59f4e10e7177197c126eba
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
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%