Skip to Content
Menu
This question has been flagged
1 Reply
987 Views

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
Discard
Author

any help please?

Best Answer

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
Discard
Author

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

Author

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.

Author

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

Related Posts Replies Views Activity
2
Aug 24
245
0
Aug 24
12
2
Feb 24
1970
1
Oct 23
1562
2
Aug 23
3191