Commit Graph

21 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
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
Lopsanz
81ff8d0673 [FIX] Considering in-payment state and more info in alerts 2021-05-26 08:52:55 +02:00
Thomas Binsfeld
81616f8c24 [REF] Account Invoice Constraint Chronology: better messages 2021-05-26 08:52:55 +02:00
Thomas Binsfeld
07a78af1c0 [REF] Account Invoice Constraint Chronology: prepare methods for domains 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
rgarnau
1ac67d3556 minor fixes 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
Stéphane Bidoul (ACSONE)
b21362c0aa [IMP] a_i_c_chronology: simplify if statements 2021-05-26 08:52:54 +02:00
Stéphane Bidoul (ACSONE)
bf4a54f61c [IMP] a_i_c_chronology: improve/fox onchange 2021-05-26 08:52:54 +02:00
gilles
3342775c69 [FIX] cleanup 2021-05-26 08:52:54 +02:00
Stéphane Bidoul (ACSONE)
b09f9d992c [IMP] a_i_c_chronology: better check for previously validated invoices 2021-05-26 08:52:54 +02:00
gilles
7523e0d58c [MIG] account_invoice_constraint_chronology 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
abf1e34765 [IMP] Use new API on account_invoice_constraint_chronology for account.py 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