Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
4982 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Tác giả

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

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

how can i compute two fields?

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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 .         

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 23
1674
3
thg 9 19
5673
3
thg 6 20
5584
1
thg 1 20
5998
2
thg 1 24
15893