Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] account_payment_credit_card: Migration to version 16.0 #751

Merged
merged 21 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
eafa97e
account_payment_credit card: Migration to 11.0
Sudarshan1607 Aug 3, 2018
cd91f42
Changed manifest files for v11 modules
Sudarshan1607 Aug 3, 2018
bda7e29
update website value
Aug 4, 2018
b02199e
Improve code
Aug 4, 2018
6d26e5a
README
max3903 Aug 14, 2018
9ebdc38
Update account_payment_credit_card.pot
oca-travis Aug 14, 2018
a85d722
account_payment_credit_card: Fix contibutors (#196)
mgosai Aug 17, 2018
ac87c54
account_payment_credit_card v11 to v12
Nikul-Chaudhary Jan 31, 2019
9091705
account_payment_credit_card: development_status + Cleanup
max3903 Aug 2, 2019
4306b87
account_payment_credit_card 12.0.1.0.1
OCA-git-bot Aug 5, 2019
89be6a9
[MIG] Migration account_payment_credit_card v12 to v13
Nikul-Chaudhary Oct 1, 2019
67e5492
[14.0][MIG]Migrated account_payment_credit_card from v13 to v14
Freni-OSI Apr 2, 2021
1fd4a49
[UPD] Update account_payment_credit_card.pot
oca-travis Nov 27, 2021
3e7517d
Added translation using Weblate (Dutch)
bosd Feb 5, 2022
907e779
[FIX] a_payment_credit_card: fix '_post' signature
sebalix Feb 28, 2022
54256fe
[FIX] account_payment_credit_card: create all lines on batch
celm1990 Jun 10, 2022
d778bf7
Added translation using Weblate (Portuguese (Brazil))
douglascstd Mar 17, 2023
ea480f7
[UPD] README.rst
OCA-git-bot Sep 3, 2023
7e8d153
Added translation using Weblate (Spanish)
Ivorra78 Dec 18, 2023
0f86a81
[IMP] account_payment_credit_card: pre-commit stuff
carlos-lopez-tecnativa Jul 23, 2024
41f2c0c
[MIG] account_payment_credit_card: Migration to 16.0
carlos-lopez-tecnativa Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions account_payment_credit_card/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
====================
Credit Card Payments
====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:263b2ace78923cfef5795af035b7bd38381cce7073fd49a0e35ba65a022c7025
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Faccount--payment-lightgray.png?logo=github
:target: https://github.com/OCA/account-payment/tree/16.0/account_payment_credit_card
:alt: OCA/account-payment
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-payment-16-0/account-payment-16-0-account_payment_credit_card
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-payment&target_branch=16.0
:alt: Try me on Runboat

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

This module provides a way to record Credit Card purchases and to pay them the same way regular purchases are recorded (via Vendor Bills) and paid (via Vendor Payments).

By default, if vendor bills are used to record credit card purchases, the liability (AP) from the supplier/vendor must be moved to the credit card company via a manual journal entry.

Because a journal entry contains less information than a vendor bill, there may be a loss of information that affects book keeping accuracy and the ability to properly reconcile the AP amount when the credit card statement arrives and needs to be settled.
This method also requires an additional step not needed when a vendor bill is paid via bank or cash.

This module automates the creation of the manual journal entry required to move the AP to the credit card company, retains all information about the purchase in an invoice document, and leverages the standard purchase and payment workflow already in place for bank and cash payments.

It supports as many Credit Cards as are needed, configured in the same way an additional payment method would be (i.e. via the creation of a new journal).

To settle a Credit Card statement, the regular workflow to record a vendor payment is used – allowing the removal of charges not included in the statement.
Non-purchase transactions like fees for annual membership, balance transfers, cash advances and foreign transactions; as well as charges for late payments and returned checks; can be entered either as Vendor Invoices or manual Journal Entries as users elect.

Both of these methods will allow these items to be settled when making a payment to the credit card company.

This module also supports payment cancellation and re-entry (in the case a mistaken amount is entered) as well as refunds (where the purchase is returned and a credit from the credit card company will be issued).

**Table of contents**

.. contents::
:local:

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

* Go to Accounting > Configuration > Journals
* Create a new journal bank for your credit card
* Check the box ‘Transfer AP to Credit Card Company’ and set the ‘Credit Card Company’ field

Usage
=====

To use this module, you need to:

#. Go to Accounting > Purchases > Vendors Bills
#. Select an open bill and click on Register Payment
#. Select the credit card journal and validate the payment

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-payment/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/OCA/account-payment/issues/new?body=module:%20account_payment_credit_card%0Aversion:%2016.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
~~~~~~~

* Open Source Integrators

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

* `Open Source Integrators <https://www.opensourceintegrators.com>`_:

* Ray Carnes <rcarnes@ursainfosystems.com>
* Balaji Kannan <bkannan@opensourceintegrators.com>
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
* Sudarshan Kadalazhi <skadalazhi@opensourceintegrators.com>
* Freni Patel <fpatel@opensourceintegrators.com>

* Odoo Dev Team: DS, JA
* Nikul Chaudhary <nikulchaudhary2112@gmail.com>

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.

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

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-max3903|

This module is part of the `OCA/account-payment <https://github.com/OCA/account-payment/tree/16.0/account_payment_credit_card>`_ 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_credit_card/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2017 Open Source Integrators <http://www.opensourceintegrators.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
17 changes: 17 additions & 0 deletions account_payment_credit_card/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2017 Open Source Integrators <http://www.opensourceintegrators.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Credit Card Payments",
"summary": "Add support for credit card payments",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-payment",
"depends": ["account"],
"data": ["views/account_view.xml"],
"installable": True,
"development_status": "Beta",
"maintainers": ["max3903"],
}
52 changes: 52 additions & 0 deletions account_payment_credit_card/i18n/account_payment_credit_card.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_credit_card
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__partner_id
msgid "Credit Card Company"
msgstr ""

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__display_name
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move__display_name
msgid "Display Name"
msgstr ""

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__id
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move__id
msgid "ID"
msgstr ""

