summaryrefslogtreecommitdiff
path: root/addons/payment
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-07-29 14:10:30 +0200
committerChristophe Simonis <chs@odoo.com>2019-07-29 14:10:30 +0200
commitd5e1fd16b4fd796cc25b2b2d694dadb375110ce7 (patch)
tree35d130b4161985cd9ca3071a59980b52e8401be5 /addons/payment
parentae71f95371b4a5c99c10a23e3553c5badc45a1ac (diff)
parentcda4f3c308ca233aead81f5ae97d250b5b7bf82f (diff)
[MERGE] forward port branch saas-12.4 up to cda4f3c308c
Diffstat (limited to 'addons/payment')
-rw-r--r--addons/payment/i18n/cs.po33
-rw-r--r--addons/payment/i18n/km.po3
-rw-r--r--addons/payment/i18n/vi.po2
-rw-r--r--addons/payment/static/src/js/payment_translations.js10
-rw-r--r--addons/payment/views/assets.xml7
-rw-r--r--addons/payment/views/res_partner_views.xml3
6 files changed, 43 insertions, 15 deletions
diff --git a/addons/payment/i18n/cs.po b/addons/payment/i18n/cs.po
index 5ff07bdef66..ef01c997889 100644
--- a/addons/payment/i18n/cs.po
+++ b/addons/payment/i18n/cs.po
@@ -131,7 +131,7 @@ msgstr ""
#. module: payment
#: model_terms:ir.ui.view,arch_db:payment.view_partners_form_payment_defaultcreditcard
msgid "<span class=\"o_stat_text\">Credit card(s)</span>"
-msgstr ""
+msgstr "<span class=\"o_stat_text\">Kreditní karta(y)</span>"
#. module: payment
#: model_terms:ir.ui.view,arch_db:payment.acquirer_form
@@ -248,7 +248,7 @@ msgstr ""
#: code:addons/payment/models/account_payment.py:57
#, python-format
msgid "A token is required to create a new payment transaction."
-msgstr ""
+msgstr "K vytvoření nové platební transakce je vyžadován token."
#. module: payment
#: code:addons/payment/models/payment_acquirer.py:657
@@ -266,7 +266,7 @@ msgstr ""
#: code:addons/payment/models/account_invoice.py:36
#, python-format
msgid "A transaction can't be linked to invoices having different currencies."
-msgstr ""
+msgstr "Transakci nelze propojit s fakturami s různými měnami."
#. module: payment
#: code:addons/payment/models/account_invoice.py:41
@@ -383,7 +383,7 @@ msgstr ""
#. module: payment
#: model:ir.model.fields,field_description:payment.field_payment_acquirer__authorize_implemented
msgid "Authorize Mechanism Supported"
-msgstr ""
+msgstr "Podporován mechanismus autorizace"
#. module: payment
#: model:payment.acquirer,name:payment.payment_acquirer_authorize
@@ -480,7 +480,7 @@ msgstr "Platbu nelze nastavit"
#: code:addons/payment/controllers/portal.py:225
#, python-format
msgid "Cannot setup the payment."
-msgstr ""
+msgstr "Nelze nastavit platbu."
#. module: payment
#: model:ir.model.fields,field_description:payment.field_payment_acquirer__capture_manually
@@ -496,7 +496,7 @@ msgstr ""
#. module: payment
#: model:ir.model.fields,help:payment.field_payment_acquirer__capture_manually
msgid "Capture the amount from Odoo, when the delivery is completed."
-msgstr ""
+msgstr "Zachytit částku z Odoo, když je doručení dokončeno."
#. module: payment
#: model_terms:ir.ui.view,arch_db:payment.payment_acquirer_onboarding_wizard_form
@@ -507,7 +507,7 @@ msgstr ""
#: model:ir.actions.act_window,name:payment.action_open_payment_onboarding_payment_acquirer_wizard
#: model_terms:ir.ui.view,arch_db:payment.payment_acquirer_onboarding_wizard_form
msgid "Choose a payment method"
-msgstr ""
+msgstr "Zvolte způsob platby"
#. module: payment
#: model:ir.model.fields,field_description:payment.field_payment_transaction__partner_city
@@ -688,7 +688,7 @@ msgstr "Hotovo"
#. module: payment
#: model:ir.model.fields,field_description:payment.field_payment_acquirer__done_msg
msgid "Done Message"
-msgstr ""
+msgstr "Zpráva o dokončení"
#. module: payment
#: selection:payment.transaction,state:0
@@ -818,6 +818,8 @@ msgid ""
"If you leave it empty, the payment acquirer will be available for all the "
"countries."
msgstr ""
+"Pokud ji necháte prázdnou, bude příjemce platby k dispozici pro všechny "
+"země."
#. module: payment
#. openerp-web
@@ -939,12 +941,12 @@ msgstr ""
#. module: payment
#: model:ir.model.fields,help:payment.field_payment_icon__acquirer_ids
msgid "List of Acquirers supporting this payment icon."
-msgstr ""
+msgstr "Seznam příjemců podporujících tuto ikonu platby."
#. module: payment
#: model:ir.model.fields,help:payment.field_payment_acquirer__website_published
msgid "Make this payment acquirer available (Customer invoices, etc.)"
-msgstr ""
+msgstr "Zpřístupnit tohoto příjemce platby (faktury zákazníka atd.)"
#. module: payment
#: model_terms:ir.ui.view,arch_db:payment.pay_methods
@@ -973,6 +975,9 @@ msgid ""
"Electronic: Get paid automatically through a payment acquirer by requesting a transaction on a card saved by the customer when buying or subscribing online (payment token).\n"
"Batch Deposit: Encase several customer checks at once by generating a batch deposit to submit to your bank. When encoding the bank statement in Odoo,you are suggested to reconcile the transaction with the batch deposit. Enable this option from the settings."
msgstr ""
+"Ruční: Zaplaťte v hotovosti, šekem nebo jinou metodou mimo Odoo.\n"
+"Elektronické: Platba automaticky probíhá prostřednictvím příjemce plateb žádostí o transakci na kartě uloženou zákazníkem při nákupu nebo objednání online (platební token).\n"
+"Dávkový vklad: Zapíše několik zákaznických šeků najednou vygenerováním dávkového vkladu, který odešle do banky. Při kódování výpisu z banky v Odoo vám doporučujeme transakci spárovat s vkladem dávky. Aktivujte tuto možnost z nastavení."
#. module: payment
#: model:ir.model.fields,field_description:payment.field_payment_acquirer__image_medium
@@ -1001,12 +1006,12 @@ msgstr ""
#. module: payment
#: model:ir.model.fields,help:payment.field_payment_acquirer__pre_msg
msgid "Message displayed to explain and help the payment process."
-msgstr ""
+msgstr "Zobrazí se zpráva, která vysvětluje a pomáhá platebnímu procesu."
#. module: payment
#: model:ir.model.fields,help:payment.field_payment_acquirer__error_msg
msgid "Message displayed, if error is occur during the payment process."
-msgstr ""
+msgstr "Zobrazí se zpráva, pokud během procesu platby dojde k chybě."
#. module: payment
#: model:ir.model.fields,help:payment.field_payment_acquirer__cancel_msg
@@ -1019,6 +1024,8 @@ msgid ""
"Message displayed, if order is done successfully after having done the "
"payment process."
msgstr ""
+"Zobrazí se zpráva, pokud je po úspěšném provedení platby úspěšně provedena "
+"objednávka."
#. module: payment
#: model:ir.model.fields,help:payment.field_payment_acquirer__pending_msg
@@ -1056,7 +1063,7 @@ msgstr "Název"
#. module: payment
#: model:ir.model.fields,help:payment.field_payment_token__name
msgid "Name of the payment token"
-msgstr ""
+msgstr "Název tokenu platby"
#. module: payment
#: selection:payment.acquirer,save_token:0
diff --git a/addons/payment/i18n/km.po b/addons/payment/i18n/km.po
index 6d58360ab21..5f29c4d94dc 100644
--- a/addons/payment/i18n/km.po
+++ b/addons/payment/i18n/km.po
@@ -1247,6 +1247,9 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:payment.pay_methods
msgid "Payment Methods"
msgstr ""
+"វិធី​ទូទាត់លុយ\n"
+" \n"
+" "
#. module: payment
#: model:ir.model,name:payment.model_payment_token
diff --git a/addons/payment/i18n/vi.po b/addons/payment/i18n/vi.po
index dc7bdb9d8fd..9a291bce4a3 100644
--- a/addons/payment/i18n/vi.po
+++ b/addons/payment/i18n/vi.po
@@ -765,7 +765,7 @@ msgstr "Cố định phí quốc tế"
#. module: payment
#: model:ir.model.fields,field_description:payment.field_payment_acquirer__inbound_payment_method_ids
msgid "For Incoming Payments"
-msgstr ""
+msgstr "Thanh toán doanh thu"
#. module: payment
#: selection:payment.transaction,type:0
diff --git a/addons/payment/static/src/js/payment_translations.js b/addons/payment/static/src/js/payment_translations.js
new file mode 100644
index 00000000000..199dcc2a276
--- /dev/null
+++ b/addons/payment/static/src/js/payment_translations.js
@@ -0,0 +1,10 @@
+// TODO Remove me >=saas-12.5, this is a disgrace
+// This is an hack to get the string_true and hover_false options translated on
+// the boolean_button terminology widget. The terms are translated through
+// _t(opt_terms.string_true) which will only work if the terms are already
+// present in the translation map.
+// This code does nothing but marks the strings as translatable
+var _t = function(x) { return x; };
+
+_t("Published");
+_t("Publish");
diff --git a/addons/payment/views/assets.xml b/addons/payment/views/assets.xml
index 62fe9d2455f..49cc88c5536 100644
--- a/addons/payment/views/assets.xml
+++ b/addons/payment/views/assets.xml
@@ -13,4 +13,11 @@
<script type="text/javascript" src="/payment/static/src/js/payment_processing.js"></script>
</xpath>
</template>
+
+ <template id="assets_backend" name="payment_assets_backend" inherit_id="web.assets_backend">
+ <xpath expr="." position="inside">
+ <script type="text/javascript" src="/payment/static/src/js/payment_translations.js"></script>
+ </xpath>
+ </template>
+
</odoo>
diff --git a/addons/payment/views/res_partner_views.xml b/addons/payment/views/res_partner_views.xml
index 8417793f24a..bd936c8340d 100644
--- a/addons/payment/views/res_partner_views.xml
+++ b/addons/payment/views/res_partner_views.xml
@@ -13,7 +13,8 @@
<button type="action" class="oe_stat_button"
icon="fa-credit-card"
name="%(payment.payment_token_action)d"
- context="{'search_default_partner_id': active_id}">
+ context="{'search_default_partner_id': active_id}"
+ attrs="{'invisible': [('payment_token_count', '=', 0)]}">
<div class="o_form_field o_stat_info">
<span class="o_stat_value">
<field name="payment_token_count" widget="statinfo" nolabel="1"/>