odoo/industry#1915

Created by fw-bot
Merged at d042bb0852ac3d75e2e64f76008025440829df35

Statuses:

label
odoo-dev:saas-19.1-19.0-versatile-work-item-pricing-frva-508317-fw
head
6ccd0bbb25696f9968a9b2eaf4f9bc420717048d
merged
4 days ago by Industry, Vallaeys Valentin (vava)
odoo/industry
19.0 #1855
saas-19.1 #1915
saas-19.2 #1916
master #1935

[IMP] construction_developer: versatile work items pricing

Improves the work item model with the possibility to manage prices manually.
Before this PR, every work item had their cost and price defined as the sum of their components costs and prices.
Now, this works as before but we can check the fixed checkbox next to the margin to enable an alternative behavior:
Input manually a fixed margin or a fixed price. This margin is kept and impacts the price when the cost of components changes.

A second commit in this pr adds some tests for the construction module:
- Test the creation of a work item related to a sale order, see if the product is created behind.
- Test that there is a single work item template at the same time for a product
- Test the cost, price and margin of a work item whenever components changes or work item values are changed directly

task-5262058

Forward-Port-Of: #1855