Skip to content

Commit

Permalink
Update project to the new style
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremi committed Feb 15, 2024
1 parent 00f5e3d commit f2a2f4a
Show file tree
Hide file tree
Showing 89 changed files with 515 additions and 479 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[g2p_bank](g2p_bank/) | 15.0.1.2.0 | | G2P Registry: Bank Details
[g2p_bank_rest_api](g2p_bank_rest_api/) | 15.0.1.2.0 | | G2P Registry: Bank Details Rest API
[g2p_registry_addl_info](g2p_registry_addl_info/) | 15.0.1.2.0 | | G2P Registry: Additional Info
[g2p_registry_addl_info_rest_api](g2p_registry_addl_info_rest_api/) | 15.0.1.2.0 | | G2P Registry: Additional Info REST API
[g2p_registry_base](g2p_registry_base/) | 15.0.1.2.0 | | G2P Registry: Base
[g2p_registry_group](g2p_registry_group/) | 15.0.1.2.0 | | G2P Registry: Groups
[g2p_registry_individual](g2p_registry_individual/) | 15.0.1.2.0 | | G2P Registry: Individual
[g2p_registry_membership](g2p_registry_membership/) | 15.0.1.2.0 | | G2P Registry: Membership
[g2p_registry_rest_api](g2p_registry_rest_api/) | 15.0.1.2.0 | | G2P Registry: Rest API
[g2p_registry_rest_api_extension_demo](g2p_registry_rest_api_extension_demo/) | 15.0.1.2.0 | | G2P Registry: Rest API Extension Demo
[g2p_bank](g2p_bank/) | 17.0.1.0.0 | | G2P Registry: Bank Details
[g2p_bank_rest_api](g2p_bank_rest_api/) | 17.0.1.0.0 | | G2P Registry: Bank Details Rest API
[g2p_registry_addl_info](g2p_registry_addl_info/) | 17.0.1.0.0 | | G2P Registry: Additional Info
[g2p_registry_addl_info_rest_api](g2p_registry_addl_info_rest_api/) | 17.0.1.0.0 | | G2P Registry: Additional Info REST API
[g2p_registry_base](g2p_registry_base/) | 17.0.1.0.0 | | G2P Registry: Base
[g2p_registry_group](g2p_registry_group/) | 17.0.1.0.0 | | G2P Registry: Groups
[g2p_registry_individual](g2p_registry_individual/) | 17.0.1.0.0 | | G2P Registry: Individual
[g2p_registry_membership](g2p_registry_membership/) | 17.0.1.0.0 | | G2P Registry: Membership
[g2p_registry_rest_api](g2p_registry_rest_api/) | 17.0.1.0.0 | | G2P Registry: Rest API
[g2p_registry_rest_api_extension_demo](g2p_registry_rest_api_extension_demo/) | 17.0.1.0.0 | | G2P Registry: Rest API Extension Demo