#. module: account_payment_credit_card
#: model:ir.model,name:account_payment_credit_card.model_account_journal
msgid "Journal"
msgstr ""

#. module: account_payment_credit_card
#: model:ir.model,name:account_payment_credit_card.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal____last_update
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__credit_card
msgid "Transfer AP to Credit Card Company"
msgstr ""
55 changes: 55 additions & 0 deletions account_payment_credit_card/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_credit_card
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-18 19:33+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__partner_id
msgid "Credit Card Company"
msgstr "Compañía de Tarjeta de Crédito"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__display_name
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__id
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move__id
msgid "ID"
msgstr "ID (identificación)"

#. module: account_payment_credit_card
#: model:ir.model,name:account_payment_credit_card.model_account_journal
msgid "Journal"
msgstr "Diario"

#. module: account_payment_credit_card
#: model:ir.model,name:account_payment_credit_card.model_account_move
msgid "Journal Entry"
msgstr "Entrada en Diario"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal____last_update
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move____last_update
msgid "Last Modified on"
msgstr "Última Modificación en"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__credit_card
msgid "Transfer AP to Credit Card Company"
msgstr "Transferir AP a la Compañía de la Tarjeta de Crédito"
55 changes: 55 additions & 0 deletions account_payment_credit_card/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_credit_card
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-02-05 11:40+0000\n"
"Last-Translator: Bosd <c5e2fd43-d292-4c90-9d1f-74ff3436329a@anonaddy.me>\n"
"Language-Team: none\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__partner_id
msgid "Credit Card Company"
msgstr "Credit Card Maatschappij"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__display_name
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move__display_name
msgid "Display Name"
msgstr "Weergave naam"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__id
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move__id
msgid "ID"
msgstr "ID"

#. module: account_payment_credit_card
#: model:ir.model,name:account_payment_credit_card.model_account_journal
msgid "Journal"
msgstr "Dagboek"

#. module: account_payment_credit_card
#: model:ir.model,name:account_payment_credit_card.model_account_move
msgid "Journal Entry"
msgstr "Boeking"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal____last_update
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move____last_update
msgid "Last Modified on"
msgstr "Laatst gewijzigd op"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__credit_card
msgid "Transfer AP to Credit Card Company"
msgstr "Verplaats de crediteurenrekening naar de Credit Card Maatschappij"
55 changes: 55 additions & 0 deletions account_payment_credit_card/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_credit_card
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-03-17 22:22+0000\n"
"Last-Translator: Douglas Custódio <douglascstd@yahoo.com>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__partner_id
msgid "Credit Card Company"
msgstr "Empresa de Cartão de Crédito"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__display_name
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move__display_name
msgid "Display Name"
msgstr "Nome exibido"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__id
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move__id
msgid "ID"
msgstr "ID"

#. module: account_payment_credit_card
#: model:ir.model,name:account_payment_credit_card.model_account_journal
msgid "Journal"
msgstr "Diário"

#. module: account_payment_credit_card
#: model:ir.model,name:account_payment_credit_card.model_account_move
msgid "Journal Entry"
msgstr "Lançamento de Diário"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal____last_update
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_move____last_update
msgid "Last Modified on"
msgstr "Última Modificação Em"

#. module: account_payment_credit_card
#: model:ir.model.fields,field_description:account_payment_credit_card.field_account_journal__credit_card
msgid "Transfer AP to Credit Card Company"
msgstr "Transferir AP para empresa de cartão de crédito"
5 changes: 5 additions & 0 deletions account_payment_credit_card/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2017 Open Source Integrators <http://www.opensourceintegrators.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import account_journal
from . import account_move
11 changes: 11 additions & 0 deletions account_payment_credit_card/models/account_journal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2017 Open Source Integrators <http://www.opensourceintegrators.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class AccountJournal(models.Model):
_inherit = "account.journal"

credit_card = fields.Boolean("Transfer AP to Credit Card Company")
partner_id = fields.Many2one("res.partner", "Credit Card Company")
Loading
Loading