Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
1174 Vistas

Hi everyone,

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

How can I do it?


Nick

Avatar
Descartar
Mejor respuesta

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
Descartar
Autor Mejor respuesta

Thank you Jainesh,

Where do I need to include the code?

Avatar
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar

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>