diff options
| author | Adrien Widart <awt@odoo.com> | 2021-04-17 12:21:43 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2021-04-17 12:21:43 +0000 |
| commit | f7048c1de139113eb6109787e669160146319bd3 (patch) | |
| tree | a87158ce4be6389d9b6a8038544886ac42a82802 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | c9247bab92d022b9712b39d275f4b1ce1bfbcff5 (diff) | |
[FIX] l10n_fr_pos_cert: reset session start date
When resuming a POS session, if the latter has been opened in the past
and if its state is 'Opening Control', a incorrect UserError is raised
and prevents the session to be started.
To reproduce the error:
1. Use a French company
2. Create a POS
- Enable "Advanced Cash Control"
3. Start a new session
4. Close it
5. Set the computer's date in the future
5. Open the POS session > Continue Selling
Error: A UserError is raised ("This session has been opened another day.
To comply with the French law, [...]"), but the user does not have the
possibility to close the session. Moreover, since its state is "Opening
Control", no sales have been made yet.
This fix suggests to reset the start date in such a situation.
OPW-2488952
closes odoo/odoo#69253
Signed-off-by: William André (wan) <wan@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
