[REV] project: cancel view changes
Revert [1]
Changing `t` into `span` is not allowed in stable, in case some
customization already exist and have xpath that target `t`. The
change OE side [2] is problematic too: if a DB has the old XML version
(`t`) and the user tries to install `industry_fsm`, an error will be
raised:
`Element '<xpath expr="//span[@t-if='record.partner_id.value']">'`
`cannot be located in parent view`
[1] b3e3c92b52
[2] odoo/enterprise@094009669b
OPW-3629163
sentry-4700256130
closes odoo/odoo#146094
Related: odoo/enterprise#52682
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -63,9 +63,9 @@
|
||||
<field name="milestone_id" />
|
||||
</span>
|
||||
<br />
|
||||
<span t-if="record.partner_id.value" t-att-title="record.partner_id.value">
|
||||
<field name="partner_id" class="text-truncate d-block"/>
|
||||
</span>
|
||||
<t t-if="record.partner_id.value">
|
||||
<field name="partner_id"/>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
<div class="o_kanban_record_body">
|
||||
|
||||
@@ -600,8 +600,8 @@
|
||||
<span invisible="context.get('default_project_id', False)" style="display: block; margin-top: 4px;">
|
||||
<field name="project_id" options="{'no_open': True}"/>
|
||||
</span>
|
||||
<span t-if="record.partner_id.value" t-att-title="record.partner_id.value" style="display: block; margin-top: 4px;">
|
||||
<field name="partner_id" class="text-truncate d-block"/>
|
||||
<span t-if="record.partner_id.value" style="display: block; margin-top: 4px;">
|
||||
<field name="partner_id"/>
|
||||
</span>
|
||||
<span t-if="record.allow_milestones.raw_value and record.milestone_id.raw_value" t-att-class="record.has_late_and_unreached_milestone.raw_value and !record.state.raw_value.startsWith('1_') ? 'text-danger' : ''" style="display: block; margin-top: 4px;">
|
||||
<field name="milestone_id" options="{'no_open': True}" />
|
||||
|
||||
Reference in New Issue
Block a user