Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
ee1b4ec
contract_payment_mode module
Oct 14, 2015
5bf6c47
contract_payment_mode: Several fixes+imps:
antespi Jan 27, 2016
718bcb9
contract_payment_mode: get bank account from partner (#30)
jabibi Apr 25, 2016
f61c558
OCA Transbot updated translations from Transifex
oca-transbot Nov 8, 2015
94322f7
contract_payment_mode: Migration to 9.0
cubells Mar 28, 2017
2103279
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
5cb49e5
[MIG] contract_payment_mode: Migration to 10.0
chienandalu May 25, 2017
f2edc08
OCA Transbot updated translations from Transifex
oca-transbot Jun 17, 2017
9a1e252
[IMP] contract_payment_mode: Onchange payment mode vals
carlosdauden Aug 4, 2017
d9d8011
OCA Transbot updated translations from Transifex
oca-transbot Aug 19, 2017
e814d3a
[FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed
moylop260 Nov 10, 2017
d2f4162
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
41ac2f7
[MIG] contract_payment_mode: Migration to 11.0
cubells May 17, 2018
e8db85e
[UPD] Update contract_payment_mode.pot
oca-travis Jun 21, 2018
edc8305
[MIG] Contract Payment Mode to 12.0
ThomasBinsfeld Dec 18, 2018
549a0b1
Fix unit test
sbejaoui Sep 30, 2019
0ff96a8
[UPD] README.rst
OCA-git-bot Oct 1, 2019
258c8dd
[ADD] icon.png
OCA-git-bot Oct 1, 2019
adad93f
[UPD] Update contract_payment_mode.pot
oca-travis Oct 1, 2019
30353af
Update translation files
oca-transbot Oct 1, 2019
0a52197
Translated using Weblate (Catalan)
albertpons Oct 9, 2019
9fe6e56
Translated using Weblate (Portuguese (Brazil))
britoederr Oct 10, 2019
af1e9e3
Translated using Weblate (Chinese (Simplified))
liweijie0812 Oct 16, 2019
4637c64
Translated using Weblate (German)
rschnapka Oct 29, 2019
f541e16
Translated using Weblate (Portuguese)
pedrocs-exo Feb 17, 2020
3986972
<!--Supplier--FORM view-->
vinclar Feb 14, 2020
4ed10ff
contract_payment_mode 12.0.1.1.0
OCA-git-bot Mar 9, 2020
16027a1
[UPD] README.rst
OCA-git-bot Mar 25, 2020
c9c3c0e
[UPD] README.rst
OCA-git-bot Mar 25, 2020
1dabc22
[IMP] contract_payment_mode: black, isort, prettier
Oct 21, 2020
127ee57
[MIG] contract_payment_mode: Migration to 13.0
Oct 21, 2020
d8574bd
[14.0][MIG] Migarted contract_payment_mode module.
Ammar-OSI Apr 15, 2021
4094746
[15.0][MIG] contract_payment_mode: Migration to 15.0
palkesh-aktivsoftware Mar 28, 2022
cac1263
contract_payment_mode 15.0.1.0.1
OCA-git-bot Aug 18, 2022
82dede1
[FIX] contract_mode: fix payment_mode_id domain on supplier form
marcelsavegnago Jan 2, 2023
7ec2011
[FIX] contract_payment_mode: set default payment mode by contract type
marcelsavegnago Feb 1, 2023
dc32f86
[MIG] contract_payment_mode: Migration to 16.0
carolinafernandez-tecnativa Oct 3, 2023
6abeb1b
[UPD] Update contract_payment_mode.pot
Oct 4, 2023
382d257
[BOT] post-merge updates
OCA-git-bot Oct 4, 2023
eabbfbf
Update translation files
weblate Oct 10, 2023
04c394f
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
00fef03
Translated using Weblate (Dutch)
ThijsvOers Apr 2, 2024
6aa5a1e
Translated using Weblate (Italian)
mymage May 6, 2024
1d79b7b
[IMP] contract_payment_mode: pre-commit auto fixes
Jun 3, 2024
10bc045
[MIG] contract_payment_mode: Migration to 17.0
Jun 3, 2024
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
106 changes: 106 additions & 0 deletions contract_payment_mode/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
=====================
Contract Payment Mode
=====================

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

.. |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/licence-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/17.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-17-0/contract-17-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=17.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 *Accounting > Sales > 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. Click on **Generate recurring invoices automatically** checkbox.
7. Add a product to invoice.
8. 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:%2017.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>

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/17.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": "17.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: %d 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 16.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