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

I am customizing the Sales Dashboard in Odoo 10. I want to set  container i.e "invoiced" so that it displays the values from custom module.

First, I am unable to find exact xpath because i dont see this defined in the view. (the view is attached below)

Secondly, I want to display the values for the current user logged. Can anyone suggest me something?

<record model="ir.ui.view" id="sales_targets_kanban_inherit_id" >
        <field name="name">Sales Target Kanban Inherit</field>
        <field name="model">crm.team</field>
        <field name="inherit_id" ref="sale.crm_team_salesteams_view_kanban"/>
        <field name="arch" type="xml">
             <data>
             
             <xpath expr="//tr//[@class='oe_secondary']//input[@name='invoiced']" position="attributes">
             <attribute name="readonly">1</attribute>
             </xpath> 
          </data>
        </field>
</record>


I want to display my custom module-> field in that "click to set". Will this be done through python or xml
Hopes for suggestion
Avatar
Discard

Did you find any solution?

Best Answer

 

Avatar
Discard
Related Posts Replies Views Activity
2
Oct 18
5456
2
Nov 17
3915
0
Nov 17
3056
1
Apr 24
337
1
Sep 23
1027