Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
6ff2988
Add 4 new modules to handle payment type and bank accounts:
Feb 24, 2014
d6bbc59
Launchpad automatic translations update.
Jun 27, 2014
43c8c72
[MIG] account_payment_partner: Migration to v8
pedrobaeza Sep 10, 2014
96936d8
[FIX+IMP] account_payment_partner: 2 things:
rlizana Nov 27, 2014
6455ff0
[IMP] account_payment_partner: Several things:
Jan 14, 2015
351a731
Portuguese translations
danimaribeiro Feb 13, 2015
3d5c8fc
Add read access on payment.mode to employees
Mar 16, 2015
52d8616
[FIX] account_payment_partner: Fix for finding account move lines wit…
pedrobaeza Mar 9, 2015
314e892
[IMP] Expand authors + manifest cleaning
pedrobaeza May 25, 2015
314b50a
Add requested descriptions in an OCA README.rst file
phschmidt Jun 1, 2015
12106d8
ADD description on payment mode and show it on invoice report
Jul 2, 2015
a3695f5
[RFR] decorate overridable methods in wizard as api.multi
hbrunn Jul 8, 2015
8a4151e
[FIX+IMP] account_payment_partner: Several things:
alexis-via Oct 19, 2015
69bdadf
[IMP] account_payment_partner: Several things
pedrobaeza Feb 15, 2016
fc22a39
[MIG] account_payment_partner: Start to port bank-payment to v9 (with…
alexis-via Apr 29, 2016
99d28d1
OCA Transbot updated translations from Transifex
oca-transbot Apr 9, 2016
eec86af
Port almost all modules to v10 (#305)
Oct 19, 2016
1358ceb
[IMP] account_payment_partner: Several things:
pedrobaeza Apr 2, 2017
48ff20d
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
021ecda
[MIG] account_payment_partner
etobella Oct 17, 2017
acb9991
add tests and small fixes
JordiBForgeFlow Oct 22, 2017
105206e
OCA Transbot updated translations from Transifex
oca-transbot Nov 25, 2017
5f0230c
[FIX] account_payment_partner: impossible to define if there was no c…
oihane Jan 17, 2018
16f62ee
[FIX] Fix issue when the bank_id of partner_bank_id is not set (field…
acsonefho Feb 12, 2018
df51208
[11.0][FIX] account_payment_partner: onchange if more than one bank
astirpe Jan 22, 2018
23e1e84
[CHG] account_payment_partner: Prevent to delete bank account linked …
Dec 4, 2017
f223c1c
OCA Transbot updated translations from Transifex
oca-transbot May 26, 2018
27904a2
Translated using Weblate (Español (España))
etobella Jul 13, 2018
8d61e0d
[FIX+IMP] account_payment_partner: Fix invoice bank account assignati…
carlosdauden Mar 15, 2018
729c66d
[IMP] account_payment_partner: Add several tests
cubells Dec 3, 2018
4ad1464
[MIG] account_payment_partner: Adapt tests + code to latest version
pedrobaeza Dec 4, 2018
e0dfb1d
[MIG] account_payment_partner: migrate to 12.0
mourad-ehm Oct 2, 2018
9fd4ae5
[MIG] account_payment_partner: Fix tests for new version
pedrobaeza Dec 13, 2018
6592636
[UPD] Update account_payment_partner.pot
oca-travis Dec 13, 2018
59f9ffa
[MIG] account_banking_pain_base: Migration to 12.0
pedrobaeza Dec 14, 2018
fc1ee26
Update translation files
oca-transbot Dec 29, 2018
80b3758
Translated using Weblate (Catalan)
Mar 15, 2019
c42d2e3
Update invoice_supplier_form view
altoch Jan 27, 2019
96e2677
Add indexes on account payment models
guewen May 7, 2019
f18492e
[FIX] test_invoice_refund
rven Jul 15, 2019
c25dbdc
Translated using Weblate (Catalan)
Oct 4, 2019
55355b5
[IMP] account_payment_partner: black, isort
rven Nov 8, 2019
9b44f45
[MIG] account_payment_partner: Migration to 13.0
rven Dec 19, 2019
9b4bb45
Update translation files
oca-transbot Jan 31, 2020
e5c2cfd
[MIG] account_payment_sale: Migration to 13.0
rven Jan 31, 2020
f0211a4
pre-commit update
OCA-git-bot Mar 14, 2020
5524f4a
[IMP] account_payment_purchase: black, isort
MiquelRForgeFlow Jan 29, 2020
abe501b
[MIG] account_payment_purchase: Migration to 13.0
MiquelRForgeFlow Jan 29, 2020
8c05237
[FIX] account_payment_partner: payment_mode_id default not set for Re…
atchuthan Apr 2, 2020
224b05c
Added translation using Weblate (Spanish (Argentina))
ibuioli Aug 6, 2020
55f6883
Update translation files
oca-transbot Aug 16, 2020
1d639ff
[IMP] account_payment_partner: black, isort, prettier
misern2 Oct 16, 2020
175d9de
[MIG] account_payment_partner: Migration to 14.0
misern2 Oct 17, 2020
2277c16
account_payment_partner: FIX form view of account.move
alexis-via Dec 26, 2020
1d13e21
Update translation files
oca-transbot Feb 4, 2021
8c2e8a9
[FIX] account_payment_partner: Set correct journals in tests to preve…
victoralmau Mar 12, 2021
2fe683d
Translated using Weblate (Spanish (Argentina))
ibuioli Apr 1, 2021
3f9f952
Added translation using Weblate (French (France))
Yvesldff Apr 10, 2021
adb058a
[FIX] account_payment_partner: Fix tests
joao-p-marques Apr 14, 2021
24c4416
Translated using Weblate (Dutch)
bosd Apr 17, 2021
634d5c3
Translated using Weblate (Spanish)
Apr 18, 2021
4c8fa68
Added translation using Weblate (Spanish (Chile))
Apr 18, 2021
b13d494
Translated using Weblate (Dutch)
bosd Apr 22, 2021
3d7d4f7
[IMP] account_payment_partner: Add refund_payment_mode_id to assign a…
victoralmau May 4, 2021
bc21180
[IMP] account_payment_partner: Add refund_payment_mode_id to set in r…
victoralmau May 25, 2021
0a81453
Update translation files
oca-transbot May 30, 2021
f5dca7d
Translated using Weblate (Spanish (Argentina))
ibuioli May 30, 2021
064f11b
[FIX] account_payment_partner: _compute_invoice_partner_bank isn't ex…
carlosdauden Jul 8, 2021
3e7ac9c
[14.0][FIX] account_payment_partner: pass invoice_partner_bank_id cor…
JordiMForgeFlow Jul 30, 2021
4ec8a50
[IMP] account_payment_partner: Add Payment mode to Invoices Analysis
victoralmau Aug 18, 2021
ce55344
Update translation files
oca-transbot Aug 23, 2021
8c273b0
Translated using Weblate (Spanish (Argentina))
ibuioli Aug 29, 2021
8d86cf3
[FIX] account_payment_partner: Set the correct value of payment_mode_id
victoralmau Sep 17, 2021
0f4cafd
Added translation using Weblate (Portuguese)
pedrocs-exo Oct 25, 2021
f90c6eb
account_payment_partner: add optional="hide" on payment mode in invoi…
alexis-via Jul 3, 2021
de1f3ce
Update test suite
alexis-via Nov 2, 2021
949d479
Added translation using Weblate (Italian)
francesco-ooops Nov 4, 2021
6148868
Added translation using Weblate (Swedish)
simonstromb Nov 17, 2021
6906ae0
[IMP] account_payment_partner: black, isort, prettier
misern2 Nov 24, 2021
9cd6b77
[MIG] account_payment_partner: Migration to 15.0
misern2 Dec 2, 2021
fec0080
[FIX] account_payment_partner: only use bank_account_required in bills
MiquelRForgeFlow Mar 8, 2022
b391aa2
Translated using Weblate (Catalan)
juliap98 Mar 29, 2022
ace52f4
Translated using Weblate (Catalan)
Noel000 Apr 13, 2022
a63953b
[IMP] account_payment_partner: Promote to Mature
etobella Apr 21, 2022
4b08b95
[FIX] account_payment_partner: Fix tests
ramiadavid Jul 6, 2022
c065c88
[FIX] account_payment_partner: Fix multi-company issues
joao-p-marques Mar 26, 2021
6a8faba
[FIX] company in payment_mode_id domain
felipemotter Jul 16, 2022
1fe9f5e
[MIG] account_payment_partner: Migration to 16.0
ThomasBinsfeld Oct 11, 2022
d71fb73
[FIX] account_payment_partner: fix error in _reverse_moves
ramiadavid Jan 2, 2023
03a2911
Translated using Weblate (Croatian)
badbole Jan 4, 2023
b01a84c
[IMP] account_payment_partner: Make payment mode editable on journal …
pedrobaeza Oct 7, 2022
f55caa3
[IMP] account_payment_partner: Make payment mode editable on entry
pedrobaeza Jan 18, 2023
4cdda46
Update translation files
weblate Jan 25, 2023
48e41a2
Add pre_init_hook to add computed columns
dannyadair Feb 23, 2023
dce0e43
Translated using Weblate (Spanish)
Gelo-fl Apr 12, 2023
77d7947
[FIX] account_payment_partner: bad application of attributes on the f…
RodrigoBM Apr 13, 2023
bb47872
account_payment_partner: Fix computation of partner_bank_id
grindtildeath Jun 6, 2023
f66fbe3
Translated using Weblate (French)
remi-filament Jun 29, 2023
94f1b26
[FIX] account_payment_partner: fetchPreloadedData bug using selection…
ljsalvatierra-factorlibre Jul 26, 2023
34a88f3
[IMP] account_payment_partner: pre-commit auto fixes
miquelalzanillas Nov 22, 2023
6686a38
[MIG] account_payment_partner: Migration to 17.0
miquelalzanillas Nov 22, 2023
6b2d1f7
Translated using Weblate (Italian)
mymage Feb 13, 2024
102912c
[17.0][FIX] account_payment_partner: DeprecationWarning: XML declarat…
zuher83 May 27, 2024
680937b
Translated using Weblate (Swedish)
jakobkrabbe Jun 5, 2024
178fafd
[IMP] account_payment_partner: test performance improvement
josep-tecnativa Oct 16, 2023
c9afdec
[FIX] account_payment_partner: payment mode compute
ljsalvatierra-factorlibre Mar 19, 2024
0c0f50d
Translated using Weblate (Italian)
mymage Oct 17, 2024
fbc752b
[FIX] account_payment_partner: Error when salesperson tries to print …
CarlosRoca13 Aug 5, 2021
d98c555
[FIX] account_payment_partner: Fix tests compatibility (hr_expense + …
victoralmau Nov 19, 2024
548fb2f
[IMP] account_payment_partner: Remove dependancies on demo data on tests
etobella Dec 23, 2024
4a27533
[FIX] account_payment_partner: Fix tests
etobella Jan 15, 2025
c85ba3e
[IMP] account_payment_partner: pre-commit auto fixes
absal-smile Feb 7, 2025
71d749e
[MIG] account_payment_partner: Migration to 18.0
absal-smile Mar 26, 2025
24edf4b
[MIG] account_payment_partner: Migration to version 18.0
carlos-lopez-tecnativa Mar 26, 2025
57b318b
[IMP] account_payment_partner: Add a security group to display the de…
carlos-lopez-tecnativa Mar 26, 2025
53852a8
[REM] account_payment_partner: remove code related to account_banking…
carlos-lopez-tecnativa Apr 16, 2025
bf6cd19
[UPD] Update account_payment_partner.pot
Apr 16, 2025
8cb86ad
[BOT] post-merge updates
OCA-git-bot Apr 16, 2025
2335616
[18.0][FIX] : fix column_invisible in list view view_move_line_tree
Apr 25, 2025
23c87d4
[BOT] post-merge updates
OCA-git-bot Apr 26, 2025
b693fa0
[OU-ADD] account_payment_partner: add migration script for v18.0
remi-filament Aug 14, 2025
4e31f8a
[MIG] account_payment_partner: Migration to 19.0
bizzappdev Oct 1, 2025
82b3522
[DON'T MERGE] test-requirements.txt
bizzappdev Oct 1, 2025
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
143 changes: 143 additions & 0 deletions account_payment_partner/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=======================
Account Payment Partner
=======================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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%2Fbank--payment-lightgray.png?logo=github
:target: https://github.com/OCA/bank-payment/tree/19.0/account_payment_partner
:alt: OCA/bank-payment
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/bank-payment-19-0/bank-payment-19-0-account_payment_partner
: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/bank-payment&target_branch=19.0
:alt: Try me on Runboat

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

This module adds several fields:

- the *Supplier Payment Mode* and *Customer Payment Mode* on Partners,
- the *Payment Mode* on Invoices.
- the *Show bank account* on Payment Mode.
- the *# of digits for customer bank account* on Payment Mode.
- the *Bank account from journals* on Payment Mode.
- the *Payment mode* on Invoices Analysis.

On a Payment Order, in the wizard *Select Invoices to Pay*, the invoices
will be filtered per Payment Mode.

Allows to print in the invoice to which account number the payment (via
SEPA direct debit) is going to be charged so the customer knows that
information, but there are some customers that don't want that everyone
looking at the invoice sees the full account number (and even GDPR can
say a word about that), so that's the reason behind the several options.

**Table of contents**

.. contents::
:local:

Usage
=====

You are able to add a payment mode directly on a partner.

This payment mode is automatically associated to the invoice related to
the partner. This default value could be changed in a draft invoice.

When you create a payment order, only invoices related to chosen payment
mode are displayed.

Invoices without any payment mode are displayed too.

Changelog
=========

10.0.1.2.0 (2018-05-24)
-----------------------

- [IMP] Add options to show partner bank account in invoice report
(`#458 <https://github.com/OCA/bank-payment/issues/458>`__)

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-payment/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/bank-payment/issues/new?body=module:%20account_payment_partner%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
-------

* Akretion
* Tecnativa

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

- Alexis de Lattre <[email protected]>
- Raphaël Valyi
- Stefan Rijnhart (Therp)
- Alexandre Fayolle
- Stéphane Bidoul <[email protected]>
- Danimar Ribeiro
- Angel Moya <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Carlos Dauden
- Víctor Martínez

- `DynApps <https://www.dynapps.be>`__:

- Raf Ven <[email protected]>

- Marçal Isern <[email protected]>
- Miquel Alzanillas <[email protected]>

Other credits
-------------

The migration of this module from 18.0 to 19.0 was financially supported
by Agent ERP GmbH

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/bank-payment <https://github.com/OCA/bank-payment/tree/19.0/account_payment_partner>`_ project on GitHub.

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

from .hooks import pre_init_hook
from . import models
from . import reports
29 changes: 29 additions & 0 deletions account_payment_partner/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2014 Akretion - Alexis de Lattre <[email protected]>
# Copyright 2014 Tecnativa - Pedro M. Baeza
# Copyright 2018 Tecnativa - Carlos Dauden
# Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Account Payment Partner",
"version": "19.0.1.0.0",
"category": "Banking addons",
"license": "AGPL-3",
"summary": "Adds payment mode on partners and invoices",
"author": "Akretion, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/bank-payment",
"development_status": "Mature",
"depends": ["account_payment_mode"],
"data": [
"security/account_payment_partner_security.xml",
"views/res_partner_view.xml",
"views/account_move_view.xml",
"views/account_move_line.xml",
"views/account_payment_mode.xml",
"views/report_invoice.xml",
"reports/account_invoice_report_view.xml",
],
"demo": ["demo/partner_demo.xml"],
"installable": True,
"pre_init_hook": "pre_init_hook",
}
25 changes: 25 additions & 0 deletions account_payment_partner/demo/partner_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<function
model="ir.default"
name="set"
eval="(
'res.partner',
'supplier_payment_mode_id',
ref('account_payment_mode.payment_mode_outbound_ct1'),
False,
ref('base.main_company')
)"
/>
<function
model="ir.default"
name="set"
eval="(
'res.partner',
'customer_payment_mode_id',
ref('account_payment_mode.payment_mode_inbound_ct1'),
False,
ref('base.main_company')
)"
/>
</odoo>
22 changes: 22 additions & 0 deletions account_payment_partner/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import logging

from odoo.tools import sql

logger = logging.getLogger(__name__)


def pre_init_hook(env):
"""Prepare new payment_mode fields.

Add columns to avoid Memory error on an existing Odoo instance
with lots of data.

The payment_mode_id fields are introduced by this module and computed only
from each other or the also newly introduced supplier_payment_mode_id and
customer_payment_mode_id on res.partner, so they can stay NULL, nothing
to compute.
"""
if not sql.column_exists(env.cr, "account_move", "payment_mode_id"):
sql.create_column(env.cr, "account_move", "payment_mode_id", "int4")
if not sql.column_exists(env.cr, "account_move_line", "payment_mode_id"):
sql.create_column(env.cr, "account_move_line", "payment_mode_id", "int4")
Loading
Loading