[FIX] stock, hr_holidays: fix server actions groups_id

f0d37c384b added a check on write access
for server action. Since the fixed server action are readonly with strict
access right, corresponding groups are added to avoid a warning.
This commit is contained in:
Xavier-Do
2020-08-21 14:18:59 +00:00
parent ffb0f2b7a1
commit 1495065041
2 changed files with 2 additions and 0 deletions
@@ -109,6 +109,7 @@
<field name="model_id" ref="hr_holidays.model_hr_leave_report"/>
<field name="binding_model_id" ref="hr.model_hr_employee"/>
<field name="state">code</field>
<field name="groups_id" eval="[(4, ref('base.group_user'))]"/>
<field name="code">
action = model.action_time_off_analysis()
</field>
+1
View File
@@ -160,6 +160,7 @@
<field name="name">Inventory</field>
<field name="model_id" ref="model_stock_quant"/>
<field name="state">code</field>
<field name="groups_id" eval="[(4, ref('stock.group_stock_user'))]"/>
<field name="code">
action = model.with_context(
search_default_internal_loc=1,