Hello, I am trying to remove the shipping address part from the purchase order report by inheriting the report and replacing the following part:
by creating a new custom module and inheriting the report with following code:
but it doesn't work at all.
I made sure the manifest.py file has the new xml file in it.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
2868
أدوات العرض
Hi,
Please add below code also in your xml file,becasue in purchase_stock module odoo extend the report template and add else case ,in your case the else case is working ,so you need to replace that part of also...
<template id="report_purchaseorder_document_inherit_purchase_stock"
inherit_id="purchase_stock.report_purchaseorder_document">
<xpath expr="//t[@t-else]" position="replace">
</xpath>
</template>
inherit_id="purchase_stock.report_purchaseorder_document">
<xpath expr="//t[@t-else]" position="replace">
</xpath>
</template>
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
فبراير 24
|
2665 | ||
|
1
يونيو 23
|
3490 | ||
|
1
ديسمبر 22
|
2362 | ||
|
3
أبريل 24
|
7790 | ||
|
0
مارس 24
|
1428 |