[FIX] stock: portal user can see pack operations
Have a delivery for a client, with pack operations Connect on this user's portal Go on the SO and then on the delivery Before this commit, there was an Error 500 because access to fields of pack_operations was forbidden After this commit, the report downloads well OPW 1849520 closes #24849
This commit is contained in:
@@ -78,7 +78,9 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr t-foreach="o.pack_operation_ids" t-as="pack_operation">
|
||||
<t t-set="pack_operation_ids" t-value="o.pack_operation_ids"/>
|
||||
<t groups="base.group_portal" t-set="pack_operation_ids" t-value="o.pack_operation_ids.sudo()"/>
|
||||
<tr t-foreach="pack_operation_ids" t-as="pack_operation">
|
||||
<td>
|
||||
<span t-field="pack_operation.product_id"/>
|
||||
<p t-if="o.picking_type_code == 'outgoing'">
|
||||
|
||||
Reference in New Issue
Block a user