[IMP] hr_contract: update field label using attribute selector

before this commit, to update the string for departure_date field the entire field has been replaced

after this commit, using attribute selector(string) updated the string for this field

closes odoo/odoo#110649

Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
mehjabin
2023-01-23 11:20:26 +01:00
parent b410607459
commit e7d92a2588
@@ -11,8 +11,8 @@
<xpath expr="//div[@id='activities']" position="attributes">
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//field[@name='departure_date']" position="replace">
<field name="departure_date" string="Contract End Date"/>
<xpath expr="//field[@name='departure_date']" position="attributes">
<attribute name="string">Contract End Date</attribute>
</xpath>
<xpath expr="//div[@id='activities']" position="inside">
<div><field name="set_date_end"/><label for="set_date_end" string="Contract"/></div>