odoo/industry#1855

Created by François Vasamillet (frva)
Merged at 5a81567e481024ca4b45f968b151e2f326244c3c

Statuses:

label
odoo-dev:19.0-versatile-work-item-pricing-frva
head
19310838599b95c26a7c5d98bf3d637662c19204
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