[MERGE] forward port branch saas-6 up to 50e1486

This commit is contained in:
Christophe Simonis
2016-07-29 11:56:15 +02:00
4 changed files with 34 additions and 4 deletions
@@ -99,7 +99,8 @@ class AccountInvoiceRefund(models.TransientModel):
'tax_line_ids': tax_lines,
'date': date,
'name': description,
'origin': inv.origin
'origin': inv.origin,
'fiscal_position': inv.fiscal_position.id,
})
for field in ('partner_id', 'account_id', 'currency_id',
'payment_term_id', 'journal_id'):
+24
View File
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_stock
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-21 14:08+0000\n"
"PO-Revision-Date: 2015-01-21 14:08+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: sale_stock
#: code:addons/sale_stock/sale_stock.py:343
#, python-format
msgid "You plan to sell %.2f %s but you only have %.2f %s available !\n"
"The real stock is %.2f %s. (without reservations)"
msgstr "You plan to sell %s %s but you only have %s %s available !\n"
"The real stock is %s %s. (without reservations)"
+2 -2
View File
@@ -1152,7 +1152,7 @@ class survey_user_input_line(osv.Model):
if old_uil:
self.unlink(cr, SUPERUSER_ID, old_uil, context=context)
ca = dict_keys_startswith(post, answer_tag)
ca = dict_keys_startswith(post, answer_tag+"_")
comment_answer = ca.pop(("%s_%s" % (answer_tag, 'comment')), '').strip()
if len(ca) > 0:
for a in ca:
@@ -1184,7 +1184,7 @@ class survey_user_input_line(osv.Model):
self.unlink(cr, SUPERUSER_ID, old_uil, context=context)
no_answers = True
ca = dict_keys_startswith(post, answer_tag)
ca = dict_keys_startswith(post, answer_tag+"_")
comment_answer = ca.pop(("%s_%s" % (answer_tag, 'comment')), '').strip()
if comment_answer:
@@ -58,9 +58,14 @@ class google_map(http.Controller):
'longitude': escape(str(partner.partner_longitude)),
})
if 'customers' in post.get('partner_url', ''):
partner_url = '/customers/'
else:
partner_url = '/partners/'
# generate the map
values = {
'partner_url': post.get('partner_url'),
'partner_url': partner_url,
'partner_data': json.dumps(partner_data)
}
return request.website.render("website_google_map.google_map", values)