[MERGE] forward port branch saas-11.3 up to 8a19a6a2a3
This commit is contained in:
@@ -447,6 +447,7 @@ var BasicComposer = Widget.extend({
|
||||
});
|
||||
attachments = attachments.concat(uploadAttachments);
|
||||
this.set('attachment_ids', attachments);
|
||||
event.target.value = "";
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
|
||||
@@ -1260,6 +1260,7 @@ class SaleOrderLine(models.Model):
|
||||
:param additional_domain: domain to restrict AAL to include in computation (required since timesheet is an AAL with a project ...)
|
||||
"""
|
||||
result = {}
|
||||
|
||||
# avoid recomputation if no SO lines concerned
|
||||
if not self:
|
||||
return result
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
<!--
|
||||
Resource: stock.location
|
||||
-->
|
||||
</data>
|
||||
<data noupdate="1">
|
||||
<record id="stock_location_locations" model="stock.location">
|
||||
<field name="name">Physical Locations</field>
|
||||
<field name="usage">view</field>
|
||||
|
||||
@@ -428,5 +428,5 @@ class QuantPackage(models.Model):
|
||||
for quant in self._get_contained_quants():
|
||||
if quant.product_id not in res:
|
||||
res[quant.product_id] = 0
|
||||
res[quant.product_id] += quant.qty
|
||||
res[quant.product_id] += quant.quantity
|
||||
return res
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
'data': [
|
||||
'ir.model.access.csv',
|
||||
'views.xml',
|
||||
'demo_data.xml',
|
||||
'template.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo_data.xml',
|
||||
],
|
||||
}
|
||||
|
||||
+9
-7
@@ -280,13 +280,15 @@ class WebRequest(object):
|
||||
_request_stack.pop()
|
||||
|
||||
if self._cr:
|
||||
if exc_type is None and not self._failed:
|
||||
self._cr.commit()
|
||||
if self.registry:
|
||||
self.registry.signal_changes()
|
||||
elif self.registry:
|
||||
self.registry.reset_changes()
|
||||
self._cr.close()
|
||||
try:
|
||||
if exc_type is None and not self._failed:
|
||||
self._cr.commit()
|
||||
if self.registry:
|
||||
self.registry.signal_changes()
|
||||
elif self.registry:
|
||||
self.registry.reset_changes()
|
||||
finally:
|
||||
self._cr.close()
|
||||
# just to be sure no one tries to re-use the request
|
||||
self.disable_db = True
|
||||
self.uid = None
|
||||
|
||||
Reference in New Issue
Block a user