Odoo Help

0

0
1 Відповідь
0
francislouie Філіппіни
16.09.19, 23:41

Here's the sample code:

if line.product_id.x_fields_1 <= value (100):    

result = 1.00 * line.product_id.x_fields_1 * line.x_fields_2 

elif line.product_id.x_fields_1 >= value (101): 

result = 1.50 * line.product_id.x_fields_1 * line.x_fields_2 


This idea is same with salary rule of payroll module

Задайте запитання
Автор
Продовжити інформувати
1 підписник(и)
Про цю спільноту

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now