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

I have a QWeb report to print a product pricelist and I want to have an option to print prices without taxes. Inspired by "website_sale" module I used this code:

<t t-set="taxes" t-value="o.partner_id.property_account_position_id.map_tax(product.taxes_id.sudo().filtered(lambda x: x.company_id == res_company.currency_id))"/>
<span t-esc="taxes.compute_all(product.list_price, o.pricelist_id.currency_id, product=product, partner=o.partner_id)['total_excluded']"/>


But the prices are TAX INCL. I have set mu products with tax included in the price. However on the website this code works but not on the report.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 25
1419
2
مارس 25
1684
4
نوفمبر 24
7326
1
مارس 24
2227
3
سبتمبر 23
25117