diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-05-22 15:00:47 +0200 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-05-23 09:18:21 +0200 |
| commit | d1df278f01b2bf2e2c269e38f5adf3587a9827bf (patch) | |
| tree | 9dd871305e634e32818b07534d620418ea7fbf06 | |
| parent | 32a35ccda561d42e600c62d2e28d42e79655dce4 (diff) | |
[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
| -rw-r--r-- | addons/stock/report/report_deliveryslip.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/stock/report/report_deliveryslip.xml b/addons/stock/report/report_deliveryslip.xml index e32f519c2d8..920f9004316 100644 --- a/addons/stock/report/report_deliveryslip.xml +++ b/addons/stock/report/report_deliveryslip.xml @@ -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'"> |
