[MERGE] forward port branch saas-14 up to 77286e4296
This commit is contained in:
@@ -88,7 +88,7 @@ class SaleOrder(models.Model):
|
||||
# Create the sales order line
|
||||
values = {
|
||||
'order_id': self.id,
|
||||
'name': carrier.name,
|
||||
'name': carrier.with_context(lang=self.partner_id.lang).name,
|
||||
'product_uom_qty': 1,
|
||||
'product_uom': carrier.product_id.uom_id.id,
|
||||
'product_id': carrier.product_id.id,
|
||||
|
||||
@@ -346,8 +346,8 @@ class MaintenanceRequest(models.Model):
|
||||
if vals.get('owner_user_id'):
|
||||
self.message_subscribe_users(user_ids=[vals['owner_user_id']])
|
||||
res = super(MaintenanceRequest, self).write(vals)
|
||||
if self.stage_id.done and 'stage_id' in vals:
|
||||
self.write({'close_date': fields.Date.today()})
|
||||
if 'stage_id' in vals:
|
||||
self.filtered(lambda m: m.stage_id.done).write({'close_date': fields.Date.today()})
|
||||
return res
|
||||
|
||||
@api.model
|
||||
|
||||
@@ -95,7 +95,6 @@ td {
|
||||
}
|
||||
|
||||
.btn.btn-primary {
|
||||
-webkit-user-select: none;
|
||||
color: @o_mm_def_btn_text;
|
||||
border: none;
|
||||
text-decoration: none;
|
||||
|
||||
@@ -53,7 +53,7 @@ class StockHistory(models.Model):
|
||||
stock_histories_by_group = {}
|
||||
for line in self._cr.dictfetchall():
|
||||
stock_history_data[line['id']] = line
|
||||
key = tuple(line[g] if g in line else False for g in groupby_list)
|
||||
key = tuple(line.get(g) or False for g in groupby_list)
|
||||
stock_histories_by_group.setdefault(key, [])
|
||||
stock_histories_by_group[key] += [line['id']]
|
||||
|
||||
|
||||
@@ -565,6 +565,7 @@ odoo.define('web_editor.snippets.options', function (require) {
|
||||
|
||||
this.$el.find('.note-color-reset').on('click', function () {
|
||||
self.$target.removeClass(self.classes);
|
||||
self.$target.trigger('content_changed');
|
||||
$colors.removeClass("selected");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1069,6 +1069,9 @@ body.editor_enable {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
.btn {
|
||||
-webkit-user-select: initial;
|
||||
}
|
||||
}
|
||||
|
||||
#web_editor_inside_iframe {
|
||||
|
||||
@@ -454,7 +454,7 @@
|
||||
<field name="name">Ecuador</field>
|
||||
<field name="code">ec</field>
|
||||
<field file="base/static/img/country_flags/ec.png" name="image" type="base64" />
|
||||
<field name="currency_id" ref="ECS" />
|
||||
<field name="currency_id" ref="USD" />
|
||||
<field eval="593" name="phone_code" />
|
||||
</record>
|
||||
<record id="ee" model="res.country">
|
||||
|
||||
@@ -448,6 +448,8 @@ class configmanager(object):
|
||||
os.path.abspath(os.path.expanduser(os.path.expandvars(x.strip())))
|
||||
for x in self.options['addons_path'].split(','))
|
||||
|
||||
self.options['data_dir'] = os.path.abspath(os.path.expanduser(os.path.expandvars(self.options['data_dir'].strip())))
|
||||
|
||||
self.options['init'] = opt.init and dict.fromkeys(opt.init.split(','), 1) or {}
|
||||
self.options['demo'] = (dict(self.options['init'])
|
||||
if not self.options['without_demo'] else {})
|
||||
|
||||
Reference in New Issue
Block a user