コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
5472 ビュー

Hi i am using odoo 14 i want to remove tax field from order lines and from the subtotal table in purchase order report can anyone tell me how is this possible using xml or python , i have already done many edit using xml whiat attribute should i use to hide only tax field and enable total 

アバター
破棄
著作者 最善の回答

I found the proper code to hide tax its similar to what @Jainesh Shah but only last two lines some changes have to be made

<template id="inherit_report_purchaseorder_document"
inherit_id="purchase.report_purchaseorder_document">

<xpath expr="//td[@name='td_taxes']" position="replace">
</xpath>
<xpath expr="//th[@name='th_taxes']" position="replace">
</xpath>
</template>

アバター
破棄
最善の回答

Hello jo,


Please first you can inherit purchase order template and inside this template add the below codes,

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

アバター
破棄

Code is here :-
<xpath expr="//td[@name='td_taxes']" position="replace">
</xpath>
<xpath expr="//div[@id='total']/tr[2]" position="replace">
</xpath>

最善の回答

Go to addons->purchase->report->purchase_order_templates.xml and comment out th name="th_taxes" and td name="td_taxes"

アバター
破棄
著作者

wont that affect when i restart server update the module

I can't understand what are you trying to tell. It is intended to make changes.

関連投稿 返信 ビュー 活動
1
8月 23
5255
4
11月 24
7279
0
9月 19
3024
4
7月 19
8212
0
12月 18
3603