[MERGE] forward port branch saas-14 up to 373a1c1128

This commit is contained in:
Christophe Simonis
2018-05-23 18:34:28 +02:00
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -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'">
+1
View File
@@ -111,6 +111,7 @@ class WebsiteForm(http.Controller):
'record': {}, # Values to create record
'attachments': [], # Attached files
'custom': '', # Custom fields values
'meta': '', # Add metadata if enabled
}
authorized_fields = model.sudo()._get_form_writable_fields()