Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
999 Zobrazení

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
Zrušit
Autor

any help please?

Nejlepší odpověď

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
Zrušit
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.

Related Posts Odpovědi Zobrazení Aktivita
2
srp 24
245
0
srp 24
12
2
úno 24
1989
1
říj 23
1568
2
srp 23
3205