Commit Graph
9 Commits
Author SHA1 Message Date
Joseph Caburnay 02be720c0d [FIX] l10n_fr_pos_cert: use Gui.showPopup instead of show_popup 2020-06-26 05:40:23 +00:00
Robin Heinz 0e2aeb10af [IMP] point_of_sale,l10n_fr_pos_cert,pos_restaurant: new set quantity
For most localizations, decreasing quantity of an orderline is
prohibited. This commit generalizes this behavior and is now available
in core point_of_sale.
2020-05-12 12:52:23 +00:00
Robin Heinz 85c11d1d40 [REF] l10n_fr_pos_cert: migration to OWL framework 2020-05-12 12:52:23 +00:00
Jorge Pinna Puissant feb830e9f7 [FIX] l10n_fr_pos_cert: traceback if company don't have country
- Install PoS and "l10n_fr_pos_cert";
- Erase the country in the current company;
- Open a PoS session;
- Click on any product.

Before this commit, a JavaScript traceback was raised: TypeError: Cannot read property
'code' of null.

Now, an error message is raise, that informs the user that the company don't have country
setted.

opw-2241993

closes odoo/odoo#50320

X-original-commit: 5ed4b0cb54a20756e44c492cb5a67ff7d40f452c
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2020-04-28 13:07:20 +00:00
Nicolas Martinelli 2e02be7404 [FIX] l10n_fr_pos_cert: decrease quantity
In a French configuration, the decimal separator is a comma.
Unfortunately, `parseFloat` doesn't handle this case and incorrectly
parses the string.

Similar issue and correction than
https://github.com/odoo/enterprise/commit/af8177612e569907bcb8fe4b9ce2d845de5ab2a0

opw-2207795

closes odoo/odoo#46945

X-original-commit: 3d87d79ecec92cafd7f964712ad0014add5cbb6a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-05 09:49:15 +00:00
Robin Heinz 0871ed02ab [FIX] l10n_fr_pos_certif: fix post push order when not french.
When the french certification is installed for the pos, there is an error when we use it in a company that is not french.
The format of the values sent was not identical to the format of the values expected.
Now the order and the server_id are sent separetly to match the parent function.

closes odoo/odoo#43476

X-original-commit: 657133a22df2208c9bc429257a3fe2c0344872e5
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-01-17 12:00:08 +00:00
Pierre Masereel 78994b55b6 [FIX] l10n_fr_pos_cert: avoid editing orders
Once an order is created in the french certification, we cannot modify
it wihout traces, so we've disabled the edtition of the order lines in
the frontend, disable the price changing, and the deletion of orders.

So when we want to decrease the quantity, a line with negative quantity
should be done.

TASK-ID: 47990
2019-10-01 10:02:50 +00:00
Pierre Masereel 9e5ea29e34 [FIX] l10n_fr_pos_cert: display hash on receipt
When an order is sent to the server from the point of sale, a unique
hash is generated by the server. This hash must be printed on the
receipt to allow the comparison between the receipt and the data on the
server and guarantee the unalterability of the data on the server.

TASK-ID: 47990
2019-10-01 10:02:49 +00:00
Christophe Simonis 1292700f4e [ADD] new modules to ensure the inalterability of accounting in France
[FIX] l10n_fr_certification: main module

    Main resource document to be found at https://www.economie.gouv.fr/files/files/directions_services/dgfip/controle_fiscal/actualites_reponses/logiciels_de_caisse.pdf

    This document states that only business operations with partners not being subject to VAT should be inalterable and secure.
    We adpat the module by differentiating between b2c and b2b journals and apply hashing on the former's moves

    Protection against account_cancel is not necessary anymore

    By default, this module considers a sales journal being a b2c, thus activating hashing on its move.
    Since we can't afford to lose information, when a b2c journal contains hashed moves, its b2c characteristic cannot be changed

[ADD] l10n_fr_pos_cert: module to adapt the POS to the recent French regulation CGI art. 286, I. 3° bis.

    The module adds following features:

    - Inalterability: deactivation of all the ways to cancel or modify key data of POS orders, invoices and journal entries

    - Security: chaining algorithm to verify the inalterability

    - Access to download the mandatory Certificate of Conformity delivered by Odoo SA (only for Odoo Enterprise users)

[ADD] l10n_fr_sale_closing: module to store automatically the total of daily/monthly/annualy sales.

    (both of the period and cumulative).

    This fulfills another requirement brought by the recent French regulation CGI art. 286, I. 3° bis related to the storage of data

Adaptation of #20581 for version 11.0.
2017-12-14 13:04:36 +01:00