Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
1166 Widoki

Hi everyone,

I want to remove the "EXPECTED DATE" field from the RFQ in the Purchase module.

How can I do it?


Nick

Awatar
Odrzuć
Najlepsza odpowiedź

Thank you Jainesh, can you please provide some screenshots showing how to inherit the purchase RFQ report template? I mean where should I include the code snippet you provided?

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thank you Jainesh,

Where do I need to include the code?

Awatar
Odrzuć
Najlepsza odpowiedź

You can do this in multiple ways
first solution is by using a custom module which you can use if you know how to make custom modules in odoo

Second solution is using the odoo studio you can select the field and remove it from the view

third solution is by using the debug mode:

You add ?debug=1 after the web in your url to activate debug mode
your url will look like this /web?debug=1#menu_id=219&action=359&model=purchase.order
after that you select the bug icon and go down to Edit:view Form
then you search for date_planned
and then you remove this code

                           

                               

                               

                                (confirmed by vendor)

                           



note: when you upgrade the purchase module the expected date will appear again in case you used the third solution

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Nikos Antoniou,


I hope you're well.


You can eliminate the 'expected date' field from the RFQ in the purchase module by inheriting the purchase RFQ report template. 

Please find code in comment. 


I hope this will help you. 

Thanks & Regards,
Email:   odoo@aktivsoftware.com      

Skype: kalpeshmaheshwari

Awatar
Odrzuć

Please find code here :-
<template id="report_purchasequotation_document_inherit" inherit_id="purchase.report_purchasequotation_document">
<xpath expr="//th[@name='th_expected_date']" position="replace"/>
<xpath expr="//t[@t-as='order_line']/tr/t/td[2]" position="replace"/>
</template>