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

it's my xml file.

<div class="col-xs-6 pull-left">

<table class="table">

<tr>

<td>Tax</td>

<td>Base</td>

<td>Amount</td>

</tr>

<tr class="tax-col">

<t t-foreach="doc.order_line" t-as="i">

<tr t-if="i.product_uom_qty">

<td class="text-left">

<!-- <span t-esc="', '.join(map(lambda h: (h.description or h.name), i.tax_id))"/> -->

<!-- <span t-field="i.tax_id"/> -->

<span t-field="doc.account_tax.name"/>

</td>

<td class="text-left">

<span t-field="doc.amount_untaxed"

t-field-options='{"widget": "monetary", "display_currency": "doc.pricelist_id.currency_id"}'/>

</td>

<td>

<span t-field="i.price_tax"/>

</td>

</tr>

</t>

</tr>

</table>

</div>


here i have to get tax from product wise, and i have 2 different taxes VAT and CST and appling the tax on 2 different products.

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

i found out my own solution, i tracked out the all the taxes added to particular product and if same type of tax is added to other product then it will be sum. it's done in sale.py(_amount_all()) and created other method. captured all the values from python and showed in xml view.

Thanks all for other suggestions.

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

Hello shiva_guntuku,

It may happening  because of following things.

1) may be you are not updating your module. 

2) "Reload from Attachment" field may be True in report. if it is True then unchecked it.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
3540
5
نوفمبر 15
3897
1
مايو 15
4129
0
مايو 15
3753
0
مارس 15
3950