[MERGE] forward port branch saas-6 up to 50e1486
This commit is contained in:
@@ -99,7 +99,8 @@ class AccountInvoiceRefund(models.TransientModel):
|
|||||||
'tax_line_ids': tax_lines,
|
'tax_line_ids': tax_lines,
|
||||||
'date': date,
|
'date': date,
|
||||||
'name': description,
|
'name': description,
|
||||||
'origin': inv.origin
|
'origin': inv.origin,
|
||||||
|
'fiscal_position': inv.fiscal_position.id,
|
||||||
})
|
})
|
||||||
for field in ('partner_id', 'account_id', 'currency_id',
|
for field in ('partner_id', 'account_id', 'currency_id',
|
||||||
'payment_term_id', 'journal_id'):
|
'payment_term_id', 'journal_id'):
|
||||||
|
|||||||
@@ -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)"
|
||||||
@@ -1152,7 +1152,7 @@ class survey_user_input_line(osv.Model):
|
|||||||
if old_uil:
|
if old_uil:
|
||||||
self.unlink(cr, SUPERUSER_ID, old_uil, context=context)
|
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()
|
comment_answer = ca.pop(("%s_%s" % (answer_tag, 'comment')), '').strip()
|
||||||
if len(ca) > 0:
|
if len(ca) > 0:
|
||||||
for a in ca:
|
for a in ca:
|
||||||
@@ -1184,7 +1184,7 @@ class survey_user_input_line(osv.Model):
|
|||||||
self.unlink(cr, SUPERUSER_ID, old_uil, context=context)
|
self.unlink(cr, SUPERUSER_ID, old_uil, context=context)
|
||||||
|
|
||||||
no_answers = True
|
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()
|
comment_answer = ca.pop(("%s_%s" % (answer_tag, 'comment')), '').strip()
|
||||||
if comment_answer:
|
if comment_answer:
|
||||||
|
|||||||
@@ -58,9 +58,14 @@ class google_map(http.Controller):
|
|||||||
'longitude': escape(str(partner.partner_longitude)),
|
'longitude': escape(str(partner.partner_longitude)),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if 'customers' in post.get('partner_url', ''):
|
||||||
|
partner_url = '/customers/'
|
||||||
|
else:
|
||||||
|
partner_url = '/partners/'
|
||||||
|
|
||||||
# generate the map
|
# generate the map
|
||||||
values = {
|
values = {
|
||||||
'partner_url': post.get('partner_url'),
|
'partner_url': partner_url,
|
||||||
'partner_data': json.dumps(partner_data)
|
'partner_data': json.dumps(partner_data)
|
||||||
}
|
}
|
||||||
return request.website.render("website_google_map.google_map", values)
|
return request.website.render("website_google_map.google_map", values)
|
||||||
|
|||||||
Reference in New Issue
Block a user