Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
9a04aff
contract_payment_mode module
Oct 14, 2015
c715952
contract_payment_mode: Several fixes+imps:
antespi Jan 27, 2016
bbfe515
contract_payment_mode: get bank account from partner (#30)
jabibi Apr 25, 2016
2536d51
OCA Transbot updated translations from Transifex
oca-transbot Nov 8, 2015
58157b6
contract_payment_mode: Migration to 9.0
cubells Mar 28, 2017
6d77e46
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
d28f1fe
[MIG] contract_payment_mode: Migration to 10.0
chienandalu May 25, 2017
29fa026
OCA Transbot updated translations from Transifex
oca-transbot Jun 17, 2017
ace8c06
[IMP] contract_payment_mode: Onchange payment mode vals
carlosdauden Aug 4, 2017
0263b84
OCA Transbot updated translations from Transifex
oca-transbot Aug 19, 2017
c00454d
[FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed
moylop260 Nov 10, 2017
8e16c71
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
4371d54
[MIG] contract_payment_mode: Migration to 11.0
cubells May 17, 2018
ca8358e
[UPD] Update contract_payment_mode.pot
oca-travis Jun 21, 2018
b949caf
[MIG] Contract Payment Mode to 12.0
ThomasBinsfeld Dec 18, 2018
a2f10d8
Fix unit test
sbejaoui Sep 30, 2019
b84814b
[UPD] README.rst
OCA-git-bot Oct 1, 2019
25aa009
[ADD] icon.png
OCA-git-bot Oct 1, 2019
03594cf
[UPD] Update contract_payment_mode.pot
oca-travis Oct 1, 2019
4f672ed
Update translation files
oca-transbot Oct 1, 2019
4c3bc78
Translated using Weblate (Catalan)
albertpons Oct 9, 2019
ccccc4e
Translated using Weblate (Portuguese (Brazil))
britoederr Oct 10, 2019
c4a6855
Translated using Weblate (Chinese (Simplified))
liweijie0812 Oct 16, 2019
d3905f9
Translated using Weblate (German)
rschnapka Oct 29, 2019
ff71c1c
Translated using Weblate (Portuguese)
pedrocs-exo Feb 17, 2020
89ad0d1
<!--Supplier--FORM view-->
vinclar Feb 14, 2020
6d19255
contract_payment_mode 12.0.1.1.0
OCA-git-bot Mar 9, 2020
d9aba51
[UPD] README.rst
OCA-git-bot Mar 25, 2020
3f2e2c4
[UPD] README.rst
OCA-git-bot Mar 25, 2020
93c39d5
[IMP] contract_payment_mode: black, isort, prettier
Oct 21, 2020
4972196
[MIG] contract_payment_mode: Migration to 13.0
Oct 21, 2020
981e637
[14.0][MIG] Migarted contract_payment_mode module.
Ammar-OSI Apr 15, 2021
d8dbd30
[15.0][MIG] contract_payment_mode: Migration to 15.0
palkesh-aktivsoftware Mar 28, 2022
f990e01
contract_payment_mode 15.0.1.0.1
OCA-git-bot Aug 18, 2022
0fbe63f
[FIX] contract_mode: fix payment_mode_id domain on supplier form
marcelsavegnago Jan 2, 2023
3ad4065
[FIX] contract_payment_mode: set default payment mode by contract type
marcelsavegnago Feb 1, 2023
e3770cd
[MIG] contract_payment_mode: Migration to 16.0
carolinafernandez-tecnativa Oct 3, 2023
9a23b38
[UPD] Update contract_payment_mode.pot
Oct 4, 2023
4cd1ef3
[BOT] post-merge updates
OCA-git-bot Oct 4, 2023
288d409
Update translation files
weblate Oct 10, 2023
243e053
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
4f0f5ff
Translated using Weblate (Dutch)
ThijsvOers Apr 2, 2024
afebe71
Translated using Weblate (Italian)
mymage May 6, 2024
076f319
Translated using Weblate (Croatian)
badbole Jun 17, 2024
d8b4666
Translated using Weblate (Italian)
mymage Jul 18, 2024
10d8b61
[IMP] contract_payment_mode: pre-commit auto fixes
Tisho99 Aug 11, 2024
9958c38
[MIG] contract_payment_mode: Migration to 17.0
Tisho99 Aug 11, 2024
7225360
[UPD] Update contract_payment_mode.pot
Sep 3, 2024
d70062f
[BOT] post-merge updates
OCA-git-bot Sep 3, 2024
10c67c6
[MIG] contract_payment_mode: Migration to 18.0
AndreuOForgeFlow Mar 17, 2025
7a78886
[UPD] Update contract_payment_mode.pot
Jul 1, 2025
a4e8aca
[BOT] post-merge updates
OCA-git-bot Jul 1, 2025
8e2b097
Added translation using Weblate (Swedish)
jakobkrabbe Jul 4, 2025
2c0afd3
Translated using Weblate (Swedish)
jakobkrabbe Aug 5, 2025
359b97d
Translated using Weblate (French)
qtheuret Jan 4, 2026
b0f35af
[IMP] contract_payment_mode: pre-commit auto fixes
May 25, 2026
f96fbcd
[MIG] contract_payment_mode: Migration to 19.0
May 25, 2026
f62f98e
[19.0][MIG] contract_payment_mode: Migration to version 19.0
May 25, 2026
7c3ed97
[19.0][MIG] contract_payment_mode: Migration to version 19.0
May 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions contract_payment_mode/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=====================
Contract Payment Mode
=====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:baf0d25d081f548797c6a526049d9fa0a67e68c6a7d411e264dbb10b59111c56
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github
:target: https://github.com/OCA/contract/tree/19.0/contract_payment_mode
:alt: OCA/contract
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/contract-19-0/contract-19-0-contract_payment_mode
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/contract&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to set a payment mode on contract for creating the
invoices with this payment mode.

**Table of contents**

.. contents::
:local:

Configuration
=============

Your user should be a Sales Manager or Accountant.

Usage
=====

1. Go to *Invoicing > Customers > Customer Contracts*.
2. Create one.
3. Select a partner to which invoice.
4. If the partner has a payment mode, this payment mode is selected
here.
5. If not, or if you want another payment mode, you can change it in the
corresponding field.
6. Add a product to invoice.
7. If you create an invoice, new invoice will have the selected payment
mode.

Bug Tracker
===========

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.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/contract/issues/new?body=module:%20contract_payment_mode%0Aversion:%2019.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.

Credits
=======

Authors
-------

* Domatix
* Tecnativa

Contributors
------------

- Ángel Moya <angel.moya@domatix.com>
- Antonio Espinosa <antonioea@antiun.com>
- Vicent Cubells <vicent.cubells@tecnativa.com>
- David Vidal <david.vidal@tecnativa.com>
- Carlos Dauden <carlos.dauden@tecnativa.com>
- Guillermo Llinares <guillermo@studio73.es>
- Amamr Officewala <aofficewala@opensourceintegrators.com>
- Carolina Fernandez <carolina.fernandez@tecnativa.com>
- David Jaen david.jaen.revert@gmail.com
- Alberto Martínez <alberto.martinez@sygel.es>
- Harald Panten <harald.panten@sygel.es>
- Valentin Vinagre <valentin.vinagre@sygel.es>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/contract <https://github.com/OCA/contract/tree/19.0/contract_payment_mode>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions contract_payment_mode/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
from .hooks import post_init_hook
23 changes: 23 additions & 0 deletions contract_payment_mode/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2015 Domatix (<www.domatix.com>)
# Copyright 2016 Antiun Ingenieria S.L. - Antonio Espinosa
# Copyright 2017 Tecnativa - David Vidal
# Copyright 2017 Tecnativa - Carlos Dauden <carlos.dauden@tecnativa.com>
# Copyright 2017-2018 Tecnativa - Vicent Cubells <vicent.cubells@tecnativa.com>
# Copyright (C) 2021 Open Source Integrators
# Copyright 2023 Tecnativa - Carolina Fernandez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Contract Payment Mode",
"summary": "Payment mode in contracts and their invoices",
"version": "19.0.1.0.0",
"author": "Domatix, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/contract",
"depends": ["contract", "account_payment_partner"],
"category": "Sales Management",
"license": "AGPL-3",
"data": ["views/contract_view.xml"],
"post_init_hook": "post_init_hook",
"installable": True,
"auto_install": True,
}
19 changes: 19 additions & 0 deletions contract_payment_mode/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2016 Antiun Ingenieria S.L. - Antonio Espinosa
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

import logging

_logger = logging.getLogger(__name__)


def post_init_hook(env):
"""Copy payment mode from partner to the new field at contract."""
m_contract = env["contract.contract"]
contracts = m_contract.search([("payment_mode_id", "=", False)])
if contracts:
_logger.info("Setting payment mode: %s contracts", len(contracts))
for contract in contracts:
payment_mode = contract.partner_id.customer_payment_mode_id
if payment_mode:
contract.payment_mode_id = payment_mode.id
_logger.info("Setting payment mode: Done")
34 changes: 34 additions & 0 deletions contract_payment_mode/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_payment_mode
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Marc Tormo i Bochaca <mtbochaca@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
"PO-Revision-Date: 2019-10-09 18:37+0000\n"
"Last-Translator: Albert Pons <a.pons@escaner.ad>\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\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 3.8\n"

#. module: contract_payment_mode
#: model:ir.model,name:contract_payment_mode.model_contract_contract
msgid "Contract"
msgstr "Contracte"

#. module: contract_payment_mode
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
msgid "Payment Mode"
msgstr "Forma de pagament"

#~ msgid "Analytic Account"
#~ msgstr "Compte analític"
24 changes: 24 additions & 0 deletions contract_payment_mode/i18n/contract_payment_mode.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_payment_mode
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \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: contract_payment_mode
#: model:ir.model,name:contract_payment_mode.model_contract_contract
msgid "Contract"
msgstr ""

#. module: contract_payment_mode
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
msgid "Payment Mode"
msgstr ""
33 changes: 33 additions & 0 deletions contract_payment_mode/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_payment_mode
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
"PO-Revision-Date: 2019-10-29 21:33+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\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 3.8\n"

#. module: contract_payment_mode
#: model:ir.model,name:contract_payment_mode.model_contract_contract
msgid "Contract"
msgstr "Vertrag"

#. module: contract_payment_mode
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
msgid "Payment Mode"
msgstr "Zahlweise"

#~ msgid "Analytic Account"
#~ msgstr "Kostenstelle"
32 changes: 32 additions & 0 deletions contract_payment_mode/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_payment_mode
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: contract (15.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
"PO-Revision-Date: 2015-11-07 12:33+0000\n"
"Last-Translator: <>\n"
"Language-Team: Greek (Greece) (http://www.transifex.com/oca/OCA-contract-8-0/"
"language/el_GR/)\n"
"Language: el_GR\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"

#. module: contract_payment_mode
#: model:ir.model,name:contract_payment_mode.model_contract_contract
msgid "Contract"
msgstr ""

#. module: contract_payment_mode
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
msgid "Payment Mode"
msgstr ""

#~ msgid "Analytic Account"
#~ msgstr "Αναλυτικός Λογαριασμός"
33 changes: 33 additions & 0 deletions contract_payment_mode/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_payment_mode
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
"PO-Revision-Date: 2023-10-10 22:58+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\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.17\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__payment_mode_id
msgid "Payment Mode"
msgstr "Modo de pago"

#~ msgid "Analytic Account"
#~ msgstr "Cuenta analítica"
27 changes: 27 additions & 0 deletions contract_payment_mode/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_payment_mode
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-09-05 07:07+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__payment_mode_id
msgid "Payment Mode"
msgstr "Método de Pago"
32 changes: 32 additions & 0 deletions contract_payment_mode/i18n/es_MX.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_payment_mode
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: contract (15.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-29 10:30+0000\n"
"PO-Revision-Date: 2015-11-07 12:33+0000\n"
"Last-Translator: <>\n"
"Language-Team: Spanish (Mexico) (http://www.transifex.com/oca/OCA-"
"contract-8-0/language/es_MX/)\n"
"Language: es_MX\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"

#. module: contract_payment_mode
#: model:ir.model,name:contract_payment_mode.model_contract_contract
msgid "Contract"
msgstr ""

#. module: contract_payment_mode
#: model:ir.model.fields,field_description:contract_payment_mode.field_contract_contract__payment_mode_id
msgid "Payment Mode"
msgstr ""

#~ msgid "Analytic Account"
#~ msgstr "Cuenta analítica"
Loading
Loading