Skip to content
Browse files

[IMP] hr_contract: Improve display of contract related buttons

There is a button on the employee form that show the number of
contracts. This button is only accessible for hr manager,
but not for contract manager.

It's make more sense that this button is accessible for contract
manager. The contract manager can already see all contract from
the menu. Hr manager inherit rights of contract manager.

With this commit, the button is accessible with contract manager
rights and hr manager.

closes #31415

Signed-off-by: Yannick Tivisse (yti) <>
  • Loading branch information...
jbm-odoo authored and tivisse committed Feb 25, 2019
1 parent dbd6fb4 commit 82f33e90d5db964ff207e7037311fae986636b53
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/hr_contract/views/hr_contract_views.xml
@@ -24,7 +24,7 @@
class="oe_stat_button" class="oe_stat_button"
icon="fa-book" icon="fa-book"
type="action" type="action"
groups="hr.group_hr_manager"> groups="hr_contract.group_hr_contract_manager">
<field name="contracts_count" widget="statinfo" string="Contracts"/> <field name="contracts_count" widget="statinfo" string="Contracts"/>
</button> </button>
</xpath> </xpath>

0 comments on commit 82f33e9

Please sign in to comment.
You can’t perform that action at this time.