mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[15.0][MIG] contract_payment_mode: Migration to 15.0
This commit is contained in:
@@ -14,13 +14,13 @@ Contract Payment Mode
|
|||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github
|
||||||
:target: https://github.com/OCA/contract/tree/14.0/contract_payment_mode
|
:target: https://github.com/OCA/contract/tree/15.0/contract_payment_mode
|
||||||
:alt: OCA/contract
|
:alt: OCA/contract
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||||
:target: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract_payment_mode
|
:target: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract_payment_mode
|
||||||
:alt: Translate me on Weblate
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||||
:target: https://runbot.odoo-community.org/runbot/110/14.0
|
:target: https://runbot.odoo-community.org/runbot/110/15.0
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runbot
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
@@ -57,7 +57,7 @@ Bug Tracker
|
|||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/contract/issues>`_.
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/contract/issues>`_.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
In case of trouble, please check there if your issue has already been reported.
|
||||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20contract_payment_mode%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20contract_payment_mode%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||||
|
|
||||||
Do not contact contributors directly about support or help with technical issues.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
@@ -94,6 +94,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.
|
promote its widespread use.
|
||||||
|
|
||||||
This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/14.0/contract_payment_mode>`_ project on GitHub.
|
This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/15.0/contract_payment_mode>`_ project on GitHub.
|
||||||
|
|
||||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Contract Payment Mode",
|
"name": "Contract Payment Mode",
|
||||||
"summary": "Payment mode in contracts and their invoices",
|
"summary": "Payment mode in contracts and their invoices",
|
||||||
"version": "14.0.1.0.0",
|
"version": "15.0.1.0.0",
|
||||||
"author": "Domatix, " "Tecnativa, " "Odoo Community Association (OCA)",
|
"author": "Domatix, " "Tecnativa, " "Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/OCA/contract",
|
"website": "https://github.com/OCA/contract",
|
||||||
"depends": ["contract", "account_payment_partner"],
|
"depends": ["contract", "account_payment_partner"],
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ _logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def post_init_hook(cr, registry):
|
def post_init_hook(cr, registry):
|
||||||
"""Copy payment mode from partner to the new field at contract."""
|
"""Copy payment mode from partner to the new field at contract."""
|
||||||
with api.Environment.manage():
|
|
||||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||||
m_contract = env["contract.contract"]
|
m_contract = env["contract.contract"]
|
||||||
contracts = m_contract.search([("payment_mode_id", "=", False)])
|
contracts = m_contract.search([("payment_mode_id", "=", False)])
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017
|
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2019-10-09 18:37+0000\n"
|
"PO-Revision-Date: 2019-10-09 18:37+0000\n"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 14.0\n"
|
"Project-Id-Version: Odoo Server 15.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@@ -18,21 +18,6 @@ msgstr ""
|
|||||||
msgid "Contract"
|
msgid "Contract"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__display_name
|
|
||||||
msgid "Display Name"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__id
|
|
||||||
msgid "ID"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract____last_update
|
|
||||||
msgid "Last Modified on"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
#. module: contract_payment_mode
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
|
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
|
||||||
msgid "Payment Mode"
|
msgid "Payment Mode"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2019-10-29 21:33+0000\n"
|
"PO-Revision-Date: 2019-10-29 21:33+0000\n"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# Translators:
|
# Translators:
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: contract (8.0)\n"
|
"Project-Id-Version: contract (15.0)\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2015-11-07 12:33+0000\n"
|
"PO-Revision-Date: 2015-11-07 12:33+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * contract_payment_mode
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 14.0\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"PO-Revision-Date: 2022-02-06 20:59+0000\n"
|
|
||||||
"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\n"
|
|
||||||
"Language-Team: none\n"
|
|
||||||
"Language: es_AR\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: \n"
|
|
||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
||||||
"X-Generator: Weblate 4.3.2\n"
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
|
||||||
#: model:ir.model,name:contract_payment_mode.model_contract_contract
|
|
||||||
msgid "Contract"
|
|
||||||
msgstr "Contrato"
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__display_name
|
|
||||||
msgid "Display Name"
|
|
||||||
msgstr "Mostrar Nombre"
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__id
|
|
||||||
msgid "ID"
|
|
||||||
msgstr "ID"
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract____last_update
|
|
||||||
msgid "Last Modified on"
|
|
||||||
msgstr "Última Modificación el"
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
|
|
||||||
msgid "Payment Mode"
|
|
||||||
msgstr "Modo de Pago"
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
# Translators:
|
# Translators:
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: contract (8.0)\n"
|
"Project-Id-Version: contract (15.0)\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2015-11-07 12:33+0000\n"
|
"PO-Revision-Date: 2015-11-07 12:33+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# Ashish Deshmukh <ashish.p.deshmukh@gmail.com>, 2017
|
# Ashish Deshmukh <ashish.p.deshmukh@gmail.com>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 15.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-08-17 01:05+0000\n"
|
"PO-Revision-Date: 2017-08-17 01:05+0000\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# Bole <bole@dajmi5.com>, 2018
|
# Bole <bole@dajmi5.com>, 2018
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 15.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2018-02-10 03:15+0000\n"
|
"PO-Revision-Date: 2018-02-10 03:15+0000\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# Bole <bole@dajmi5.com>, 2017
|
# Bole <bole@dajmi5.com>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 15.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-06-17 01:39+0000\n"
|
"PO-Revision-Date: 2017-06-17 01:39+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -7,23 +7,22 @@
|
|||||||
# Stefano <stefano.sforzi@agilebg.com>, 2017
|
# Stefano <stefano.sforzi@agilebg.com>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2022-03-27 00:17+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
"Last-Translator: Andrea Cometa <a.cometa@apuliasoftware.it>\n"
|
"Last-Translator: Stefano <stefano.sforzi@agilebg.com>, 2017\n"
|
||||||
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
|
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
|
||||||
"Language: it\n"
|
"Language: it\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: \n"
|
"Content-Transfer-Encoding: \n"
|
||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"X-Generator: Weblate 4.3.2\n"
|
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
#. module: contract_payment_mode
|
||||||
#: model:ir.model,name:contract_payment_mode.model_contract_contract
|
#: model:ir.model,name:contract_payment_mode.model_contract_contract
|
||||||
msgid "Contract"
|
msgid "Contract"
|
||||||
msgstr "Contratto"
|
msgstr ""
|
||||||
|
|
||||||
#. module: contract_payment_mode
|
#. module: contract_payment_mode
|
||||||
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
|
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# Erwin van der Ploeg <erwin@odooexperts.nl>, 2017
|
# Erwin van der Ploeg <erwin@odooexperts.nl>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
# Pedro Castro Silva <pedrocs@sossia.pt>, 2017
|
# Pedro Castro Silva <pedrocs@sossia.pt>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 15.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2020-02-17 19:13+0000\n"
|
"PO-Revision-Date: 2020-02-17 19:13+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2019-10-10 20:36+0000\n"
|
"PO-Revision-Date: 2019-10-10 20:36+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# Daniel Reis <dreis.pt@gmail.com>, 2017
|
# Daniel Reis <dreis.pt@gmail.com>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# nek, 2018
|
# nek, 2018
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 15.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2018-03-17 03:26+0000\n"
|
"PO-Revision-Date: 2018-03-17 03:26+0000\n"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
# Translators:
|
# Translators:
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: contract (8.0)\n"
|
"Project-Id-Version: contract (15.0)\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2015-11-07 12:33+0000\n"
|
"PO-Revision-Date: 2015-11-07 12:33+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# OCA Transbot <transbot@odoo-community.org>, 2017
|
# OCA Transbot <transbot@odoo-community.org>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
"PO-Revision-Date: 2017-04-01 02:46+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# Ediz Duman <neps1192@gmail.com>, 2017
|
# Ediz Duman <neps1192@gmail.com>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 15.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-06-13 02:40+0000\n"
|
"PO-Revision-Date: 2017-06-13 02:40+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# Ediz Duman <neps1192@gmail.com>, 2017
|
# Ediz Duman <neps1192@gmail.com>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 15.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2017-06-13 02:40+0000\n"
|
"PO-Revision-Date: 2017-06-13 02:40+0000\n"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# ITGeeker <alanljj@qq.com>, 2017
|
# ITGeeker <alanljj@qq.com>, 2017
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
"Project-Id-Version: Odoo Server 15.0c\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
|
||||||
"PO-Revision-Date: 2019-10-16 18:31+0000\n"
|
"PO-Revision-Date: 2019-10-16 18:31+0000\n"
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|||||||
!! This file is generated by oca-gen-addon-readme !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! changes will be overwritten. !!
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/contract/tree/14.0/contract_payment_mode"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract_payment_mode"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/110/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/contract/tree/15.0/contract_payment_mode"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract_payment_mode"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/110/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||||
<p>This module allows to set a payment mode on contract for creating the invoices
|
<p>This module allows to set a payment mode on contract for creating the invoices
|
||||||
with this payment mode.</p>
|
with this payment mode.</p>
|
||||||
<p><strong>Table of contents</strong></p>
|
<p><strong>Table of contents</strong></p>
|
||||||
@@ -407,7 +407,7 @@ corresponding field.</li>
|
|||||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/contract/issues">GitHub Issues</a>.
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/contract/issues">GitHub Issues</a>.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
In case of trouble, please check there if your issue has already been reported.
|
||||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
<a class="reference external" href="https://github.com/OCA/contract/issues/new?body=module:%20contract_payment_mode%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
<a class="reference external" href="https://github.com/OCA/contract/issues/new?body=module:%20contract_payment_mode%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="credits">
|
<div class="section" id="credits">
|
||||||
@@ -438,7 +438,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.</p>
|
promote its widespread use.</p>
|
||||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/contract/tree/14.0/contract_payment_mode">OCA/contract</a> project on GitHub.</p>
|
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/contract/tree/15.0/contract_payment_mode">OCA/contract</a> project on GitHub.</p>
|
||||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,9 +3,13 @@
|
|||||||
# Copyright 2017 Tecnativa - David Vidal
|
# Copyright 2017 Tecnativa - David Vidal
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
|
from unittest.mock import patch
|
||||||
|
|
||||||
import odoo.tests
|
import odoo.tests
|
||||||
from odoo.tests import tagged
|
from odoo.tests import tagged
|
||||||
|
|
||||||
|
from odoo.addons.account.models.account_payment_method import AccountPaymentMethod
|
||||||
|
|
||||||
from ..hooks import post_init_hook
|
from ..hooks import post_init_hook
|
||||||
|
|
||||||
|
|
||||||
@@ -14,9 +18,28 @@ class TestContractPaymentInit(odoo.tests.HttpCase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
super().setUp()
|
super().setUp()
|
||||||
|
|
||||||
self.payment_method = self.env["account.payment.method"].create(
|
Method_get_payment_method_information = (
|
||||||
{"name": "Test Payment Method", "code": "Test", "payment_type": "inbound"}
|
AccountPaymentMethod._get_payment_method_information
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def _get_payment_method_information(self):
|
||||||
|
res = Method_get_payment_method_information(self)
|
||||||
|
res["Test"] = {"mode": "multi", "domain": [("type", "=", "bank")]}
|
||||||
|
return res
|
||||||
|
|
||||||
|
with patch.object(
|
||||||
|
AccountPaymentMethod,
|
||||||
|
"_get_payment_method_information",
|
||||||
|
_get_payment_method_information,
|
||||||
|
):
|
||||||
|
self.payment_method = self.env["account.payment.method"].create(
|
||||||
|
{
|
||||||
|
"name": "Test Payment Method",
|
||||||
|
"code": "Test",
|
||||||
|
"payment_type": "inbound",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
self.payment_mode = self.env["account.payment.mode"].create(
|
self.payment_mode = self.env["account.payment.mode"].create(
|
||||||
{
|
{
|
||||||
"name": "Test payment mode",
|
"name": "Test payment mode",
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
<odoo>
|
<odoo>
|
||||||
<!--FORM view-->
|
<!--FORM view-->
|
||||||
<record id="contract_contract_form_view" model="ir.ui.view">
|
<record id="contract_contract_form_view" model="ir.ui.view">
|
||||||
<field
|
<field name="name">contract.contract form view (in contract_payment_mode)
|
||||||
name="name"
|
</field>
|
||||||
>contract.contract form view (in contract_payment_mode)</field>
|
|
||||||
<field name="model">contract.contract</field>
|
<field name="model">contract.contract</field>
|
||||||
<field name="inherit_id" ref="contract.contract_contract_form_view" />
|
<field name="inherit_id" ref="contract.contract_contract_form_view" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
@@ -15,9 +14,8 @@
|
|||||||
</record>
|
</record>
|
||||||
<!--TREE view-->
|
<!--TREE view-->
|
||||||
<record id="contract_contract_tree_view" model="ir.ui.view">
|
<record id="contract_contract_tree_view" model="ir.ui.view">
|
||||||
<field
|
<field name="name">contract.contract tree view (in contract_payment_mode)
|
||||||
name="name"
|
</field>
|
||||||
>contract.contract tree view (in contract_payment_mode)</field>
|
|
||||||
<field name="model">contract.contract</field>
|
<field name="model">contract.contract</field>
|
||||||
<field name="inherit_id" ref="contract.contract_contract_tree_view" />
|
<field name="inherit_id" ref="contract.contract_contract_tree_view" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
@@ -28,9 +26,8 @@
|
|||||||
</record>
|
</record>
|
||||||
<!--FORM view-->
|
<!--FORM view-->
|
||||||
<record id="contract_contract_search_view" model="ir.ui.view">
|
<record id="contract_contract_search_view" model="ir.ui.view">
|
||||||
<field
|
<field name="name">contract.contract search view (in contract_payment_mode)
|
||||||
name="name"
|
</field>
|
||||||
>contract.contract search view (in contract_payment_mode)</field>
|
|
||||||
<field name="model">contract.contract</field>
|
<field name="model">contract.contract</field>
|
||||||
<field name="inherit_id" ref="contract.contract_contract_search_view" />
|
<field name="inherit_id" ref="contract.contract_contract_search_view" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
@@ -43,7 +40,8 @@
|
|||||||
<record id="contract_contract_supplier_form_view" model="ir.ui.view">
|
<record id="contract_contract_supplier_form_view" model="ir.ui.view">
|
||||||
<field
|
<field
|
||||||
name="name"
|
name="name"
|
||||||
>contract.contract supplier form view (in contract_payment_mode)</field>
|
>contract.contract supplier form view (in contract_payment_mode)
|
||||||
|
</field>
|
||||||
<field name="model">contract.contract</field>
|
<field name="model">contract.contract</field>
|
||||||
<field name="priority">18</field>
|
<field name="priority">18</field>
|
||||||
<field name="inherit_id" ref="contract.contract_contract_supplier_form_view" />
|
<field name="inherit_id" ref="contract.contract_contract_supplier_form_view" />
|
||||||
|
|||||||
Reference in New Issue
Block a user