Browse Source

Ad translation

pull/130/head
Valentin Chemiere 9 years ago
committed by MonsieurB
parent
commit
fbaa15a204
  1. 33
      sms_send_picking/i18n/fr.po
  2. 3
      sms_send_picking/stock.py

33
sms_send_picking/i18n/fr.po

@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sms_send_picking
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-04 13:28+0000\n"
"PO-Revision-Date: 2015-09-04 13:28+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: sms_send_picking
#: model:ir.model,name:sms_send_picking.model_stock_picking
msgid "Picking List"
msgstr "Opération de manutention"
#. module: sms_send_picking
#: field:stock.picking,sms_sent:0
msgid "Sms sent"
msgstr "Sms envoyé"
#. module: sms_send_picking
#: code:addons/sms_send_picking/stock.py:44
#, python-format
msgid "Your picking %s is ready to transfert"
msgstr "Votre commande %s est prète a être retiré"

3
sms_send_picking/stock.py

@ -21,6 +21,7 @@
############################################################################### ###############################################################################
from openerp import api, models, fields from openerp import api, models, fields
from openerp.tools.translate import _
class StockPicking(models.Model): class StockPicking(models.Model):
@ -40,7 +41,7 @@ class StockPicking(models.Model):
for pick in pickings: for pick in pickings:
data = { data = {
'gateway': gateway.id, 'gateway': gateway.id,
'text': 'Your picking %s is ready to transfert' % pick.name,
'text': _('Your picking %s is ready to transfert') % pick.name,
'mobile_to': pick.partner_id.phone, 'mobile_to': pick.partner_id.phone,
} }
sms_sender = sms_sender_obj.create(data) sms_sender = sms_sender_obj.create(data)

Loading…
Cancel
Save