18 Commits
Author SHA1 Message Date
Cédric Krier 880c08fc7f Make statement lines readonly when origins are filled
Closes #14965
(grafted from ad46e99cf76bee15373625a6ea0ec4e57a58ff06)

--HG--
branch : 7.0
2026-07-22 12:28:03 +02:00
Cédric Krier 7df0f81f27 Sort statement lines per origin before creating moves
Closes #13941
(grafted from 9b3a8fcbe0f6b3f46150f7bba2986f9da7e3ab41)

--HG--
branch : 7.0
2026-02-28 15:26:23 +01:00
Cédric Krier 0ef0668e79 Set party of statement line readonly when state is not draft
We must keep existing states when adding required states to party.

Closes #13916
(grafted from 1d22a245f92e3c24fa7dcc794b32b81b84305c82)

--HG--
branch : 7.0
2025-03-13 12:56:38 +01:00
Cédric Krier c2091befaa Use decimal 0 without digits as default value
If the digits of the field is 0, than using '0.0' trigger the validation error
introduced by 2be02f249a1d.

Closes #13197
(grafted from 979cd092ea24f04328af5f4ff315c418e1c5b3e6)

--HG--
branch : 7.0
2024-04-30 19:15:44 +02:00
Sergi Almacellas Abellana 212662bb6e Reset amount to pay with Decimal
Otherwise amount to pay can not copy sign from line.

Closes #13023
(grafted from 30926e7b8b6fe5deaffeea6a9c8efb120ff2b638)

--HG--
branch : 7.0
2024-02-12 23:45:14 +01:00
Cédric Krier e93563bfe2 Invert sign of amount in second currency to reconcile statement line with invoice
When using the company currency, the amount used is credit - debit which is in
the opposite sign of amount in second currency.

Closes #12688
(grafted from 4a4e5932ea83c359dee65da948c2b7b5a0c3734b)

--HG--
branch : 7.0
2023-10-30 17:44:35 +01:00
Cédric Krier 35cff3c11c Update statement lines amount from invoice when changing origins
2b9a72775e4c made the change for on_change_lines but forgot to also update
on_change_origins.

Closes #12672
2023-10-26 17:58:18 +02:00
Cédric Krier c34add03ad Do not copy account statement descriptions to moves nor lines
Since 73fda56fc994 the description of the origin is used as fallback.

Closes #12615
2023-10-05 12:55:43 +02:00
Cédric Krier 69c88b6a8a Do not apply unaccent when searching on number fields
Closes #12435
2023-08-03 15:54:33 +02:00
Cédric Krier ad0b2411c8 Order number fields first by length
This is more natural for incremental field.
2023-08-03 15:53:18 +02:00
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier 51b7fe72f8 Support invoice payment with currency exchange
Closes #11500
2023-02-16 18:59:06 +01:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 4e26c991c7 Do not remove related_to from statement line when changing the amount
Closes #12176
2023-04-01 14:17:25 +02:00
Cédric Krier 1b6644a9a5 Split line also when amount to pay of invoice is zero
Closes #7707
2023-02-21 13:53:43 +01:00
Cédric Krier d62a64e186 Allow statement line with amount of zero 2023-02-21 12:37:07 +01: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 b24fbc0046 Prepare migration to monorepo 2022-12-16 20:08:38 +01:00