Skip to content

Commit abcedd2

Browse files
committed
[ADD] account_in_payment
1 parent 1df7731 commit abcedd2

14 files changed

+757
-0
lines changed

account_in_payment/README.rst

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
==================
2+
Account In Payment
3+
==================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:f31a0569902b33f0403cc89486dd058cc1ccecaecfe2b9c38d6201d614f55981
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github
20+
:target: https://github.com/OCA/account-reconcile/tree/16.0/account_in_payment
21+
:alt: OCA/account-reconcile
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/account-reconcile-16-0/account-reconcile-16-0-account_in_payment
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-reconcile&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module enables in-payment management for all your accounting.
32+
33+
Should not be installed with Enterprise Edition accounting.
34+
35+
**Table of contents**
36+
37+
.. contents::
38+
:local:
39+
40+
Bug Tracker
41+
===========
42+
43+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-reconcile/issues>`_.
44+
In case of trouble, please check there if your issue has already been reported.
45+
If you spotted it first, help us to smash it by providing a detailed and welcomed
46+
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_in_payment%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
47+
48+
Do not contact contributors directly about support or help with technical issues.
49+
50+
Credits
51+
=======
52+
53+
Authors
54+
-------
55+
56+
* Dixmit
57+
58+
Contributors
59+
------------
60+
61+
- Enric Tobella (``Dixmit <https://www.dixmit.com/>``\ \_\_)
62+
63+
Maintainers
64+
-----------
65+
66+
This module is maintained by the OCA.
67+
68+
.. image:: https://odoo-community.org/logo.png
69+
:alt: Odoo Community Association
70+
:target: https://odoo-community.org
71+
72+
OCA, or the Odoo Community Association, is a nonprofit organization whose
73+
mission is to support the collaborative development of Odoo features and
74+
promote its widespread use.
75+
76+
This module is part of the `OCA/account-reconcile <https://github.com/OCA/account-reconcile/tree/16.0/account_in_payment>`_ project on GitHub.
77+
78+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_in_payment/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

account_in_payment/__manifest__.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2024 Dixmit
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Account In Payment",
6+
"summary": """
7+
This module enables in-payment mode for your accounting""",
8+
"version": "16.0.1.0.0",
9+
"license": "AGPL-3",
10+
"author": "Dixmit,Odoo Community Association (OCA)",
11+
"website": "https://github.com/OCA/account-reconcile",
12+
"depends": ["account_reconcile_oca"],
13+
"data": [],
14+
"demo": [],
15+
}

account_in_payment/i18n/it.po

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_in_payment
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2024-08-16 09:58+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 5.6.2\n"
18+
19+
#. module: account_in_payment
20+
#: model:ir.model,name:account_in_payment.model_account_move
21+
msgid "Journal Entry"
22+
msgstr "Registrazione contabile"

account_in_payment/i18n/pt.po

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_in_payment
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2024-08-24 23:28+0000\n"
10+
"Last-Translator: Peter Romão <peterromao@yahoo.co.uk>\n"
11+
"Language-Team: none\n"
12+
"Language: pt\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
17+
"X-Generator: Weblate 5.6.2\n"
18+
19+
#. module: account_in_payment
20+
#: model:ir.model,name:account_in_payment.model_account_move
21+
msgid "Journal Entry"
22+
msgstr "Lançamento de Diário"

account_in_payment/i18n/pt_BR.po

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * account_in_payment
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2024-09-05 19:06+0000\n"
10+
"Last-Translator: Antônio Neto <netosjb@yahoo.com.br>\n"
11+
"Language-Team: none\n"
12+
"Language: pt_BR\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
17+
"X-Generator: Weblate 5.6.2\n"
18+
19+
#. module: account_in_payment
20+
#: model:ir.model,name:account_in_payment.model_account_move
21+
msgid "Journal Entry"
22+
msgstr "Lançamento de Diário"

account_in_payment/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import account_move
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2024 Dixmit
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import api, models
5+
from odoo.tools import config
6+
7+
8+
class AccountMove(models.Model):
9+
10+
_inherit = "account.move"
11+
12+
@api.model
13+
def _get_invoice_in_payment_state(self):
14+
"""
15+
We override this method to change the state of the invoice to in_payment
16+
when the payment is created from the invoice.
17+
"""
18+
if config["test_enable"] and not self._context.get(
19+
"test_get_invoice_in_payment_state"
20+
):
21+
return super()._get_invoice_in_payment_state()
22+
return "in_payment"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Enric Tobella (`Dixmit <https://www.dixmit.com/>`__)
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This module enables in-payment management for all your accounting.
2+
3+
Should not be installed with Enterprise Edition accounting.
9.23 KB
Loading

0 commit comments

Comments
 (0)