[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:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user