Skip to content

[17.0][MIG] l10n_br_account_due_list #3756

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

Open
wants to merge 31 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f41bd25
[ADD] l10n_br_account_due_list module
renatonlima Sep 28, 2021
550c366
[UPD] Update l10n_br_account_due_list.pot
oca-travis Sep 30, 2021
6353f1e
[UPD] README.rst
OCA-git-bot Sep 30, 2021
b43e0d7
l10n_br_account_due_list 12.0.2.0.0
OCA-git-bot Sep 30, 2021
616e683
[MIG] l10n_br_account_due_list: Migration to 13.0
rvalyi Oct 18, 2021
ecfcb58
[UPD] Update l10n_br_account_due_list.pot
oca-travis Oct 18, 2021
a25c0fa
[UPD] README.rst
OCA-git-bot Oct 18, 2021
275ff93
[MIG] l10n_br_account_due_list: Migration to 14.0
rvalyi Oct 18, 2021
4055697
[UPD] Update l10n_br_account_due_list.pot
oca-travis Oct 19, 2021
a6c9660
[UPD] README.rst
OCA-git-bot Oct 19, 2021
11fa097
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Nov 9, 2021
067062c
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jul 28, 2022
a5e76a6
[ADD] receivable and payable tests
rvalyi Dec 18, 2022
266f59d
[UPD] README.rst
OCA-git-bot Dec 22, 2022
bd87392
l10n_br_account_due_list 14.0.1.0.1
OCA-git-bot Dec 22, 2022
20280b5
[REF] test cleanup
rvalyi Dec 23, 2022
a2786e4
l10n_br_account_due_list 14.0.1.0.2
OCA-git-bot Dec 26, 2022
8ed1587
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
a1270f4
[MIG][l10n_br_account_due_list] Bump module version to 16.0.1.0.0
mileo Oct 28, 2022
8e9e781
[MIG][l10n_br_account_due_list] Adapt fields to v16 models
mileo Oct 28, 2022
f51bff1
[MIG] update tests
rvalyi Dec 23, 2022
9781ab7
[UPD] Update l10n_br_account_due_list.pot
Jan 31, 2023
5c43256
[UPD] README.rst
OCA-git-bot Jan 31, 2023
75a7244
Added translation using Weblate (Spanish)
Ivorra78 Aug 6, 2023
8df4186
Translated using Weblate (Spanish)
Ivorra78 Aug 6, 2023
0aec640
[UPD] README.rst
OCA-git-bot Sep 3, 2023
5610223
Update translation files
weblate Oct 9, 2023
71bd2b8
copier update repository
antoniospneto Sep 4, 2024
65f8ce3
[BOT] post-merge updates
OCA-git-bot Sep 5, 2024
4ab969c
[MIG] l10n_br_account_due_list: Migration to 17.0
marcelsavegnago Apr 28, 2025
ef141b4
[MIG] l10n_br_coa: Migration to 17.0 - (tests)
marcelsavegnago Apr 28, 2025
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
132 changes: 132 additions & 0 deletions l10n_br_account_due_list/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
==========================
Brazilian Account Due List
==========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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%2Fl10n--brazil-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-brazil/tree/17.0/l10n_br_account_due_list
:alt: OCA/l10n-brazil
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-brazil-17-0/l10n-brazil-17-0-l10n_br_account_due_list
: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/l10n-brazil&target_branch=17.0
:alt: Try me on Runboat

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

This module creates the financial_move_line_ids field to list the
payable or receivable account move line on invoices.

**Table of contents**

.. contents::
:local:

Installation
============

To install this module, you need to:

- do this ...

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

This module does not need any configuration.

Usage
=====

In the invoice form view, there will be two tabs:

- Receivable in the case of customer invoices and payable in the case
of supplier invoices:

|image|

- Payments with list of invoice payments:

|image1|

.. |image| image:: https://raw.githubusercontent.com/OCA/l10n-brazil/17.0/l10n_br_account_due_list/static/img/l10n_br_account_due_list_receivable.png
.. |image1| image:: https://raw.githubusercontent.com/OCA/l10n-brazil/17.0/l10n_br_account_due_list/static/img/l10n_br_account_due_list_payable.png

Known issues / Roadmap
======================



Changelog
=========



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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-brazil/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/l10n-brazil/issues/new?body=module:%20l10n_br_account_due_list%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
-------

* Akretion

Contributors
------------

- `AKRETION <https://akretion.com/pt-BR/>`__:

- Renato Lima <renato.lima@akretion.com.br>
- Raphaël Valyi <raphael.valyi@akretion.com.br>

- Antonio Neto <netosjb@yahoo.com.br>

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-renatonlima| image:: https://github.com/renatonlima.png?size=40px
:target: https://github.com/renatonlima
:alt: renatonlima
.. |maintainer-rvalyi| image:: https://github.com/rvalyi.png?size=40px
:target: https://github.com/rvalyi
:alt: rvalyi

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

|maintainer-renatonlima| |maintainer-rvalyi|

