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

menu = "False" Attribute is not working where i'm wrong please correct my mistake or any advice to achieve my goal 

Code Preview

Problem Preview

อวตาร
ละทิ้ง

did you upgrade related module? after make changes in XML....

ผู้เขียน

yes i restart my server and upgrade this module ....

คำตอบที่ดีที่สุด

You should try with this code, Hope it is worked

<report
string="Purchase Order"
id="purchase.action_report_purchase_order"
model="purchase.order"
report_type="qweb-pdf"
name="purchase.report_purchaseorder"
file="purchase.report_purchaseorder"
print_report_name="
(object.state in ('draft', 'sent') and 'Request for Quotation - %s' % (object.name) or
'Purchase Order - %s' % (object.name))"
menu="False"
/>

Restart the server and update the module.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

how can i compute two fields?

อวตาร
ละทิ้ง
ผู้เขียน

you can post question on form for getting best answer this is already solved issue ...

คำตอบที่ดีที่สุด

Hi,

   In your code, there are two report definitions with the same name Purchase Order. Make sure which report is working by changing the Report String.  Then check it .         

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 23
1673
how to customize Qweb report แก้ไขแล้ว
3
ก.ย. 19
5672
3
มิ.ย. 20
5578
1
ม.ค. 20
5997
2
ม.ค. 24
15893