odoo/industry#1933

Created by François Vasamillet (frva)
Merged at 2fb9176d7702533616562211373d8aa9746664a4

Statuses:

label
odoo-dev:19.0-fix-construction-wi-line-wrong-field-frva
head
4810565bc3c3041cb5b092c204de531682f70e99
merged
3 weeks ago by Industry, Vallaeys Valentin (vava)
odoo/industry
19.0 #1933
saas-19.1 #1936
saas-19.2 #1941
master #1942

[FIX] construction_developer: assign variant price to work item line

Before this commit, in the server action server_action_set_unit_cost_price_from_product, we used the list_price field of the product to assign to the price of the work item line.
This field is defined in the product template, which does not take into account extra price from attribute values, nor custom price assigned on the variant directly.
This commit fixes it by assigning the variant price, lst_price