Commit Graph
5 Commits
Author SHA1 Message Date
Cédric Krier 9101f327e0 Test if work cost is a timedelta before converting to seconds
Closes #13582
(grafted from 1f862fc99f5d27ec678c62e83f8bd44baedae4df)

--HG--
branch : 7.0
2024-10-09 20:18:37 +02:00
Cédric Krier 27ad262c68 Do not try to round or convert list price of project revenue
By using list_price_used we are sure to have a list price in the company
currency so there is not need for conversion.
Also list price of a product can be empty so we should not try to round it.

Closes #13110
(grafted from 710927560bfe722fc02c0d22bbdf2c1615f787a7)

--HG--
branch : 7.0
2024-04-10 18:06:23 +02:00
Cédric Krier 0bffc1c384 Use defaultdict to compute cost and revenue total of project
Since e35820296f3a, sum_tree is use to compute project total but it requires
to have a default value for parents that are not in the list of instances.

Closes #12305
2023-06-05 12:53: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 90f86e2ba2 Prepare migration to monorepo 2022-12-16 16:54:48 +01:00