Odoo Help


1 Jawaban
francislouie Philippines
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

Mengajukan pertanyaan
Keep Informed
1 Follower(s)
About This Community

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.

Odoo Training Center

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

Test it now