Commit Graph
9 Commits
Author SHA1 Message Date
Cédric Krier 7ee1c44a5f Exclude the move which defer the invoice line amount
The move to defer amount must be created before creating the period move in
case we need to compute the remainder amount on the first run.

Closes #13547
(grafted from e4758cb22bff649346d546ff0645c165b4b3c2b8)

--HG--
branch : 7.0
2024-09-27 19:28:03 +02:00
Cédric Krier 0f145266e9 Defer invoice line only once
The post method can be called multiple times for an invoice by process but
only one deferral is allowed by line.
Also the initial draft deferral may be delete in case of mistake so we must
not create automatically a new one later.

Closes #12567
2023-10-21 00:48:14 +02:00
Cédric Krier b0590200db Set invoice journal only when type is changed
Using on_change_with does not work correctly for editable field because the
value may be changed when the user does not expect it.
2023-04-29 12:57:57 +02:00
Cédric Krier 24701615ac Compute deferral remainder using balance of income account
Closes #12168
2023-03-30 23:56:59 +02:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 45bbfa8fb5 Add cache to account period find and return instance
Closes #7705
2023-02-10 23:36:18 +01:00
Cédric Krier b48e4966d5 Add functions and attribute to handle check access and active records
Closes #11863
2022-12-30 13:56:10 +01:00
Cédric Krier 468ca93e07 Use match pattern to find journal
Closes #11884
2022-12-26 15:08:29 +01:00
Cédric Krier 7812560e8c Prepare migration to monorepo 2022-12-16 21:05:14 +01:00