odoo/industry#1935

Created by fw-bot
Merged at adef7230134a22f296e6e90c5c6e932031550844

Statuses:

label
odoo-dev:master-19.0-versatile-work-item-pricing-frva-512558-fw
head
977d5c80e65ac7ea038bced4af8a8aa51a7d4ae3
merged
1 day 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: #1916
Forward-Port-Of: #1855