Skip to content

Commit

Permalink
G2P-776: Added Dynamic mixin for edit button disable and merge the ch…
Browse files Browse the repository at this point in the history
…anges
  • Loading branch information
Dibik committed Sep 29, 2023
2 parents 16ae9a3 + a20c8b4 commit 4ee32ef
Show file tree
Hide file tree
Showing 32 changed files with 1,731 additions and 206 deletions.
9 changes: 3 additions & 6 deletions g2p_payment_interop_layer/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
OpenG2P Program Payment (Payment Interoperability Layer)
========================================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fe18b738e017e9535337e8da4d68a5c05a1c79cc3ff343287c960a5b4edd6f29
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
Expand All @@ -17,7 +14,7 @@ OpenG2P Program Payment (Payment Interoperability Layer)
:target: https://github.com/OpenG2P/openg2p-program/tree/15.0-develop/g2p_payment_interop_layer
:alt: OpenG2P/openg2p-program

|badge1| |badge2|
|badge1| |badge2|

G2P Payment Payment Interoperability Layer Payment Manager

Expand All @@ -36,7 +33,7 @@ Bug Tracker

Bugs are tracked on `GitHub Issues <https://github.com/OpenG2P/openg2p-program/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
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OpenG2P/openg2p-program/issues/new?body=module:%20g2p_payment_interop_layer%0Aversion:%2015.0-develop%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.
Expand Down
3 changes: 1 addition & 2 deletions g2p_payment_interop_layer/models/payment_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ def send_payments_async(self, batches):
)
continue

for pay in batch.payment_ids:
pay.state = "sent"
batch.payment_ids.write({"state": "sent"})

paid_counter = 0
for i, payee_result in enumerate(jsonResponse["payeeResults"]):
Expand Down
28 changes: 13 additions & 15 deletions g2p_payment_interop_layer/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<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>OpenG2P Program Payment (Payment Interoperability Layer)</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 @@ -366,10 +366,8 @@ <h1 class="title">OpenG2P Program Payment (Payment Interoperability Layer)</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:fe18b738e017e9535337e8da4d68a5c05a1c79cc3ff343287c960a5b4edd6f29
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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-program/tree/15.0-develop/g2p_payment_interop_layer"><img alt="OpenG2P/openg2p-program" src="https://img.shields.io/badge/github-OpenG2P%2Fopeng2p--program-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-program/tree/15.0-develop/g2p_payment_interop_layer"><img alt="OpenG2P/openg2p-program" src="https://img.shields.io/badge/github-OpenG2P%2Fopeng2p--program-lightgray.png?logo=github" /></a></p>
<p>G2P Payment Payment Interoperability Layer Payment Manager</p>
<div class="admonition important">
<p class="first admonition-title">Important</p>
Expand All @@ -380,32 +378,32 @@ <h1 class="title">OpenG2P Program Payment (Payment Interoperability Layer)</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="#maintainers" id="id4">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="#maintainers" id="toc-entry-4">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
<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-program/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
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OpenG2P/openg2p-program/issues/new?body=module:%20g2p_payment_interop_layer%0Aversion:%2015.0-develop%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="maintainers">
<h2><a class="toc-backref" href="#id4">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/OpenG2P/openg2p-program/tree/15.0-develop/g2p_payment_interop_layer">OpenG2P/openg2p-program</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>
</div>
Expand Down
9 changes: 3 additions & 6 deletions g2p_payment_phee/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
OpenG2P Program Payment (Payment Hub EE)
========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4f3e27276125a2e6f7d6dd8d7365813c93b14e7a95bbf33b6297cdca617ebe9c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
Expand All @@ -17,7 +14,7 @@ OpenG2P Program Payment (Payment Hub EE)
:target: https://github.com/OpenG2P/openg2p-program/tree/15.0-develop/g2p_payment_phee
:alt: OpenG2P/openg2p-program

|badge1| |badge2|
|badge1| |badge2|

G2P Payment Hub EE Payment Manager

Expand All @@ -36,7 +33,7 @@ Bug Tracker

Bugs are tracked on `GitHub Issues <https://github.com/OpenG2P/openg2p-program/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
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OpenG2P/openg2p-program/issues/new?body=module:%20g2p_payment_phee%0Aversion:%2015.0-develop%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.
Expand Down
139 changes: 137 additions & 2 deletions g2p_payment_phee/i18n/g2p_payment_phee.pot
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ msgstr ""
msgid "<span class=\"text-muted\">Default username</span>"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,help:g2p_payment_phee.field_g2p_program_payment_manager_phee__auth_token
msgid "A JWT"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.actions.act_window,help:g2p_payment_phee.action_payment_manager_phee
msgid "Add a Payment Manager!"
Expand Down Expand Up @@ -103,6 +108,36 @@ msgstr ""
msgid "Automatically Create Batch"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields.selection,name:g2p_payment_phee.selection__g2p_program_payment_manager_phee__payee_id_type__bank_acc_no
msgid "Bank Account Number"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "Batch Parameters"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__batch_request_timeout
msgid "Batch Request Timeout"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__batch_purpose_header
msgid "Batch Transaction Purpose Header"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__batch_type_header
msgid "Batch Transaction Type Header"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,help:g2p_payment_phee.field_g2p_program_payment_manager_phee__batch_request_timeout
msgid "Batch request timeout in seconds"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.actions.act_window,help:g2p_payment_phee.action_payment_manager_phee
msgid "Click the create button to enter a new Payment Hub EE payment manager."
Expand Down Expand Up @@ -144,14 +179,24 @@ msgstr ""
msgid "Display Name"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields.selection,name:g2p_payment_phee.selection__g2p_program_payment_manager_phee__payee_id_type__email
msgid "Email"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "Enter the Manager Name..."
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__file_name
msgid "Filename"
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__file_name_prefix
msgid "Filename Prefix"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "Get CSV from Attachments"
msgstr ""

