Skip to content

Commit

Permalink
[ADD] account_payment_order_layout: new module to configure payment o…
Browse files Browse the repository at this point in the history
…rder layouts functionally
  • Loading branch information
alan196 committed Jul 6, 2023
1 parent 54d7d06 commit a116a9d
Show file tree
Hide file tree
Showing 19 changed files with 1,158 additions and 0 deletions.
101 changes: 101 additions & 0 deletions account_payment_order_layout/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
============================
Account Payment Order Layout
============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fbank--payment-lightgray.png?logo=github
:target: https://github.com/OCA/bank-payment/tree/15.0/account_payment_order_layout
: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-15-0/bank-payment-15-0-account_payment_order_layout
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/bank-payment&target_branch=15.0
:alt: Try me on Runboat

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

This module provides functionality to generate payment orders based on a layout that is created in a functional way.
This module allows you to define each field that the bank needs, making it easy to generate payment orders that
meet the specific requirements of different banks.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module you need to:

- Enter Account/Configuration/Management/Payment Mode Layout.
- Crate a new layout.
- Add one line for each field that the bank requires.
- If header or footer is neccesary, add it in the corresponding tab.
- Enter Account/Configuration/Management/Payment Mode.
- Create or select a payment mode.
- Select the layout created in the previous step.

Usage
=====

Once the payment mode layout is created and configured, you can generate a new payment order by following these steps:

1. Go to a payment order.
2. Click on the "Generate File" button.
3. The payment order file will be generated using the layout defined in the payment mode configuration.

Note: Make sure to configure the payment mode layout correctly to ensure that the payment order file is generated accurately.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/bank-payment/issues/new?body=module:%20account_payment_order_layout%0Aversion:%2015.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
~~~~~~~

* Jarsa

Contributors
~~~~~~~~~~~~

* `Jarsa <https://www.jarsa.com>`_:

* Alan Ramos <alan.ramos@jarsa.com.mx>

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/15.0/account_payment_order_layout>`_ 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 account_payment_order_layout/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 Jarsa
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
22 changes: 22 additions & 0 deletions account_payment_order_layout/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2023 Jarsa
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Account Payment Order Layout",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Jarsa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/bank-payment",
"development_status": "Beta",
"category": "Banking addons",
"depends": ["account_payment_order"],
"data": [
"views/account_payment_mode_layout_views.xml",
"views/account_payment_mode_layout_line_views.xml",
"views/account_payment_mode_views.xml",
"security/ir.model.access.csv",
"security/ir_rule_data.xml",
],
"demo": [],
"installable": True,
}
6 changes: 6 additions & 0 deletions account_payment_order_layout/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2023 Jarsa
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import account_payment_mode
from . import account_payment_mode_layout
from . import account_payment_order
10 changes: 10 additions & 0 deletions account_payment_order_layout/models/account_payment_mode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2023 Jarsa
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class AccountPaymentMode(models.Model):
_inherit = "account.payment.mode"

layout_id = fields.Many2one(comodel_name="account.payment.mode.layout")
Loading

0 comments on commit a116a9d

Please sign in to comment.