Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5 Ответы
4997 Представления

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
1688
3
сент. 19
5684
3
июн. 20
5595
1
янв. 20
5998
2
янв. 24
15902