*: crm,link_tracker,project,sale,utm Before this commit, in some form and kanban views, there were missing whitespaces, typically between icons and texts. This was due to the transition to owl views, because we simply ignored `&nbsp;` in archs. This commit also fixes a layout issue in a project view, where the icon and the field should be displayed in the same line. closes odoo/odoo#101040 X-original-commit: f5813e348b6052436a4fabaa5837ecc37b15430e Related: odoo/enterprise#31746 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="utm_campaign_view_form" model="ir.ui.view">
|
|
<field name="name">utm.campaign.view.form</field>
|
|
<field name="model">utm.campaign</field>
|
|
<field name="inherit_id" ref="utm.utm_campaign_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
|
|
<button name="%(link_tracker_action_campaign)d"
|
|
type="action" class="oe_stat_button order-12" icon="fa-mouse-pointer">
|
|
<field name="click_count" widget="statinfo" string="Clicks"/>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="utm_campaign_view_kanban" model="ir.ui.view">
|
|
<field name="name">utm.campaign.view.form</field>
|
|
<field name="model">utm.campaign</field>
|
|
<field name="inherit_id" ref="utm.utm_campaign_view_kanban"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='stage_id']" position="after">
|
|
<field name="click_count"/>
|
|
</xpath>
|
|
<xpath expr="//div[@id='utm_statistics']" position="inside">
|
|
<div class="me-3" title="Clicks">
|
|
<i class="fa fa-mouse-pointer text-muted"></i> <small class="fw-bold" t-esc="record.click_count.raw_value" />
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|