utm_campaign_views.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="utm_campaign_view_form" model="ir.ui.view">
  4. <field name="name">utm.campaign.view.form</field>
  5. <field name="model">utm.campaign</field>
  6. <field name="inherit_id" ref="utm.utm_campaign_view_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//div[hasclass('oe_button_box')]" position="inside">
  9. <button name="%(link_tracker_action_campaign)d"
  10. type="action" class="oe_stat_button order-12" icon="fa-mouse-pointer">
  11. <field name="click_count" widget="statinfo" string="Clicks"/>
  12. </button>
  13. </xpath>
  14. </field>
  15. </record>
  16. <record id="utm_campaign_view_kanban" model="ir.ui.view">
  17. <field name="name">utm.campaign.view.form</field>
  18. <field name="model">utm.campaign</field>
  19. <field name="inherit_id" ref="utm.utm_campaign_view_kanban"/>
  20. <field name="arch" type="xml">
  21. <xpath expr="//field[@name='stage_id']" position="after">
  22. <field name="click_count"/>
  23. </xpath>
  24. <xpath expr="//div[@id='utm_statistics']" position="inside">
  25. <div class="me-3" title="Clicks">
  26. <i class="fa fa-mouse-pointer text-muted"></i> <small class="fw-bold" t-esc="record.click_count.raw_value" />
  27. </div>
  28. </xpath>
  29. </field>
  30. </record>
  31. </odoo>