2
0
Commit Graph

5 Commits

Author SHA1 Message Date
Rodrigo
cc131fe081 [FIX] account_invoice_constraint_chronology:
inv5 YYYYMM20 posted
INV4 YYYYMM15 posted
INV3 YYYYMM10 posted
INV2 YYYYMM05 posted
INV1 YYYYMM01 posted
if we pass INV3 to draft and change the date to YYYYYMM15 or YYYYYMM05 it should be able to validate, but if we change the date higher than YYYYYMM15 or lower than YYYYYMM05 it should not be able to validate.
2023-06-15 14:53:57 +02:00
david
f01806efdd [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-10-06 16:58:24 +02:00
Alexey Pelykh
b8f8b91687 wip 2022-10-06 16:58:24 +02:00
Alexey Pelykh
3ac663af91 [MIG] account_invoice_constraint_chronology: Migration to 14.0 2022-10-06 16:58:24 +02:00
Alexey Pelykh
b96e164adf [MIG] account_invoice_constraint_chronology: Migration to 13.0 2022-10-06 16:58:24 +02:00