Skip to Content
Menu
This question has been flagged
4 Replies
1168 Views

Hi everyone,

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

How can I do it?


Nick

Avatar
Discard
Best Answer

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?

Avatar
Discard
Author Best Answer

Thank you Jainesh,

Where do I need to include the code?

Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

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

Avatar
Discard

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>