Commit Graph
9 Commits
Author SHA1 Message Date
Cédric Krier 301870aa79 Set invoice line state to paid when invoice is cancelled with cancel move
Such invoice line should be considered as booked for example to compute the
invoiced quantity of stock move.

Closes #13085
(grafted from cfd02fdbd6781576e47fd92a9720049c01a1e498)

--HG--
branch : 6.0
2024-03-08 12:29:03 +01:00
Cédric Krier 19edd7419f Do not rely on invoice state to compute reconciliation lines
Closes #12864
(grafted from 94018bd6531aa5943e5044d925b24c04fc5ecb8c)

--HG--
branch : 6.0
2023-12-22 18:43:55 +01:00
Cédric Krier 7767f23a16 Prevent changing company of invoice with lines filled
Closes #12620
(grafted from 4ec64ab34473dd86979b8bb2b02b6c60dbd7e68f)

--HG--
branch : 6.0
2023-10-07 08:47:30 +02:00
Cédric Krier 628b3bb336 Require lines when paying invoice with write-off or overpayment
This is needed ensure that at least one line to pay of the invoice is
reconciled.
The lines and payment lines are also shown for overpayment.

Closes #12403
(grafted from 72345bf646caff0e1aa9c373a68906270fe7b688)

--HG--
branch : 6.0
2023-07-14 11:59:19 +02:00
Cédric Krier 2bb60bd148 Set invoice account only when changing party or dates
Using on_change_with does not work correctly for editable field because the
value may be changed when the user does not expect it.

Closes #12239
(grafted from 8557c57f05896c8e976d88d68500ec8d5ab6f255)

--HG--
branch : 6.0
2023-04-29 12:56:51 +02:00
Cédric Krier cb4f847845 Do not change account nor journal of invoice no more draft
Closes #12146
(grafted from 73697963ab5783d8dfe531d0997ac58e48d19994)

--HG--
branch : 6.0
2023-04-08 16:36:38 +02:00
Cédric Krier 403a0780ce Use right boolean operator in composite domain of searcher
When the clause is negative, it must return an AND-ed domain instead of OR-ed.
(grafted from e8c1e7d592b5a21cec95e8d6614112b8021e34d5)

--HG--
branch : 6.0
2023-02-16 10:39:30 +01:00
Cédric Krier 091bc56ea9 Do not convert into float search amount of invoice if it is None
(grafted from 38c0a7d9d64b5e1fcec2a8cee10dcf71c15c9d57)

--HG--
branch : 6.0
2023-01-12 11:36:01 +01:00
Cédric Krier ae9ff0325d Prepare migration to monorepo
--HG--
branch : 6.0
2022-12-16 21:00:11 +01:00