#. module: g2p_payment_phee
Expand All @@ -165,11 +210,21 @@ msgstr ""
msgid "Group By"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields.selection,name:g2p_payment_phee.selection__g2p_program_payment_manager_phee__payee_id_type__bank_acc_iban
msgid "IBAN"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__id
msgid "ID"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "ID Type for Payee ID"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee____last_update
msgid "Last Modified on"
Expand All @@ -185,11 +240,26 @@ msgstr ""
msgid "Last Updated on"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,help:g2p_payment_phee.field_g2p_program_payment_manager_phee__make_csv_at_prepare
msgid "Make CSV files as attachemnts during Preparation"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__make_csv_at_prepare
msgid "Make Csv At Prepare"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__name
msgid "Manager Name"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__max_batch_size
msgid "Max Batch Size"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "Name:"
Expand All @@ -201,6 +271,46 @@ msgstr ""
msgid "Password"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__reg_id_type_for_payee_id
msgid "Payee DFSP ID Type"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__payee_id_type
msgid "Payee ID Field"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "Payee ID Type Rewritten"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__payee_id_type_to_send
msgid "Payee Id Type To Send"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__payer_id
msgid "Payer"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__payer_id_type
msgid "Payer Id Type"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "Payer Identifier"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "Payer Identifier Type"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__payment_endpoint_url
#: model:ir.model.fields,field_description:g2p_payment_phee.field_res_config_settings__default_payment_endpoint_url
Expand Down Expand Up @@ -249,6 +359,21 @@ msgstr ""
msgid "Payment Managers"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__payment_mode
msgid "Payment Mode"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.view_payment_manager_phee_form
msgid "Payment Parameters"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields.selection,name:g2p_payment_phee.selection__g2p_program_payment_manager_phee__payee_id_type__phone
msgid "Phone"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__program_id
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.payment_manager_phee_filter
Expand All @@ -260,6 +385,11 @@ msgstr ""
msgid "Program:"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields.selection,name:g2p_payment_phee.selection__g2p_program_payment_manager_phee__payee_id_type__reg_id
msgid "Registrant ID"
msgstr ""

#. module: g2p_payment_phee
#: model_terms:ir.ui.view,arch_db:g2p_payment_phee.payment_manager_phee_filter
msgid "Search Payment Hub EE Payment Manager"
Expand Down Expand Up @@ -293,6 +423,11 @@ msgstr ""
msgid "There are no new payments issued!"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,help:g2p_payment_phee.field_g2p_program_payment_manager_phee__payee_id_type_to_send
msgid "This will be replaced for the payee ID type"
msgstr ""

#. module: g2p_payment_phee
#: model:ir.model.fields,field_description:g2p_payment_phee.field_g2p_program_payment_manager_phee__username
#: model:ir.model.fields,field_description:g2p_payment_phee.field_res_config_settings__default_username
Expand Down
Loading

0 comments on commit 4ee32ef

Please sign in to comment.