This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/17.0/l10n_br_account_due_list>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions l10n_br_account_due_list/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
19 changes: 19 additions & 0 deletions l10n_br_account_due_list/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2021 - TODAY Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Brazilian Account Due List",
"category": "Localisation",
"development_status": "Production/Stable",
"license": "AGPL-3",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-brazil",
"version": "17.0.1.0.0",
"depends": ["account_due_list"],
"data": [
"views/account_invoice_view.xml",
],
"installable": True,
"auto_install": True,
"maintainers": ["renatonlima", "rvalyi"],
}
51 changes: 51 additions & 0 deletions l10n_br_account_due_list/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_br_account_due_list
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-06 15:10+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: l10n_br_account_due_list
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_bank_statement_line__financial_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_move__financial_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_payment__financial_move_line_ids
msgid "Financial Move Lines"
msgstr "Líneas de movimiento financiero"

#. module: l10n_br_account_due_list
#: model:ir.model,name:l10n_br_account_due_list.model_account_move
msgid "Journal Entry"
msgstr "Entrada Diaria"

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Payables"
msgstr "Por pagar"

#. module: l10n_br_account_due_list
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_bank_statement_line__payment_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_move__payment_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_payment__payment_move_line_ids
msgid "Payment Move Lines"
msgstr "Líneas de movimiento de pagos"

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Payments"
msgstr "Pagos"

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Receivables"
msgstr "Por cobrar"
48 changes: 48 additions & 0 deletions l10n_br_account_due_list/i18n/l10n_br_account_due_list.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_br_account_due_list
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: l10n_br_account_due_list
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_bank_statement_line__financial_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_move__financial_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_payment__financial_move_line_ids
msgid "Financial Move Lines"
msgstr ""

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

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Payables"
msgstr ""

#. module: l10n_br_account_due_list
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_bank_statement_line__payment_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_move__payment_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_payment__payment_move_line_ids
msgid "Payment Move Lines"
msgstr ""

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Payments"
msgstr ""

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Receivables"
msgstr ""
60 changes: 60 additions & 0 deletions l10n_br_account_due_list/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_br_account_due_list
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-01-07 20:39+0000\n"
"Last-Translator: Marcel Savegnago <marcel.savegnago@gmail.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: l10n_br_account_due_list
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_bank_statement_line__financial_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_move__financial_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_payment__financial_move_line_ids
msgid "Financial Move Lines"
msgstr "Linhas de Movimentação Financeira"

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

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Payables"
msgstr "Contas a Pagar"

#. module: l10n_br_account_due_list
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_bank_statement_line__payment_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_move__payment_move_line_ids
#: model:ir.model.fields,field_description:l10n_br_account_due_list.field_account_payment__payment_move_line_ids
msgid "Payment Move Lines"
msgstr "Linhas de Movimento para Pagamento"

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Payments"
msgstr "Pagamentos"

#. module: l10n_br_account_due_list
#: model_terms:ir.ui.view,arch_db:l10n_br_account_due_list.invoice_form
msgid "Receivables"
msgstr "Contas a Receber"

#~ msgid "Display Name"
#~ msgstr "Nome Exibido"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificação em"
3 changes: 3 additions & 0 deletions l10n_br_account_due_list/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import account_invoice
41 changes: 41 additions & 0 deletions l10n_br_account_due_list/models/account_invoice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright (C) 2021 - TODAY Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import api, fields, models


class AccountInvoice(models.Model):
_inherit = "account.move"

financial_move_line_ids = fields.Many2many(
comodel_name="account.move.line",
relation="account_invoice_account_financial_move_line_rel",
compute="_compute_financial",
store=True,
string="Financial Move Lines",
)

payment_move_line_ids = fields.Many2many(
"account.move.line",
string="Payment Move Lines",
compute="_compute_payments",
store=True,
)

@api.depends("line_ids", "state")
def _compute_financial(self):
for move in self:
lines = move.line_ids.filtered(
lambda line: line.account_id.account_type
in ("asset_receivable", "liability_payable")
)
move.financial_move_line_ids = lines.sorted()

@api.depends("line_ids.amount_residual")
def _compute_payments(self):
for move in self:
(
invoice_partials,
exchange_diff_moves,
) = move._get_reconciled_invoices_partials()
move.payment_move_line_ids = [partial[2].id for partial in invoice_partials]
3 changes: 3 additions & 0 deletions l10n_br_account_due_list/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions l10n_br_account_due_list/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module does not need any configuration.
4 changes: 4 additions & 0 deletions l10n_br_account_due_list/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- [AKRETION](https://akretion.com/pt-BR/):
- Renato Lima \<<renato.lima@akretion.com.br>\>
- Raphaël Valyi \<<raphael.valyi@akretion.com.br>\>
- Antonio Neto \<<netosjb@yahoo.com.br>\>
2 changes: 2 additions & 0 deletions l10n_br_account_due_list/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module creates the financial_move_line_ids field to list the
payable or receivable account move line on invoices.
1 change: 1 addition & 0 deletions l10n_br_account_due_list/readme/HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions l10n_br_account_due_list/readme/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To install this module, you need to:

- do this ...
1 change: 1 addition & 0 deletions l10n_br_account_due_list/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

10 changes: 10 additions & 0 deletions l10n_br_account_due_list/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
In the invoice form view, there will be two tabs:

- Receivable in the case of customer invoices and payable in the case of
supplier invoices:

![image](../static/img/l10n_br_account_due_list_receivable.png)

- Payments with list of invoice payments:

![image](../static/img/l10n_br_account_due_list_payable.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading