Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
953 Widoki

Hello 

in v18SaaS

its possible calculate price based on area price?


Field 1 = weight

Field 2= height

Field 3 = Sq FT (field 1 * field 2)

update a subtotal price for the sales item line (field 3 * product price) 


aim using odoo studio


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

In Odoo 18 SaaS, you can calculate the price based on the area by creating a computed field. The formula for this field is,

x_area_price = x_weight * x_height * price_unit. 

Here, x_weight represents the width of the product, x_height represents the height, and price_unit refers to the unit price of the product on the sales order line. This calculation first determines the area by multiplying the width and height, then multiplies the area by the product's unit price to compute the subtotal. The computed field will automatically update and can be displayed on the sales order line, ensuring accurate pricing based on the product's dimensions.


Hope it helps

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 24
1654
1
paź 19
3295
3
lut 25
2018
1
gru 24
2126
1
paź 24
1752