[MERGE] forward port branch 8.0 up to 0b4d01f1d3

This commit is contained in:
Christophe Simonis
2017-05-02 11:40:48 +02:00
5 changed files with 24 additions and 7 deletions
+2 -2
View File
@@ -22,7 +22,7 @@
<record id="reset_password_email" model="mail.template">
<field name="name">Reset Password</field>
<field name="model_id" ref="base.model_res_users"/>
<field name="email_from"><![CDATA[${object.company_id.name} <${(object.company_id.email or user.email)|safe}>]]></field>
<field name="email_from"><![CDATA["${object.company_id.name|safe}" <${(object.company_id.email or user.email)|safe}>]]></field>
<field name="email_to">${object.email|safe}</field>
<field name="subject">Password reset</field>
<field name="body_html"><![CDATA[
@@ -37,7 +37,7 @@
<record id="set_password_email" model="mail.template">
<field name="name">Odoo Enterprise Connection</field>
<field name="model_id" ref="base.model_res_users"/>
<field name="email_from"><![CDATA[${object.company_id.name} <${(object.company_id.email or user.email)|safe}>]]></field>
<field name="email_from"><![CDATA["${object.company_id.name|safe}" <${(object.company_id.email or user.email)|safe}>]]></field>
<field name="email_to">${object.email|safe}</field>
<field name="subject"><![CDATA[${object.company_id.name} invitation to connect on Odoo]]></field>
<field name="body_html">
+3 -2
View File
@@ -30,7 +30,7 @@ from openerp.tools.translate import _
import openerp.addons.decimal_precision as dp
from openerp.osv.orm import browse_record_list, browse_record, browse_null
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP
from openerp.tools.float_utils import float_compare
from openerp.tools.float_utils import float_compare, float_is_zero
from openerp.exceptions import UserError
class purchase_order(osv.osv):
@@ -817,7 +817,8 @@ class purchase_order(osv.osv):
'propagate': procurement.rule_id.propagate,
})
diff_quantity -= min(procurement_qty, diff_quantity)
res.append(tmp)
if not float_is_zero(tmp['product_uom_qty'], precision_rounding=order_line.product_uom.rounding):
res.append(tmp)
#if the order line has a bigger quantity than the procurement it was for (manually changed or minimal quantity), then
#split the future stock move in two because the route followed may be different.
if float_compare(diff_quantity, 0.0, precision_rounding=order_line.product_uom.rounding) > 0:
+2 -2
View File
@@ -3481,12 +3481,12 @@ instance.web.form.CompletionFieldMixin = {
var pop = new instance.web.form.SelectCreatePopup(this);
pop.select_element(
self.field.relation,
{
_.extend(this.options || {}, {
title: (view === 'search' ? _t("Search: ") : _t("Create: ")) + this.string,
initial_ids: ids ? _.map(ids, function(x) {return x[0];}) : undefined,
initial_view: view,
disable_multiple_selection: true
},
}),
self.build_domain(),
new instance.web.CompoundContext(self.build_context(), context || {})
);
+1 -1
View File
@@ -110,7 +110,7 @@
<record id="validation_email" model="mail.template">
<field name="name">Email Verification</field>
<field name="model_id" ref="base.model_res_users"/>
<field name="email_from"><![CDATA[${object.company_id.name} <${(object.company_id.email or user.email)|safe}>]]></field>
<field name="email_from"><![CDATA["${object.company_id.name|safe}" <${(object.company_id.email or user.email)|safe}>]]></field>
<field name="email_to">${object.email|safe}</field>
<field name="subject"><![CDATA[${object.company_id.name} Forums validation]]></field>
<field name="body_html"><![CDATA[
+16
View File
@@ -0,0 +1,16 @@
Lithuania, 2017-01-26
Boolit JSC agrees to the terms of the Odoo Corporate Contributor License
Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this
declaration.
Signed,
Andrius Laukavičius dev@boolit.eu https://github.com/oerp-odoo
List of contributors:
Dainius Kaniava dka@boolit.eu https://github.com/boolit-dka
Andrius Laukavičius dev@boolit.eu https://github.com/oerp-odoo