Commit Graph

153 Commits

Author SHA1 Message Date
Denis Ledoux 4b003afd0a [FIX] point_of_sale: quantity decimals for new lines
In the pos interface,
when adding a product to the order,
the quantity was set to `1`,
but, when adding the same product again,
the quantity was set to `2.000`.

We use `set_quantity` to not
copy/paste what is already done
in this method to display
correctly the quantity within
the product unit of measure rounding.
2015-11-27 16:55:00 +01:00
Goffin Simon f4e6dba097 [FIX] point_of_sale: barcode_reader
In the POS, when trying to add a new product in an order
with an already printed ticket, the added product must be
add in a new order.

opw:647499
2015-08-31 13:43:33 +02:00
Julien Legros a8c6e666fa [FIX] point_of_sale: load disabled uoms
this is needed when selling products with a disabled uom
2015-07-24 12:05:42 +02:00
Goffin Simon 569d051f0b [FIX] point of sale: tax fixed
In backend, the method "_unit_compute" doesn't round the fixed tax amount
before adding to "cur_price_unit" in the case "tax.include_base_amount".

opw:644421
2015-07-17 14:09:02 +02:00
Alexis de Lattre cee6ed33ac [IMP] point_of_sale: add 'name' of res.currency in pre-loaded fields
Fixes #7367
2015-07-02 10:57:51 +02:00
Goffin Simon 56d832dbc5 [FIX] point of sale: rounding globally
The price without taxe must be rounded on each line like 'price_subtotal' in "sale.order.line"
with digits_compute= dp.get_precision('Account').
The total taxes included must be the sum of the rounded total without taxe and
the rounded taxes like in "sale.order" in _amount_all.

opw:643254
2015-06-29 09:02:10 +02:00
Tam Vu 6cb3fe43ed [FIX] point of sale: order undefined
If the line is linked to an order, this line must be removed in this order.
2015-06-26 14:02:59 +02:00
Goffin Simon c5a613840f [FIX] point of sale: function is_paid:
When rounding globally, the function compute_all in charge to compute the taxes for
each line uses a very high currency rounding to avoid rounding per line.
The round must be done on the sum of each total amount line with taxes. To validate a payment with the pos,
the function is_paid verified that this sum is the same that the amount just paid.
Inspired from "sale.order.line", the precision of 'price_unit' and 'price_subtotal' in "pos.order.line"
must be taken from 'Product Price' to avoid rounding per line.

ps: we could not use the function get_all_prices to round globally because it used on every line.

Fixes #6681
Closes #6682
opw:639686
2015-05-19 09:41:51 +02:00
Goffin Simon fc132665d7 [FIX] point of sale: Rounding method
By default, the point of sale awlways uses the rounding method per line.
But the accounting configuration allows to use the globally rounding method,
this is why the point of sale must consider this configuration.
Inspired from the compute_all of account.tax model within
addons/account/account.py.

opw:632537
2015-04-20 08:41:41 +02:00
Martin Trigaux 58a481329e [FIX] point_of_sale: child taxes computation
The box "Tax on children" was ignored in the pos, leading to 100% taxes for these
taxes (as amount is 1.0 on these taxes).

Add child tax fields when loading the pos to be able to correctly compute
recusively the tax amount on children.

Courtesy of Jean-Nicolas Brunet
Fixes #1515, lp:1231574, opw 622143
2015-04-16 09:33:53 +02:00
Frédéric van der Essen aab3d9f4b4 [FIX] point_of_sale: use the same rounding sequence as the backend
Conflicts:
	addons/point_of_sale/static/src/js/models.js
2014-12-26 17:52:06 +01:00
Frédéric van der Essen 4647f896a4 [FIX] point_of_sale: prevent negative bank payments 2014-12-26 17:50:07 +01:00
Frédéric van der Essen c8000df710 [IMP] point_of_sale: add support for taxes included in base amount. 2014-12-18 14:59:18 +01:00
Frédéric van der Essen 34b539494e [IMP] point_of_sale: access taxes via id for performance reasons
[IMP] point_of_sale: do not recompute taxes_by_id every time
2014-12-18 14:58:57 +01:00
Frédéric van der Essen d700c78c56 [FIX] point_of_sale: correctly handle various xmlrpc errors that appear in offline mode 2014-12-01 15:46:29 +01:00
Mario Arias Badila d349723271 [point_of_sale] Domain functions to literals
Replaced domain functions with literals where there are only constants
2014-11-26 08:32:33 -06:00
Mario Arias Badila 9db0face13 POS is loading all partners, not only customers
Hi,

