Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
5549 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 23
5389
4
พ.ย. 24
7339
0
ก.ย. 19
3072
4
ก.ค. 19
8245
0
ธ.ค. 18
3634