Skip to content

Commit

Permalink
[FIX] l10n_br_account_usability: compute total_faturado
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniospneto committed May 9, 2024
1 parent 0edd56f commit 6e8178c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion l10n_br_account_usability/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "Engenere",
"maintainers": ["antoniospneto", "felipemotter"],
"website": "https://engenere.one",
"version": "14.0.0.0.0",
"version": "14.0.1.0.1",
"development_status": "Beta",
"depends": [
"l10n_br_account",
Expand Down
3 changes: 2 additions & 1 deletion l10n_br_account_usability/models/account_move.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (C) 2022-Today - Engenere (<https://engenere.one>).
# @author Antônio S. Pereira Neto <[email protected]>

from odoo import fields, models
from odoo import api, fields, models


class AccountMove(models.Model):
Expand All @@ -16,6 +16,7 @@ class AccountMove(models.Model):
store=True,
)

@api.depends("amount_total", "amount_tax_withholding")
def _compute_total_faturado(self):
for move in self:
# consideramos o tatal faturado o amount_total nativo
Expand Down
3 changes: 3 additions & 0 deletions l10n_br_account_usability/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Funcionalidade Implementadas:

Adiciona na visualização em lista das Faturas um campo para exibir o valor total do "Faturamento" que inclui os valores retidos na fonte.
10 changes: 8 additions & 2 deletions l10n_br_account_usability/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
14.0.0.0.0 (2023-07-25)
14.0.1.0.1 (2023-07-25)
~~~~~~~~~~~~~~~~~~~~~~~

* [NEW] Primeira versão
* [FIX] Correção do campo "Total Faturado" que não estava sendo calculado na Fatura.


14.0.1.0.0 (2023-07-25)
~~~~~~~~~~~~~~~~~~~~~~~

* [ADD] Primeira versão

0 comments on commit 6e8178c

Please sign in to comment.