diff options
| author | Joren Van Onder <jov@odoo.com> | 2017-04-20 15:25:53 -0700 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2017-08-18 14:55:48 +0200 |
| commit | ac89783d2f6cf5477de1c5e576e90ee0f576c9cc (patch) | |
| tree | 8a75d7f407f590a2deb47a3a4ed81d578c748ab3 /addons/web_editor/static/src/less | |
| parent | 80f4230a4eb7412b1c6207ca335a5ef55bfc1e3d (diff) | |
[IMP] point_of_sale: full pricelist support
Before this the POS would load product.product records with
pricelist_id defined on the pos.config in context. These unit prices
were then used everywhere in the POS as-is. The POS contained no
pricelist logic at all.
This implements the full pricelist logic in the POS and provides a way
for users to choose what pricelist to apply per order. This
implementation closely follows the behavior defined in the product and
sale modules.
This includes unit tests for the get_price function and acceptance
tests. The unit tests are done in PhantomJS and ensure that get_price
returns the same as the backend returns when reading the 'price' field
on product.product.
Prices of products are displayed according to the selected
pricelist. To accomodate this the product_cache DomCache of the
ProductListWidget is now done per pricelist.
Additionally, this feature should speed up the loading of
product.product records. Now only stored product.product fields are
loaded. Before the non-stored computed 'price' field had to be loaded
for every product.product record.
Diffstat (limited to 'addons/web_editor/static/src/less')
0 files changed, 0 insertions, 0 deletions
