Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
VoicuStefan2001 authored Nov 28, 2023
1 parent 724f463 commit f079bf4
Show file tree
Hide file tree
Showing 74 changed files with 2,408 additions and 0 deletions.
65 changes: 65 additions & 0 deletions deltatech_card_payment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
=============================
Deltatech Payment Method Card
=============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:79b1e2c95c019f0445d600e5330029e014c88bea31041cc00db60e02ae5ef2eb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/licence-OPL--1-blue.png
:target: https://www.odoo.com/documentation/master/legal/licenses.html
:alt: License: OPL-1
.. |badge3| image:: https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github
:target: https://github.com/dhongu/deltatech/tree/17.0/deltatech_card_payment
:alt: dhongu/deltatech

|badge1| |badge2| |badge3|

Features:
- add payment method card

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/dhongu/deltatech/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/dhongu/deltatech/issues/new?body=module:%20deltatech_card_payment%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
~~~~~~~

* Terrabit
* Dorin Hongu

Maintainers
~~~~~~~~~~~

.. |maintainer-dhongu| image:: https://github.com/dhongu.png?size=40px
:target: https://github.com/dhongu
:alt: dhongu

Current maintainer:

|maintainer-dhongu|

This module is part of the `dhongu/deltatech <https://github.com/dhongu/deltatech/tree/17.0/deltatech_card_payment>`_ project on GitHub.

You are welcome to contribute.
6 changes: 6 additions & 0 deletions deltatech_card_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# © 2008-2022 Deltatech
# Dorin Hongu <dhongu(@)gmail(.)com
# See README.rst file on addons root folder for license details


from . import models
20 changes: 20 additions & 0 deletions deltatech_card_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# © 2008-2021 Deltatech
# Dorin Hongu <dhongu(@)gmail(.)com
# See README.rst file on addons root folder for license details

{
"name": "Deltatech Payment Method Card",
"version": "17.0.1.0.1",
"author": "Terrabit, Dorin Hongu",
"website": "https://www.terrabit.ro",
"summary": "Deltatech Payment Method Card",
"category": "Generic Modules",
"depends": ["account"],
"license": "OPL-1",
"data": [
"data/account_data.xml",
],
"images": ["static/description/main_screenshot.png"],
"development_status": "Mature",
"maintainers": ["dhongu"],
}
Binary file not shown.
8 changes: 8 additions & 0 deletions deltatech_card_payment/data/account_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="account_payment_method_card_in" model="account.payment.method">
<field name="name">Card</field>
<field name="code">card</field>
<field name="payment_type">inbound</field>
</record>
</odoo>
1 change: 1 addition & 0 deletions deltatech_card_payment/i18n/ro.po
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

5 changes: 5 additions & 0 deletions deltatech_card_payment/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# © 2008-2022 Deltatech
# Dorin Hongu <dhongu(@)gmail(.)com
# See README.rst file on addons root folder for license details

from . import account_payment_method
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions deltatech_card_payment/models/account_payment_method.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# © 2015-2021 Deltatech
# See README.rst file on addons root folder for license details

from odoo import api, models


class AccountPaymentMethod(models.Model):
_inherit = "account.payment.method"

@api.model
def _get_payment_method_information(self):
res = super()._get_payment_method_information()
res["card"] = {"mode": "unique", "domain": [("type", "=", "bank")]}
return res
2 changes: 2 additions & 0 deletions deltatech_card_payment/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Features:
- add payment method card
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f079bf4

Please sign in to comment.