[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=&#39;record.partner_id.value&#39;]">'`
`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:
Adrien Widart (awt)
2023-12-13 11:57:10 +00:00
parent a1588503c0
commit 448f36ec4d
2 changed files with 5 additions and 5 deletions
@@ -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">
+2 -2
View File
@@ -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}" />