콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
5643 화면

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
5706
4
11월 24
7532
0
9월 19
3133
4
7월 19
8446
0
12월 18
3739