Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
988 Vistas

how i can change label Quotations to Pre-Quotations on CRM Lead (Pipeline) Form view, refer to screenshot below, i inspect and tried to find the related code in "addons" through PyCharm but nothing found, please help, how to through custom module, only on this Form view.


regards

Avatar
Descartar
Autor

any help please?

Mejor respuesta

Hi smithJohn45,

  • (crm_case_form_view_oppor )   search this id in your odoo addons and find view you need to inherit this view and change using xpath expression.


Thanks.

Avatar
Descartar
Autor

thank you @Nikhil, will check and apply your code.
regards

Autor

hi @Nikhil
created an xml file in views folder with below code, added this .xml file in main __manifest.py__ , Save all, upgraded Module then run CRM, access the Lead Form view but nothing changed. please check is there anything wrong in the code below?
in comment here in forum we can't post screenshot.

<?xml version="1.0" encoding="UTF-8"?>

<odoo>

<record id="view_crm_case_form_inherit01" model="ir.ui.view">
<field name="name">crm.case.form.view.inherits</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="sale_crm.crm_case_form_view_oppor"/>
<field name="arch" type="xml">
<xpath expr="//field@name='quotation_count']" position="replace">
<field name="quotation_count" widget="statinfo" string="Pre-Quotations"/>
</xpath>
</field>
</record>

</odoo>

regards

yes its correct and add this file in manifest in data section.

Autor

its already and mentioned too in comment. but i can't see any change.

Publicaciones relacionadas Respuestas Vistas Actividad
2
ago 24
245
0
ago 24
12
2
feb 24
1970
1
oct 23
1562
2
ago 23
3191