Adding domain to res.partner model, so POS only loads "customers"
2014-11-21 09:20:45 -06:00
Frederic van der Essen 60faccdcc3 [FIX] point_of_sale: remove a confusing partial implementation of UoS 2014-11-18 15:38:18 +01:00
Frederic van der Essen d30103c29e [FIX] point_of_sale: rounding error in discount computing + removing duplicated code 2014-11-13 16:07:52 +01:00
Frederic van der Essen 95e79c9f6f [FIX] point_of_sale: use 'Product Price' decimal precision for product prices 2014-11-11 19:32:52 +01:00
Frederic van der Essen fade5ab2c2 [FIX] point_of_sale: decimal precision was hardcoded to 2 in various places 2014-11-11 17:41:20 +01:00
Frederic van der Essen a2313b6311 [FIX] point_of_sale: correctly handle the rounding when the unit's rounding is set to zero 2014-11-11 16:18:27 +01:00
Frederic van der Essen ccba67ed53 [FIX] point_of_sale: when loading models with a specified id, use read instead of search_read, to prevent inactive records from being skipped 2014-11-10 11:48:18 +01:00
Christophe Simonis 262eb662de [MERGE] forward port of branch 8.0 up to d80376a 2014-10-21 14:33:36 +02:00
Christophe Simonis edc4b0b9bb [FIX] {web,point_of_sale}: allow cross-origin access to company logo 2014-10-20 20:14:36 +02:00
Niels Huylebroeck f0f5a29606 [FIX] point_of_sale: printing of tax name on hardware was missing data 'name', also made the regular print use the same value for consistency. 2014-10-09 18:38:46 +02:00
dhr-odoo 60699cd714 [FIX] point_of_sale: invoice not created in backend
Missing arguments that lead to the invoice not created in the backend (opw 609470).
2014-09-24 15:13:51 +02:00
Frederic van der Essen 5377a9e2d6 [IMP] point_of_sale: partner edition ! -> create partners, edit partners, assign them barcodes, take pictures, etc. 2014-09-17 16:57:34 +02:00
Frederic van der Essen c3c8276b0f [FIX] point_of_sale: chrome was dropping the cookie when loading the company logo, resulting in an incorrect logo in multi-db setups. 2014-09-10 14:56:24 +02:00
Frederic van der Essen 3f5f76f246 [FIX] point_of_sale: fix some image chaching issues with the receipt logo. Using a random url at each fetch ensures that we don't get cached results 2014-09-10 14:56:24 +02:00
Frederic van der Essen 67ffbe00a4 [FIX] point_of_sale: chrome was dropping the cookie when loading the company logo, resulting in an incorrect logo in multi-db setups. 2014-09-10 14:34:58 +02:00
Frederic van der Essen 13bd2eaa3e [FIX] point_of_sale: prevent the company logo from being cached by the browser by accessing it via a random URL 2014-09-10 13:52:04 +02:00
Frederic van der Essen 2a10394880 [FIX] point_of_sale: the self_checkout related fields are obsolete and should be removed, but we are too late in the release schedule to do so. Marking them as FIXME, to be removed for next major version 2014-09-08 18:06:51 +02:00
Frederic van der Essen 53cde4f7f4 [WIP] point_of_sale: checking for consistency between the user and the session's company 2014-09-08 18:06:51 +02:00
Frederic van der Essen 73fc6419a9 [FIX] point_of_sale: the order reference used the session sequence number wich was not unique accross sessions on different point_of_sales.
Now we are using the session id which is unique, but is less understandable
2014-08-26 12:38:35 +02:00
Frederic van der Essen f1d4d8d86c [IMP] point_of_sale: automatically update partners data when they are modified 2014-08-26 12:21:04 +02:00
Antony Lesuisse d421f9a365 [IMP] point_of_sale: track session logins
the pos session now keeps track of the session logins, and that number is
included in in the order reference. This prevents orders generated in parallely
created sessions from having the same reference, and also helps reduce fraud.
2014-08-20 15:13:46 +02:00
Frederic van der Essen 986f0e9d46 [FIX] point_of_sale: the receipt would not print correctly on first try 2014-08-19 17:15:14 +02:00
Frederic van der Essen 24df6dc8b2 [FIX] product, point_of_sale: add a display_default_code context option that can remove the internal reference (default code) from the displayed product name. Used in the point of sale to unclutter the receipt & GUI 2014-08-18 14:51:15 +02:00
Frederic van der Essen 57fe94b34e [FIX] point_of_sale: the order uid were generated via timestamp, which were not sequencial or easy to understand, they are now generated with the order id and order sequence number which are sequencial 2014-08-18 12:19:56 +02:00
Frederic van der Essen c40c9734f1 [FIX] point_of_sale: support for variants in the pos, one simply needed to use the display_name which contains the product variant info.
Conflicts:
	addons/point_of_sale/static/src/js/models.js
2014-08-11 17:17:12 +02:00
Frederic van der Essen 8d32f80fe3 [FIX] point_of_sale: order sequence number should take into account offline generated orders 2014-08-11 17:17:12 +02:00
Frederic van der Essen bfd66f351b [FIX] point_of_sale: removed useless console.log() 2014-08-05 14:09:21 +02:00
Frederic van der Essen 28de2183ea [IMP] point_of_sale: report errors when loading the point of sale with a traceback and a nice popup 2014-08-05 14:08:38 +02:00
Frederic van der Essen eacd5329e3 [IMP] point_of_sale: made the server data loading more modular for easier development of point_of_sale extensions 2014-08-05 14:08:24 +02:00
Frederic van der Essen 85d697670c [IMP] point_of_sale: show traceback popup when there is a server error when posting orders (which should NEVER happen !) 2014-08-05 14:04:50 +02:00
Frederic van der Essen 4f0d454217 [FIX] point_of_sale: order invoicing was broken 2014-08-05 14:04:17 +02:00
Frederic van der Essen 9007aeb5a6 [FIX] point_of_sale: typo in the template field blocked the point of sale launch 2014-07-02 15:04:18 +02:00
Frederic van der Essen c4049bc356 [WIP] removing incomplete fidelity points feature for the v8.0 release 2014-07-01 13:02:02 +02:00
Dimitri del Marmol b021330f0e [MERGE] Bzr branch lp:~openerp-usertesting/openobject-addons/trunk-restaurant-wip-fva 2014-06-13 16:19:05 +02:00