[//]: # (end addons)

Expand Down
27 changes: 14 additions & 13 deletions g2p_bank/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ G2P Registry: Bank Details
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/github-OpenG2P%2Fopeng2p--registry-lightgray.png?logo=github
:target: https://github.com/OpenG2P/openg2p-registry/tree/17.0-develop/g2p_bank
:alt: OpenG2P/openg2p-registry
.. |badge2| image:: https://img.shields.io/badge/github-openg2p%2Fopeng2p--registry-lightgray.png?logo=github
:target: https://github.com/openg2p/openg2p-registry/tree/17.0/g2p_bank
:alt: openg2p/openg2p-registry

|badge1| |badge2|

Expand All @@ -34,35 +34,36 @@ G2P Registry Bank Details
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OpenG2P/openg2p-registry/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/openg2p/openg2p-registry/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/OpenG2P/openg2p-registry/issues/new?body=module:%20g2p_bank%0Aversion:%2017.0-develop%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/openg2p/openg2p-registry/issues/new?body=module:%20g2p_bank%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
~~~~~~~
-------

* OpenG2P

Contributors
~~~~~~~~~~~~
------------

`OpenSPP <https://openspp.org>`__ donated the original code to the project.
`OpenSPP <https://openspp.org>`__ donated the original code to the
project.

Contributors include:

* Edwin Gonzales (`Newlogic <https://newlogic.com>`__)
* Jeremi Joslin (`Newlogic <https://newlogic.com>`__)
* Michael Gonzales (`Newlogic <https://newlogic.com>`__)
- Edwin Gonzales (`Newlogic <https://newlogic.com>`__)
- Jeremi Joslin (`Newlogic <https://newlogic.com>`__)
- Michael Gonzales (`Newlogic <https://newlogic.com>`__)

Maintainers
~~~~~~~~~~~
-----------

This module is part of the `OpenG2P/openg2p-registry <https://github.com/OpenG2P/openg2p-registry/tree/17.0-develop/g2p_bank>`_ project on GitHub.
This module is part of the `openg2p/openg2p-registry <https://github.com/openg2p/openg2p-registry/tree/17.0/g2p_bank>`_ project on GitHub.

You are welcome to contribute.
3 changes: 3 additions & 0 deletions g2p_bank/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
7 changes: 7 additions & 0 deletions g2p_bank/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[OpenSPP](https://openspp.org) donated the original code to the project.

Contributors include:

- Edwin Gonzales ([Newlogic](https://newlogic.com))
- Jeremi Joslin ([Newlogic](https://newlogic.com))
- Michael Gonzales ([Newlogic](https://newlogic.com))
7 changes: 0 additions & 7 deletions g2p_bank/readme/CONTRIBUTORS.rst

This file was deleted.

File renamed without changes.
39 changes: 20 additions & 19 deletions g2p_bank/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>G2P Registry: Bank Details</title>
<style type="text/css">

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.

See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/

Expand Down Expand Up @@ -369,7 +369,7 @@ <h1 class="title">G2P Registry: Bank Details</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b887bf6b7fea40f1d71978d9aabe450571a6ac19fcf8426c223cec1016d37f38
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external" href="https://github.com/OpenG2P/openg2p-registry/tree/17.0-develop/g2p_bank"><img alt="OpenG2P/openg2p-registry" src="https://img.shields.io/badge/github-OpenG2P%2Fopeng2p--registry-lightgray.png?logo=github" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="https://github.com/openg2p/openg2p-registry/tree/17.0/g2p_bank"><img alt="openg2p/openg2p-registry" src="https://img.shields.io/badge/github-openg2p%2Fopeng2p--registry-lightgray.png?logo=github" /></a></p>
<p>G2P Registry Bank Details</p>
<div class="admonition important">
<p class="first admonition-title">Important</p>
Expand All @@ -380,34 +380,35 @@ <h1 class="title">G2P Registry: Bank Details</h1>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id2">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id3">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id5">Maintainers</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OpenG2P/openg2p-registry/issues">GitHub Issues</a>.
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/openg2p/openg2p-registry/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OpenG2P/openg2p-registry/issues/new?body=module:%20g2p_bank%0Aversion:%2017.0-develop%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/openg2p/openg2p-registry/issues/new?body=module:%20g2p_bank%0Aversion:%2017.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>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id2">Credits</a></h1>
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id3">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<ul class="simple">
<li>OpenG2P</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id4">Contributors</a></h2>
<p><a class="reference external" href="https://openspp.org">OpenSPP</a> donated the original code to the project.</p>
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<p><a class="reference external" href="https://openspp.org">OpenSPP</a> donated the original code to the
project.</p>
<p>Contributors include:</p>
<ul class="simple">
<li>Edwin Gonzales (<a class="reference external" href="https://newlogic.com">Newlogic</a>)</li>
Expand All @@ -416,8 +417,8 @@ <h2><a class="toc-backref" href="#id4">Contributors</a></h2>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id5">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/OpenG2P/openg2p-registry/tree/17.0-develop/g2p_bank">OpenG2P/openg2p-registry</a> project on GitHub.</p>
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/openg2p/openg2p-registry/tree/17.0/g2p_bank">openg2p/openg2p-registry</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion g2p_bank/tests/test_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class BankTest(TransactionCase):
@classmethod
def setUpClass(cls):
super(BankTest, cls).setUpClass()
super().setUpClass()

# Initial Setup of Variables
cls.registrant_1 = cls.env["res.partner"].create(
Expand Down
16 changes: 8 additions & 8 deletions g2p_bank_rest_api/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ G2P Registry: Bank Details Rest API
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/github-OpenG2P%2Fopeng2p--registry-lightgray.png?logo=github
:target: https://github.com/OpenG2P/openg2p-registry/tree/15.0-develop/g2p_bank_rest_api
:alt: OpenG2P/openg2p-registry
.. |badge2| image:: https://img.shields.io/badge/github-openg2p%2Fopeng2p--registry-lightgray.png?logo=github
:target: https://github.com/openg2p/openg2p-registry/tree/17.0/g2p_bank_rest_api
:alt: openg2p/openg2p-registry

|badge1| |badge2|

Expand All @@ -34,24 +34,24 @@ G2P Registry Bank Details Rest API
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OpenG2P/openg2p-registry/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/openg2p/openg2p-registry/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/OpenG2P/openg2p-registry/issues/new?body=module:%20g2p_bank_rest_api%0Aversion:%2015.0-develop%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/openg2p/openg2p-registry/issues/new?body=module:%20g2p_bank_rest_api%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
~~~~~~~
-------

* OpenG2P

Maintainers
~~~~~~~~~~~
-----------

This module is part of the `OpenG2P/openg2p-registry <https://github.com/OpenG2P/openg2p-registry/tree/15.0-develop/g2p_bank_rest_api>`_ project on GitHub.
This module is part of the `openg2p/openg2p-registry <https://github.com/openg2p/openg2p-registry/tree/17.0/g2p_bank_rest_api>`_ project on GitHub.

You are welcome to contribute.
4 changes: 1 addition & 3 deletions g2p_bank_rest_api/models/group_membership.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List, Optional

from odoo.addons.g2p_registry_rest_api.models import group_membership

from . import bank_details
Expand All @@ -8,4 +6,4 @@
class GroupMembersInfoIn(
group_membership.GroupMembersInfoIn, extends=group_membership.GroupMembersInfoIn
):
bank_ids: Optional[List[bank_details.BankDetailsIn]]
bank_ids: list[bank_details.BankDetailsIn] | None
6 changes: 2 additions & 4 deletions g2p_bank_rest_api/models/registrant.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List, Optional

from odoo.addons.g2p_registry_rest_api.models import registrant

from . import bank_details
Expand All @@ -8,10 +6,10 @@
class RegistrantAddlInfoIn(
registrant.RegistrantInfoIn, extends=registrant.RegistrantInfoIn
):
bank_ids: Optional[List[bank_details.BankDetailsIn]]
bank_ids: list[bank_details.BankDetailsIn] | None


class RegistrantAddlInfoOut(
registrant.RegistrantInfoOut, extends=registrant.RegistrantInfoOut
):
bank_ids: Optional[List[bank_details.BankDetailsOut]]
bank_ids: list[bank_details.BankDetailsOut] | None
3 changes: 3 additions & 0 deletions g2p_bank_rest_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
File renamed without changes.
2 changes: 1 addition & 1 deletion g2p_bank_rest_api/services/process_group_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ProcessGroupMixin(AbstractComponent):
_inherit = "process_group.rest.mixin"

def _process_group(self, group_info):
res = super(ProcessGroupMixin, self)._process_group(group_info)
res = super()._process_group(group_info)
if group_info.dict().get("bank_ids", None):
res["bank_ids"] = self._process_bank_ids(group_info)
return res
2 changes: 1 addition & 1 deletion g2p_bank_rest_api/services/process_individual_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ProcessIndividualMixin(AbstractComponent):
_inherit = "process_individual.rest.mixin"

def _process_individual(self, individual):
res = super(ProcessIndividualMixin, self)._process_individual(individual)
res = super()._process_individual(individual)
if individual.dict().get("bank_ids", None):
res["bank_ids"] = self._process_bank_ids(individual)
return res
Expand Down
Loading

0 comments on commit f2a2f4a

Please sign in to comment.