Skip to content

Commit a68ebcd

Browse files
committed
Merge PR #1570 into 18.0
Signed-off-by pedrobaeza
2 parents c667a24 + d821c64 commit a68ebcd

File tree

11 files changed

+697
-0
lines changed

11 files changed

+697
-0
lines changed
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
===============================================
2+
Account Payment Method Base + Payment Mode Glue
3+
===============================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:65e271a1a8e77aab74e08a9f6f520dca20aaaa534d7ebcdb29d8383054593d76
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbank--payment-lightgray.png?logo=github
20+
:target: https://github.com/OCA/bank-payment/tree/18.0/account_payment_method_base_mode
21+
:alt: OCA/bank-payment
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/bank-payment-18-0/bank-payment-18-0-account_payment_method_base_mode
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/bank-payment&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module is a glue module between **account_payment_method_base** and
32+
**account_payment_mode**.
33+
34+
In Odoo 18 the module ``account_payment_method_base`` introduces the
35+
canonical user interface for the model ``account.payment.method``,
36+
including:
37+
38+
- form view
39+
- list view
40+
- search view
41+
- menu entry
42+
43+
However ``account_payment_mode`` historically defined its own base views
44+
for the same model.
45+
46+
This results in two competing base view definitions.
47+
48+
This module rewires the views from ``account_payment_mode`` so they
49+
inherit from the views provided by ``account_payment_method_base``.
50+
51+
This preserves compatibility with existing modules that inherit:
52+
53+
- ``account_payment_mode.account_payment_method_form``
54+
- ``account_payment_mode.account_payment_method_tree``
55+
- ``account_payment_mode.account_payment_method_search``
56+
57+
while ensuring that ``account_payment_method_base`` remains the
58+
canonical provider of the payment method UI.
59+
60+
**Table of contents**
61+
62+
.. contents::
63+
:local:
64+
65+
Configuration
66+
=============
67+
68+
No configuration is required.
69+
70+
The module automatically rewires the view inheritance between
71+
``account_payment_method_base`` and ``account_payment_mode``.
72+
73+
Usage
74+
=====
75+
76+
After installing the module, the views defined in
77+
``account_payment_mode`` will inherit from the base views provided by
78+
``account_payment_method_base``.
79+
80+
No functional changes are introduced.
81+
82+
The module only ensures a consistent view inheritance chain between the
83+
two addons and keeps compatibility with downstream modules that inherit
84+
the original view XML IDs from ``account_payment_mode``.
85+
86+
Bug Tracker
87+
===========
88+
89+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-payment/issues>`_.
90+
In case of trouble, please check there if your issue has already been reported.
91+
If you spotted it first, help us to smash it by providing a detailed and welcomed
92+
`feedback <https://github.com/OCA/bank-payment/issues/new?body=module:%20account_payment_method_base_mode%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
93+
94+
Do not contact contributors directly about support or help with technical issues.
95+
96+
Credits
97+
=======
98+
99+
Authors
100+
-------
101+
102+
* Therp BV
103+
104+
Contributors
105+
------------
106+
107+
- Nikos Tsirintanis ntsirintanis@therp.nl (Therp BV)
108+
109+
Maintainers
110+
-----------
111+
112+
This module is maintained by the OCA.
113+
114+
.. image:: https://odoo-community.org/logo.png
115+
:alt: Odoo Community Association
116+
:target: https://odoo-community.org
117+
118+
OCA, or the Odoo Community Association, is a nonprofit organization whose
119+
mission is to support the collaborative development of Odoo features and
120+
promote its widespread use.
121+
122+
This module is part of the `OCA/bank-payment <https://github.com/OCA/bank-payment/tree/18.0/account_payment_method_base_mode>`_ project on GitHub.
123+
124+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_payment_method_base_mode/__init__.py

Whitespace-only changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2026 Therp BV <https://therp.nl>.
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
3+
{
4+
"name": "Account Payment Method Base + Payment Mode Glue",
5+
"summary": "Glue module for base views",
6+
"version": "18.0.1.0.0",
7+
"license": "AGPL-3",
8+
"author": "Therp BV, Odoo Community Association (OCA)",
9+
"website": "https://github.com/OCA/bank-payment",
10+
"depends": [
11+
"account_payment_mode",
12+
"account_payment_method_base",
13+
],
14+
"data": [
15+
"views/account_payment_method.xml",
16+
],
17+
"installable": True,
18+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
No configuration is required.
2+
3+
The module automatically rewires the view inheritance between
4+
`account_payment_method_base` and `account_payment_mode`.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Nikos Tsirintanis <ntsirintanis@therp.nl> (Therp BV)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
This module is a glue module between **account_payment_method_base**
2+
and **account_payment_mode**.
3+
4+
In Odoo 18 the module `account_payment_method_base` introduces the
5+
canonical user interface for the model `account.payment.method`,
6+
including:
7+
8+
- form view
9+
- list view
10+
- search view
11+
- menu entry
12+
13+
However `account_payment_mode` historically defined its own base
14+
views for the same model.
15+
16+
This results in two competing base view definitions.
17+
18+
This module rewires the views from `account_payment_mode`
19+
so they inherit from the views provided by
20+
`account_payment_method_base`.
21+
22+
This preserves compatibility with existing modules that inherit:
23+
24+
- `account_payment_mode.account_payment_method_form`
25+
- `account_payment_mode.account_payment_method_tree`
26+
- `account_payment_mode.account_payment_method_search`
27+
28+
while ensuring that `account_payment_method_base` remains the
29+
canonical provider of the payment method UI.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
After installing the module, the views defined in
2+
`account_payment_mode` will inherit from the base views provided by
3+
`account_payment_method_base`.
4+
5+
No functional changes are introduced.
6+
7+
The module only ensures a consistent view inheritance chain between
8+
the two addons and keeps compatibility with downstream modules that
9+
inherit the original view XML IDs from `account_payment_mode`.
9.23 KB
Loading

0 commit comments

Comments
 (0)