mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Switch string > title in buttons
In v14, the `string` attribute of the buttons is shown directly in UI. The tooltips are now put through `title` attribute. As that was the original intention, let's switch `string` to `title`.
This commit is contained in:
@@ -135,28 +135,28 @@
|
|||||||
<field name="is_canceled" invisible="1" />
|
<field name="is_canceled" invisible="1" />
|
||||||
<button
|
<button
|
||||||
name="action_plan_successor"
|
name="action_plan_successor"
|
||||||
string="Plan Start"
|
title="Plan Start"
|
||||||
type="object"
|
type="object"
|
||||||
icon="fa-calendar text-success"
|
icon="fa-calendar text-success"
|
||||||
attrs="{'invisible': [('is_plan_successor_allowed', '=', False)]}"
|
attrs="{'invisible': [('is_plan_successor_allowed', '=', False)]}"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
name="action_stop_plan_successor"
|
name="action_stop_plan_successor"
|
||||||
string="Stop Plan Successor"
|
title="Stop Plan Successor"
|
||||||
type="object"
|
type="object"
|
||||||
icon="fa-pause text-muted"
|
icon="fa-pause text-muted"
|
||||||
attrs="{'invisible': [('is_stop_plan_successor_allowed', '=', False)]}"
|
attrs="{'invisible': [('is_stop_plan_successor_allowed', '=', False)]}"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
name="action_stop"
|
name="action_stop"
|
||||||
string="Stop"
|
title="Stop"
|
||||||
type="object"
|
type="object"
|
||||||
icon="fa-stop text-danger"
|
icon="fa-stop text-danger"
|
||||||
attrs="{'invisible': [('is_stop_allowed', '=', False)]}"
|
attrs="{'invisible': [('is_stop_allowed', '=', False)]}"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
name="cancel"
|
name="cancel"
|
||||||
string="Cancel"
|
title="Cancel"
|
||||||
type="object"
|
type="object"
|
||||||
icon="fa-ban text-danger"
|
icon="fa-ban text-danger"
|
||||||
confirm="Are you sure you want to cancel this line"
|
confirm="Are you sure you want to cancel this line"
|
||||||
@@ -164,14 +164,14 @@
|
|||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
name="action_uncancel"
|
name="action_uncancel"
|
||||||
string="Un-cancel"
|
title="Un-cancel"
|
||||||
type="object"
|
type="object"
|
||||||
icon="fa-ban text-success"
|
icon="fa-ban text-success"
|
||||||
attrs="{'invisible': [('is_un_cancel_allowed', '=', False)]}"
|
attrs="{'invisible': [('is_un_cancel_allowed', '=', False)]}"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
name="renew"
|
name="renew"
|
||||||
string="Renew"
|
title="Renew"
|
||||||
type="object"
|
type="object"
|
||||||
icon="fa-fast-forward text-success"
|
icon="fa-fast-forward text-success"
|
||||||
groups="base.group_no_one"
|
groups="base.group_no_one"
|
||||||
|
|||||||
Reference in New Issue
Block a user