How to create dynamic price for product

Hi Team,

I have a product i am creating the sales order in that i have one of price list where i can change the price by price list i want when i changing the product unit in so line then the based on that unit i need to change the base price of the product.
is there any possibility in the pricing rule like this "if(SaleOrderLine.unit == « KG_G1 »){SaleOrderLine.companyExTaxTotal = « 200 »} else « none » " can you please help me in this.

Thankyou,
Krishna,

Hello,

You can take a look on this page : Pricing | Axelor Open Suite

Regards

why below code is troughing an error :-cannot get property « unit » on null object

if(saleOrderLine.unit){« M »}

You can directly get the attribute of the saleOrderLine, so try something like :
if(unit){« M »}