Commit Graph

17 Commits

Author SHA1 Message Date
david
e497cba8fe [FIX] account_invoice_constraint_chronology: modify past invoices
Addresses the issue as commented here:

- https://github.com/OCA/account-financial-tools/issues/1206
- https://github.com/OCA/account-financial-tools/pull/1152#issuecomment-847854629

Summary of the steps to reproduce the problem:

1. Set on the invoices journal the constraint chronology.
2. Validate an invoice for this journal today.
3. Your accountant says there's an error on an invoice from yesterday.
4. Cancel it an set it to draft. You don't even need to modify anything
5. Try to post the invoice.
6. You'll get a chronology error.

In v12 this was considered but it was lost on the migration to v13:

800c02474e/account_invoice_constraint_chronology/model/account_invoice.py (L50)

800c02474e/account_invoice_constraint_chronology/model/account_invoice.py (L70-L73)

TT34624
2022-02-19 19:34:53 +01:00
Alexey Pelykh
a16a965845 wip 2021-05-26 09:04:11 +02:00
Alexey Pelykh
cefd040a9c [MIG] account_invoice_constraint_chronology: Migration to 14.0 2021-05-26 08:52:56 +02:00
Alexey Pelykh
97f69e8d71 [IMP] account_invoice_constraint_chronology: black, isort, prettier 2021-05-26 08:52:56 +02:00
Alexey Pelykh
3ef7bd7c4b [MIG] account_invoice_constraint_chronology: Migration to 13.0 2021-05-26 08:52:56 +02:00
Alexey Pelykh
585318bc94 [IMP] account_invoice_constraint_chronology: black, isort, prettier 2021-05-26 08:52:56 +02:00
sbejaoui
ba05ca1f44 [IMP] - Chronology check depends on invoice type if journal is set to Dedicated Credit Note Sequence 2021-05-26 08:52:55 +02:00
Thomas Binsfeld
80ce117029 [REF] Account Invoice Constraint Chronology: improve code coverage 2021-05-26 08:52:55 +02:00
Thomas Binsfeld
f76a9dc56a [MIG] Account Invoice Constraint Chronology to 12.0 2021-05-26 08:52:55 +02:00
Francesco Apruzzese
f13a2f9ce5 [MIG] account_invoice_constraint_chronology: Migration to 11.0 2021-05-26 08:52:55 +02:00
Stéphane Bidoul (ACSONE)
9834de7b59 [IMP] a_i_c_chronology: cosmetics, pylint 2021-05-26 08:52:54 +02:00
gilles
3342775c69 [FIX] cleanup 2021-05-26 08:52:54 +02:00
gilles
7523e0d58c [MIG] account_invoice_constraint_chronology 2021-05-26 08:52:54 +02:00
Alexandre Fayolle
b481426e52 remove deprecated test suite declarations
these cause Warnings during the tests
2021-05-26 08:52:54 +02:00
Stéphane Bidoul
d6ffe4af36 [FIX] common.DB does not exist anymore in stable 8.0
It was not used in these tests anyway.
2021-05-26 08:52:54 +02:00
Adrien Peiffer
579d4897ce [IMP] Exclude proforma2 state for draft invoice check on account_invoice_constraint_chronology
[IMP] DEFAULT_SERVER_DATE_FORMAT

[IMP] display formatted date with context timezone in exception popup for account_invoice_constraint_chronology addons

[ADD] Add context in  tests for account_invoice_constraint_chronology addons

[IMP] Use exceptions.warning for account_invoice_constraint_chronology addons

[IMP] Remove exclamation mark

[ADD] Add .pot file for account_invoice_constraint_chronology

[IMP] Use .env for account_invoice_constraint_chronology tests

[IMP] Use onchange decorator, add white space at end of file, correct ypo mistake for account_invoice_constraint_chronology

[IMP] Improve performance
2021-05-26 08:52:54 +02:00
Adrien Peiffer
ba7bb4c26b [ADD] Add account_invoice_constraint_chronology 2021-05-26 08:52:54 +02:00