تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3929 أدوات العرض

Hello, I have Odoo 8. In my situation, I have to define a tax in function of the product quantity in the purchase order. The tax is "$0.15 for each unit purchased". If I purchase 10 units, I have to pay $1.5.

How can I define this tax? Thanks! 

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I found the solution. Create a new Tax, with "Tax type = Python code" and this code:

result = quantity * 0.15
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 15
4859
7
مايو 20
6855
0
أبريل 16
3310
1
أبريل 15
5433
2
أبريل 15
6373