Commit Graph
14 Commits
Author SHA1 Message Date
Cédric Krier eb5d8e6cd1 Make lines of sales, subscriptions and purchases read only without a company and currency
Closes #13948
(grafted from 47c126ef770e2da3227eaaf10b64398d9b27d6e9)

--HG--
branch : 7.0
2025-03-27 23:07:41 +01:00
Cédric Krier 67276d3c42 Forbid changing company of subscription if there are lines or invoice party set
Closes #13947
(grafted from ba07fa2bd2cf3c8b90299d135848507bc4f32217)

--HG--
branch : 7.0
2025-03-27 23:03:40 +01:00
Cédric Krier 0504a0e766 Ensure the contextual company is not None and positive before using it
Closes #13868
(grafted from 0ea68af90f3ef7059c7c9c7a33d13fa216e23bc4)

--HG--
branch : 7.0
2025-03-10 23:43:49 +01:00
Adrià Tarroja Caubet be23068f23 Do not set default value for removed consumed field when copying subscription
The field consumed has been replaced by consumed until since 3ddf6d1eab0d.

Closes #12577
2023-09-24 19:07:58 +02:00
Cédric Krier f03ccfd7a6 Round price returned by get_sale_price 2023-08-17 17:57:32 +02:00
Cédric Krier 14c0d66b11 Generate invoices and consumptions only for contextual company
Closes #12345
2023-07-24 23:51:00 +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
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier f429332d97 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.
2023-02-16 10:39:30 +01:00
Maxime Richez 10466a9936 Prevent deletion of payment terms in use
Closes #12085
2023-02-21 12:55:12 +01:00
Sergi Almacellas Abellana 1f398f071e Use number and reference for subscription rec name 2023-02-15 17:43:00 +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 b6fae1ab85 Prepare migration to monorepo 2022-12-16 15:45:47 +01:00