How to find the view name

Asked by Bushair

Hi,
Navigate to MainMenu -> PointOfSale ->PointofSale
Press F2 from the Partner Field.
This will pop up the SearchProducts Window.
which has BasicSearch and Advanced Search Tabs.
Which file/View/Code i have to modify if i want to change the Lable "Basic search" into "Basic"
and also i want to Change the lable "Name" into "Name of Partner" ,What change i have to do for this change?
Which is the view coreesponding to this popup window?how to find out from code which is the view?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello,

Please Inherit the partner tree view and change the field string of partner tree view by following way:

        <record id="view_inherit_partner_tree" model="ir.ui.view">
            <field name="name">res.partner.inherit.tree</field>
            <field name="model">res.partner</field>
            <field name="type">tree</field>
            <field eval="8" name="priority"/>
            <field name="inherit_id" ref="base.view_partner_tree"/>
            <field name="arch" type="xml">
              <field name="name" position="replace">
                    <field name="name" string="Name of Partner" select="1"/>
              </field>
            </field>
        </record>
Similarly for product object tree view, you need to add this code in point_of_sale/pos_view.xml file.
After updating the module you will see the changes what you want.

Hope this will help you.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Bushair for more information if necessary.

To post a message you must log in.