From d34e2f2c8ff1341a8efc0a64629e43ef7c51046b Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Fri, 17 May 2019 18:17:23 -0300 Subject: [PATCH 001/342] [REF] Rename module l10n_br_account_banking_payment to l10n_br_account_payment_order. --- l10n_br_account_payment_order/README.rst | 133 +++++ l10n_br_account_payment_order/__init__.py | 7 + l10n_br_account_payment_order/__manifest__.py | 27 + .../demo/account_banking_payment_demo.xml | 34 ++ l10n_br_account_payment_order/i18n/pt_BR.po | 106 ++++ .../models/__init__.py | 7 + .../models/account_move_line.py | 39 ++ .../models/account_payment.py | 46 ++ .../readme/CONFIGURE.rst | 1 + .../readme/CONTRIBUTORS.rst | 5 + .../readme/CREDITS.rst | 4 + .../readme/DESCRIPTION.rst | 1 + .../readme/HISTORY.rst | 20 + .../readme/INSTALL.rst | 5 + .../readme/ROADMAP.rst | 1 + .../readme/USAGE.rst | 1 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 492 ++++++++++++++++++ .../tests/__init__.py | 6 + .../tests/test_payment_order.py | 121 +++++ .../views/account_due_list.xml | 13 + .../views/account_payment.xml | 22 + 22 files changed, 1091 insertions(+) create mode 100644 l10n_br_account_payment_order/README.rst create mode 100644 l10n_br_account_payment_order/__init__.py create mode 100644 l10n_br_account_payment_order/__manifest__.py create mode 100644 l10n_br_account_payment_order/demo/account_banking_payment_demo.xml create mode 100644 l10n_br_account_payment_order/i18n/pt_BR.po create mode 100644 l10n_br_account_payment_order/models/__init__.py create mode 100644 l10n_br_account_payment_order/models/account_move_line.py create mode 100644 l10n_br_account_payment_order/models/account_payment.py create mode 100644 l10n_br_account_payment_order/readme/CONFIGURE.rst create mode 100644 l10n_br_account_payment_order/readme/CONTRIBUTORS.rst create mode 100644 l10n_br_account_payment_order/readme/CREDITS.rst create mode 100644 l10n_br_account_payment_order/readme/DESCRIPTION.rst create mode 100644 l10n_br_account_payment_order/readme/HISTORY.rst create mode 100644 l10n_br_account_payment_order/readme/INSTALL.rst create mode 100644 l10n_br_account_payment_order/readme/ROADMAP.rst create mode 100644 l10n_br_account_payment_order/readme/USAGE.rst create mode 100644 l10n_br_account_payment_order/static/description/icon.png create mode 100644 l10n_br_account_payment_order/static/description/index.html create mode 100644 l10n_br_account_payment_order/tests/__init__.py create mode 100644 l10n_br_account_payment_order/tests/test_payment_order.py create mode 100644 l10n_br_account_payment_order/views/account_due_list.xml create mode 100644 l10n_br_account_payment_order/views/account_payment.xml diff --git a/l10n_br_account_payment_order/README.rst b/l10n_br_account_payment_order/README.rst new file mode 100644 index 000000000000..a91150415ce5 --- /dev/null +++ b/l10n_br_account_payment_order/README.rst @@ -0,0 +1,133 @@ +============================================================ +Brazilian Banking - Debit and Payments Export Infrastructure +============================================================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fl10n--brazil-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-brazil/tree/10.0/l10n_br_account_banking_payment + :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-10-0/l10n-brazil-10-0-l10n_br_account_banking_payment + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/124/10.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module provides an infrastructure to export payment orders and debit orders + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +This module depends on: + +* account_payment_order +* account_due_list +* l10n_br_account + +Configuration +============= + +No configuration required. + +Usage +===== + +This module provides a menu to configure payment order types : Accounting > Configuration > Miscellaneous > Payment Export Types + +Known issues / Roadmap +====================== + +* TODO! + +Changelog +========= + +8.0.0.0.0 (2016-01-18) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [NEW] Primeira versão + +8.0.1.0.0 (2017-07-14) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [NEW] Melhoiras para suportar a geração de pagamento da folha de pagamento; + +8.0.1.0.1 (2017-07-14) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [NEW] Refatoração e melhorias para suportar a geração de boletos através do br-cobranca (ruby) + + +10.0.1.0.0 (2018-08-29) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [MIG] Migração para a versão 10. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* KMEE + +Contributors +~~~~~~~~~~~~ + +* Luis Felipe Mileo +* Fernando Marcato +* Hendrix Costa +* Magno Costa + + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* KMEE INFORMATICA LTDA - www.kmee.com.br +* AKRETION LTDA - www.akretion.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. + +This module is part of the `OCA/l10n-brazil `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_br_account_payment_order/__init__.py b/l10n_br_account_payment_order/__init__.py new file mode 100644 index 000000000000..2ca9c93087c6 --- /dev/null +++ b/l10n_br_account_payment_order/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2016-Today - KMEE (). +# Luis Felipe Miléo - mileo@kmee.com.br +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models +from . import tests diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py new file mode 100644 index 000000000000..43766f74e364 --- /dev/null +++ b/l10n_br_account_payment_order/__manifest__.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2016-Today - KMEE (). +# Luis Felipe Miléo - mileo@kmee.com.br +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Brazilian Banking - Debit and Payments Export Infrastructure', + 'version': '10.0.1.0.0', + 'license': 'AGPL-3', + 'author': "KMEE, " + "Odoo Community Association (OCA)", + 'website': 'https://github.com/odoo-brazil/odoo-brazil-banking', + 'category': 'Banking addons', + 'depends': [ + 'l10n_br_account', + 'account_payment_order', + 'account_due_list', + ], + 'data': [ + 'views/account_due_list.xml', + 'views/account_payment.xml', + ], + 'demo': [ + 'demo/account_banking_payment_demo.xml' + ], + 'installable': True, +} diff --git a/l10n_br_account_payment_order/demo/account_banking_payment_demo.xml b/l10n_br_account_payment_order/demo/account_banking_payment_demo.xml new file mode 100644 index 000000000000..a5cb7d0cf4b4 --- /dev/null +++ b/l10n_br_account_payment_order/demo/account_banking_payment_demo.xml @@ -0,0 +1,34 @@ + + + + + + 3.01.01.01.01.02.00-AVOID_TRAVIS_ERROR* + Receita da Venda no Mercado Interno + de Produtos de Fabricação Própria - AVOID_TRAVIS_ERROR + + + + + + + + + Test Payment Order + + + out_invoice + + + + + + [E-COM06] Computador Personalizado (kit) + + + 100 + 10 + + + + \ No newline at end of file diff --git a/l10n_br_account_payment_order/i18n/pt_BR.po b/l10n_br_account_payment_order/i18n/pt_BR.po new file mode 100644 index 000000000000..982d1d5353cb --- /dev/null +++ b/l10n_br_account_payment_order/i18n/pt_BR.po @@ -0,0 +1,106 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_br_account_banking_payment +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-22 14:13+0000\n" +"PO-Revision-Date: 2017-11-22 14:13+0000\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_banking_payment +#: model:ir.model,name:l10n_br_account_banking_payment.model_res_bank +msgid "Bank" +msgstr "Banco" + +#. module: l10n_br_account_banking_payment +#: model:ir.model,name:l10n_br_account_banking_payment.model_res_partner_bank +msgid "Bank Accounts" +msgstr "Contas Bancárias" + +#. module: l10n_br_account_banking_payment +#: field:account.move.line,date_scheduled:0 +msgid "Data Prevista" +msgstr "Data Prevista" + +#. module: l10n_br_account_banking_payment +#: field:payment.order.create,schedule_date:0 +msgid "Data Programada" +msgstr "Data Programada" + +#. module: l10n_br_account_banking_payment +#: code:addons/l10n_br_account_banking_payment/wizard/payment_order_create.py:108 +#, python-format +msgid "Entry Lines" +msgstr "Linhas de Entrada" + +#. module: l10n_br_account_banking_payment +#: code:addons/l10n_br_account_banking_payment/models/account_payment.py:33 +#, python-format +msgid "Impossible confirm empty line!" +msgstr "Impossível confirmar linha vazia!" + +#. module: l10n_br_account_banking_payment +#: view:account.move.line:l10n_br_account_banking_payment.payment_order_populate_view_move_line_tree +msgid "Journal Entry" +msgstr "Entrada do Diário" + +#. module: l10n_br_account_banking_payment +#: view:account.move.line:l10n_br_account_banking_payment.payment_order_populate_view_move_line_tree +#: model:ir.model,name:l10n_br_account_banking_payment.model_account_move_line +msgid "Journal Items" +msgstr "Itens do Diário" + +#. module: l10n_br_account_banking_payment +#: field:payment.line,linha_digitavel:0 +msgid "Linha Digitável" +msgstr "Linha Digitável" + +#. module: l10n_br_account_banking_payment +#: model:ir.model,name:l10n_br_account_banking_payment.model_payment_line +msgid "Payment Line" +msgstr "Linha de Pagamento" + +#. module: l10n_br_account_banking_payment +#: model:ir.model,name:l10n_br_account_banking_payment.model_payment_order +msgid "Payment Order" +msgstr "Ordem de Pagamento" + +#. module: l10n_br_account_banking_payment +#: code:addons/l10n_br_account_banking_payment/wizard/payment_order_create.py:157 +#, python-format +msgid "Payment Orders" +msgstr "Ordens de Pagamentos" + +#. module: l10n_br_account_banking_payment +#: field:payment.line,percent_interest:0 +msgid "Percentual de Juros" +msgstr "Percentual de Juros" + +#. module: l10n_br_account_banking_payment +#: view:account.move.line:l10n_br_account_banking_payment.payment_order_populate_view_move_line_tree +msgid "Total Credit" +msgstr "Total de Crédito" + +#. module: l10n_br_account_banking_payment +#: view:account.move.line:l10n_br_account_banking_payment.payment_order_populate_view_move_line_tree +msgid "Total Debit" +msgstr "Total de Débito" + +#. module: l10n_br_account_banking_payment +#: field:payment.order.create,all_posted_moves:0 +msgid "Títulos em aberto" +msgstr "Títulos em aberto" + +#. module: l10n_br_account_banking_payment +#: view:payment.order.create:l10n_br_account_banking_payment.view_create_payment_order_lines +msgid "{'display_credit': context.get('display_credit', False),'display_debit': context.get('display_debit', False),'journal_type': 'sale', 'tree_view_ref' : 'account_banking_payment_export.payment_order_populate_view_move_line_tree'}" +msgstr "{'display_credit': context.get('display_credit', False),'display_debit': context.get('display_debit', False),'journal_type': 'sale', 'tree_view_ref' : 'account_banking_payment_export.payment_order_populate_view_move_line_tree'}" + diff --git a/l10n_br_account_payment_order/models/__init__.py b/l10n_br_account_payment_order/models/__init__.py new file mode 100644 index 000000000000..373de6b40a9f --- /dev/null +++ b/l10n_br_account_payment_order/models/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2016-Today - KMEE (). +# Luis Felipe Miléo - mileo@kmee.com.br +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import account_payment +from . import account_move_line diff --git a/l10n_br_account_payment_order/models/account_move_line.py b/l10n_br_account_payment_order/models/account_move_line.py new file mode 100644 index 000000000000..becaa3e6f448 --- /dev/null +++ b/l10n_br_account_payment_order/models/account_move_line.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2016-Today - KMEE (). +# Luis Felipe Miléo - mileo@kmee.com.br +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields, api + + +class AccountMoveLine(models.Model): + _inherit = 'account.move.line' + + date_scheduled = fields.Date(string='Data Prevista') + + @api.multi + def _get_journal_entry_ref(self): + for record in self: + if record.move_id.state == 'draft': + if record.invoice.id: + record.journal_entry_ref = record.invoice.number + else: + record.journal_entry_ref = '*' + str(record.move_id.id) + else: + record.journal_entry_ref = record.move_id.name + + journal_entry_ref = fields.Char(compute=_get_journal_entry_ref, + string='Journal Entry Ref') + + @api.multi + def get_balance(self): + """ + Return the balance of any set of move lines. + + Not to be confused with the 'balance' field on this model, which + returns the account balance that the move line applies to. + """ + total = 0.0 + for line in self: + total += (line.debit or 0.0) - (line.credit or 0.0) + return total diff --git a/l10n_br_account_payment_order/models/account_payment.py b/l10n_br_account_payment_order/models/account_payment.py new file mode 100644 index 000000000000..630a4dcb38be --- /dev/null +++ b/l10n_br_account_payment_order/models/account_payment.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2016-Today - KMEE (). +# Luis Felipe Miléo - mileo@kmee.com.br +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields, api +from odoo.addons import decimal_precision as dp +from odoo.tools.float_utils import float_round as round + + +class PaymentLine(models.Model): + _inherit = 'account.payment.line' + + @api.model + def _get_info_partner(self, partner_record): + if not partner_record: + return False + st = partner_record.street or '' + n = partner_record.number or '' + st1 = partner_record.street2 or '' + zip = partner_record.zip or '' + city = partner_record.l10n_br_city_id.name or '' + uf = partner_record.state_id.code or '' + zip_city = city + '-' + uf + '\n' + zip + cntry = partner_record.country_id and \ + partner_record.country_id.name or '' + cnpj = partner_record.cnpj_cpf or '' + return partner_record.legal_name or '' + "\n" + cnpj + "\n" + st \ + + ", " + n + " " + st1 + "\n" + zip_city + "\n" + cntry + + @api.multi + @api.depends('percent_interest', 'amount_currency') + def _compute_interest(self): + for record in self: + precision = record.env[ + 'decimal.precision'].precision_get('Account') + record.amount_interest = round( + record.amount_currency * ( + record.percent_interest / 100), precision) + + linha_digitavel = fields.Char(string=u"Linha Digitável") + percent_interest = fields.Float(string=u"Percentual de Juros", + digits=dp.get_precision('Account')) + amount_interest = fields.Float(string=u"Valor Juros", + compute='_compute_interest', + digits=dp.get_precision('Account')) diff --git a/l10n_br_account_payment_order/readme/CONFIGURE.rst b/l10n_br_account_payment_order/readme/CONFIGURE.rst new file mode 100644 index 000000000000..1b48c9c3b603 --- /dev/null +++ b/l10n_br_account_payment_order/readme/CONFIGURE.rst @@ -0,0 +1 @@ +No configuration required. \ No newline at end of file diff --git a/l10n_br_account_payment_order/readme/CONTRIBUTORS.rst b/l10n_br_account_payment_order/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..87a88f53e92c --- /dev/null +++ b/l10n_br_account_payment_order/readme/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +* Luis Felipe Mileo +* Fernando Marcato +* Hendrix Costa +* Magno Costa + diff --git a/l10n_br_account_payment_order/readme/CREDITS.rst b/l10n_br_account_payment_order/readme/CREDITS.rst new file mode 100644 index 000000000000..186f5e96a375 --- /dev/null +++ b/l10n_br_account_payment_order/readme/CREDITS.rst @@ -0,0 +1,4 @@ +The development of this module has been financially supported by: + +* KMEE INFORMATICA LTDA - www.kmee.com.br +* AKRETION LTDA - www.akretion.com \ No newline at end of file diff --git a/l10n_br_account_payment_order/readme/DESCRIPTION.rst b/l10n_br_account_payment_order/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..494f701c4943 --- /dev/null +++ b/l10n_br_account_payment_order/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module provides an infrastructure to export payment orders and debit orders diff --git a/l10n_br_account_payment_order/readme/HISTORY.rst b/l10n_br_account_payment_order/readme/HISTORY.rst new file mode 100644 index 000000000000..3596579bbe2f --- /dev/null +++ b/l10n_br_account_payment_order/readme/HISTORY.rst @@ -0,0 +1,20 @@ +8.0.0.0.0 (2016-01-18) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [NEW] Primeira versão + +8.0.1.0.0 (2017-07-14) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [NEW] Melhoiras para suportar a geração de pagamento da folha de pagamento; + +8.0.1.0.1 (2017-07-14) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [NEW] Refatoração e melhorias para suportar a geração de boletos através do br-cobranca (ruby) + + +10.0.1.0.0 (2018-08-29) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [MIG] Migração para a versão 10. diff --git a/l10n_br_account_payment_order/readme/INSTALL.rst b/l10n_br_account_payment_order/readme/INSTALL.rst new file mode 100644 index 000000000000..af8821f46cad --- /dev/null +++ b/l10n_br_account_payment_order/readme/INSTALL.rst @@ -0,0 +1,5 @@ +This module depends on: + +* account_payment_order +* account_due_list +* l10n_br_account \ No newline at end of file diff --git a/l10n_br_account_payment_order/readme/ROADMAP.rst b/l10n_br_account_payment_order/readme/ROADMAP.rst new file mode 100644 index 000000000000..4d2ece5d5b4b --- /dev/null +++ b/l10n_br_account_payment_order/readme/ROADMAP.rst @@ -0,0 +1 @@ +* TODO! diff --git a/l10n_br_account_payment_order/readme/USAGE.rst b/l10n_br_account_payment_order/readme/USAGE.rst new file mode 100644 index 000000000000..b184ae03f506 --- /dev/null +++ b/l10n_br_account_payment_order/readme/USAGE.rst @@ -0,0 +1 @@ +This module provides a menu to configure payment order types : Accounting > Configuration > Miscellaneous > Payment Export Types diff --git a/l10n_br_account_payment_order/static/description/icon.png b/l10n_br_account_payment_order/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757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bW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV( z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/l10n_br_account_payment_order/static/description/index.html b/l10n_br_account_payment_order/static/description/index.html new file mode 100644 index 000000000000..6b2c18633fab --- /dev/null +++ b/l10n_br_account_payment_order/static/description/index.html @@ -0,0 +1,492 @@ + + + + + + +Brazilian Banking - Debit and Payments Export Infrastructure + + + +
+

Brazilian Banking - Debit and Payments Export Infrastructure

+ + +

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runbot

+

This module provides an infrastructure to export payment orders and debit orders

+

Table of contents

+ +
+

Installation

+

This module depends on:

+
    +
  • account_payment_order
  • +
  • account_due_list
  • +
  • l10n_br_account
  • +
+
+
+

Configuration

+

No configuration required.

+
+
+

Usage

+

This module provides a menu to configure payment order types : Accounting > Configuration > Miscellaneous > Payment Export Types

+
+
+

Known issues / Roadmap

+
    +
  • TODO!
  • +
+
+
+

Changelog

+
+

8.0.0.0.0 (2016-01-18)

+
    +
  • [NEW] Primeira versão
  • +
+
+
+

8.0.1.0.0 (2017-07-14)

+
    +
  • [NEW] Melhoiras para suportar a geração de pagamento da folha de pagamento;
  • +
+
+
+

8.0.1.0.1 (2017-07-14)

+
    +
  • [NEW] Refatoração e melhorias para suportar a geração de boletos através do br-cobranca (ruby)
  • +
+
+
+

10.0.1.0.0 (2018-08-29)

+
    +
  • [MIG] Migração para a versão 10.
  • +
+
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • KMEE
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • KMEE INFORMATICA LTDA - www.kmee.com.br
  • +
  • AKRETION LTDA - www.akretion.com
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

This module is part of the OCA/l10n-brazil project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/l10n_br_account_payment_order/tests/__init__.py b/l10n_br_account_payment_order/tests/__init__.py new file mode 100644 index 000000000000..c59a89fa7dd5 --- /dev/null +++ b/l10n_br_account_payment_order/tests/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# @ 2018 Akretion - www.akretion.com.br - +# Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from . import test_payment_order diff --git a/l10n_br_account_payment_order/tests/test_payment_order.py b/l10n_br_account_payment_order/tests/test_payment_order.py new file mode 100644 index 000000000000..e7c2b35a39ff --- /dev/null +++ b/l10n_br_account_payment_order/tests/test_payment_order.py @@ -0,0 +1,121 @@ +# -*- coding: utf-8 -*- +# @ 2018 Akretion - www.akretion.com.br - +# Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + + +from openerp.tests.common import TransactionCase +from openerp.exceptions import UserError + + +class TestPaymentOrder(TransactionCase): + + def setUp(self): + super(TestPaymentOrder, self).setUp() + + self.invoice_customer_original = self.env.ref( + 'l10n_br_account_banking_payment.demo_invoice_payment_order' + ) + + # Payment Mode + self.payment_mode = self.env.ref( + 'account_payment_mode.payment_mode_inbound_ct1' + ) + + # Configure to be possibile create Payment Order + self.payment_mode.payment_order_ok = True + + self.invoice_customer_original.payment_mode_id = self.payment_mode.id + + # I check that Initially customer invoice is in the "Draft" state + self.assertEquals(self.invoice_customer_original.state, 'draft') + + # I change the state of invoice to "Proforma2" by clicking + # PRO-FORMA button + self.invoice_customer_original.action_invoice_proforma2() + + # I check that the invoice state is now "Proforma2" + self.assertEquals(self.invoice_customer_original.state, 'proforma2') + + # I check that there is no move attached to the invoice + self.assertEquals(len(self.invoice_customer_original.move_id), 0) + + # I validate invoice by creating on + self.invoice_customer_original.action_invoice_open() + + # I check that the invoice state is "Open" + self.assertEquals(self.invoice_customer_original.state, 'open') + + # I check that now there is a move attached to the invoice + assert self.invoice_customer_original.move_id,\ + "Move not created for open invoice" + + def test_implemented_fields_payment_order(self): + """ Test implemented fields in object account.move.line """ + # Check Payment Mode field + assert self.invoice_customer_original.payment_mode_id, \ + "Payment Mode field is not filled." + for line in self.invoice_customer_original.move_id.line_ids.filtered( + lambda l: l.account_id.id == + self.invoice_customer_original.account_id.id): + self.assertEquals( + line.journal_entry_ref, 'INV/2019/0004', + "Error with compute field journal_entry_ref") + test_balance_value = line.get_balance() + self.assertEquals( + test_balance_value, 700.0, + "Error with method get_balance()") + + def test_cancel_payment_order(self): + """ Test create and cancel a Payment Order.""" + # Add to payment order + self.invoice_customer_original.create_account_payment_line() + + payment_order = self.env['account.payment.order'].search([]) + bank_journal = self.env['account.journal'].search( + [('type', '=', 'bank')], limit=1) + # Set journal to allow cancelling entries + bank_journal.update_posted = True + + payment_order.write({ + 'journal_id': bank_journal.id + }) + + self.assertEquals(len(payment_order.payment_line_ids), 2) + self.assertEquals(len(payment_order.bank_line_ids), 0) + + for line in payment_order.payment_line_ids: + line.percent_interest = 1.5 + self.assertEquals(line._get_info_partner( + self.invoice_customer_original.partner_id), + 'AKRETION LTDA', + "Error with method _get_info_partner" + ) + test_amount_interest = line.amount_interest + self.assertEquals( + test_amount_interest, 10.5, + "Error with compute field amount_interest.") + + # Open payment order + payment_order.draft2open() + + self.assertEquals(len(payment_order.bank_line_ids), 2) + + # Generate and upload + payment_order.open2generated() + payment_order.generated2uploaded() + + self.assertEquals(payment_order.state, 'uploaded') + with self.assertRaises(UserError): + payment_order.unlink() + + bank_line = payment_order.bank_line_ids + + with self.assertRaises(UserError): + bank_line.unlink() + + payment_order.action_done_cancel() + self.assertEquals(payment_order.state, 'cancel') + + payment_order.unlink() + self.assertEquals(len(self.env['account.payment.order'].search([])), 0) diff --git a/l10n_br_account_payment_order/views/account_due_list.xml b/l10n_br_account_payment_order/views/account_due_list.xml new file mode 100644 index 000000000000..bd3a6977052a --- /dev/null +++ b/l10n_br_account_payment_order/views/account_due_list.xml @@ -0,0 +1,13 @@ + + + + l10n_br_account_banking_payment.aml + account.move.line + + + + + + + + diff --git a/l10n_br_account_payment_order/views/account_payment.xml b/l10n_br_account_payment_order/views/account_payment.xml new file mode 100644 index 000000000000..0008ef106606 --- /dev/null +++ b/l10n_br_account_payment_order/views/account_payment.xml @@ -0,0 +1,22 @@ + + + + + + l10n_br_account.payment.line.form.banking + account.payment.line + + + + + + + + + + From a3699d57d30c56010a7eb013628954e85cca56a7 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Fri, 17 May 2019 18:21:46 -0300 Subject: [PATCH 002/342] [REF] Move files from module l10n_br_account_payment_mode to l10n_br_account_payment_order. --- .../demo/payment_demo.xml | 129 ++++++++++++++++++ .../models/payment_mode.py | 39 ++++++ .../models/res_partner_bank.py | 22 +++ .../views/account_invoice_view.xml | 17 +++ .../views/payment_mode_view.xml | 38 ++++++ 5 files changed, 245 insertions(+) create mode 100644 l10n_br_account_payment_order/demo/payment_demo.xml create mode 100644 l10n_br_account_payment_order/models/payment_mode.py create mode 100644 l10n_br_account_payment_order/models/res_partner_bank.py create mode 100644 l10n_br_account_payment_order/views/account_invoice_view.xml create mode 100644 l10n_br_account_payment_order/views/payment_mode_view.xml diff --git a/l10n_br_account_payment_order/demo/payment_demo.xml b/l10n_br_account_payment_order/demo/payment_demo.xml new file mode 100644 index 000000000000..6b1bfe2c2397 --- /dev/null +++ b/l10n_br_account_payment_order/demo/payment_demo.xml @@ -0,0 +1,129 @@ + + + + + + + 5384 + 8 + 7030 + 8 + + + BANCO DO BRASIL S.A. + + + + 5162 + 0 + 0100 + 3 + + + HSBC BANK BRASIL S.A. - BANCO MULTIPLO + + + + + 15016 + 0 + 8515 + 0 + + + BANCO ITAÚ S.A. + + + + 1333 + 0 + 0707 + 0 + + + BANCO SANTANDER (BRASIL) S.A. + + + + 414 + 3 + 1565 + 1 + + + CAIXA ECONOMICA FEDERAL + + + + 395 + 0 + 1611 + 0 + + + BANCO BRADESCO S.A. + + + + 123 + 0 + 1234 + 0 + + + BANCO DO NORDESTE DO BRASIL S.A. + + + + 321 + 0 + 1234 + 0 + + + BANCO DO ESTADO DO RIO GRANDE DO SUL S.A. + + + + 231 + 0 + 1234 + 0 + + + BANESTES S.A. BANCO DO ESTADO DO ESPIRITO SANTO + + + + 312 + 0 + 1234 + 0 + + + BANCO COOPERATIVO DO BRASIL S.A. (SICOOB) + + + + 331 + 0 + 1234 + 0 + + + Sicredi - Instituição Financeira Cooperativa + + + + Cheque + + variable + + + + 99 + + + + diff --git a/l10n_br_account_payment_order/models/payment_mode.py b/l10n_br_account_payment_order/models/payment_mode.py new file mode 100644 index 000000000000..98c3c655987d --- /dev/null +++ b/l10n_br_account_payment_order/models/payment_mode.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2012-Today - KMEE (). +# @author Luis Felipe Miléo - mileo@kmee.com.br +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, fields + + +class AccountPaymentMode(models.Model): + _inherit = 'account.payment.mode' + + internal_sequence_id = fields.Many2one('ir.sequence', u'Sequência') + instrucoes = fields.Text(u'Instruções de cobrança') + invoice_print = fields.Boolean( + u'Gerar relatorio na conclusão da fatura?') + + _sql_constraints = [ + ('internal_sequence_id_unique', + 'unique(internal_sequence_id)', + u'Sequência já usada! Crie uma sequência unica para cada modo') + ] + + +class AccountPaymentMethod(models.Model): + _inherit = 'account.payment.method' + + payment_type = fields.Selection( + selection_add=[ + ('cobranca', u'Cobrança'), + ]) + + +class AccountPaymentOrder(models.Model): + _inherit = 'account.payment.order' + + payment_type = fields.Selection( + selection_add=[ + ('cobranca', u'Cobrança'), + ]) diff --git a/l10n_br_account_payment_order/models/res_partner_bank.py b/l10n_br_account_payment_order/models/res_partner_bank.py new file mode 100644 index 000000000000..64fdbf30c53f --- /dev/null +++ b/l10n_br_account_payment_order/models/res_partner_bank.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# @ 2018 Akretion - www.akretion.com.br - +# Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import models, api, _ +from odoo.exceptions import Warning as UserError + + +class ResPartnerBank(models.Model): + _inherit = 'res.partner.bank' + + @api.multi + @api.constrains('bra_number') + def check_bra_number(self): + for record in self: + if record.bank_id.code_bc == '033': + if len(record.bra_number) > 4: + raise UserError(_( + u'O cógido da Agencia Bancaria do Santander' + u' deve ter no máximo quatro caracteres.' + )) diff --git a/l10n_br_account_payment_order/views/account_invoice_view.xml b/l10n_br_account_payment_order/views/account_invoice_view.xml new file mode 100644 index 000000000000..6a083bbc1ac3 --- /dev/null +++ b/l10n_br_account_payment_order/views/account_invoice_view.xml @@ -0,0 +1,17 @@ + + + + + l10n_br_account_payment_mode.invoice.form + account.invoice + + + + + + + + + + diff --git a/l10n_br_account_payment_order/views/payment_mode_view.xml b/l10n_br_account_payment_order/views/payment_mode_view.xml new file mode 100644 index 000000000000..bfabbced98bc --- /dev/null +++ b/l10n_br_account_payment_order/views/payment_mode_view.xml @@ -0,0 +1,38 @@ + + + + + + payment.mode.l10n_br_payment.form.inherit + account.payment.mode + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 494b2f066a83f2ab96f20d96f11fff5306bd4385 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Mon, 20 May 2019 16:46:20 -0300 Subject: [PATCH 003/342] [REF] Included the new files. --- l10n_br_account_payment_order/__manifest__.py | 6 ++++-- l10n_br_account_payment_order/models/__init__.py | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index 43766f74e364..c0852a102acf 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -4,7 +4,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Brazilian Banking - Debit and Payments Export Infrastructure', + 'name': 'Brazilian Payment Order', 'version': '10.0.1.0.0', 'license': 'AGPL-3', 'author': "KMEE, " @@ -19,9 +19,11 @@ 'data': [ 'views/account_due_list.xml', 'views/account_payment.xml', + 'views/payment_mode_view.xml', ], 'demo': [ - 'demo/account_banking_payment_demo.xml' + 'demo/account_banking_payment_demo.xml', + 'demo/payment_demo.xml' ], 'installable': True, } diff --git a/l10n_br_account_payment_order/models/__init__.py b/l10n_br_account_payment_order/models/__init__.py index 373de6b40a9f..adf6d5aa52cd 100644 --- a/l10n_br_account_payment_order/models/__init__.py +++ b/l10n_br_account_payment_order/models/__init__.py @@ -5,3 +5,5 @@ from . import account_payment from . import account_move_line +from . import payment_mode +from . import res_partner_bank From efcf2bce2364fab09d22ede63c71229820631efd Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Mon, 20 May 2019 16:57:02 -0300 Subject: [PATCH 004/342] [REF] Removed view because the Payment Order don't need to be related to NFe. --- .../views/account_invoice_view.xml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 l10n_br_account_payment_order/views/account_invoice_view.xml diff --git a/l10n_br_account_payment_order/views/account_invoice_view.xml b/l10n_br_account_payment_order/views/account_invoice_view.xml deleted file mode 100644 index 6a083bbc1ac3..000000000000 --- a/l10n_br_account_payment_order/views/account_invoice_view.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - l10n_br_account_payment_mode.invoice.form - account.invoice - - - - - - - - - - From 4d188f2614f2eda2f20cdd1da35b3149f621f8a6 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Mon, 20 May 2019 16:58:38 -0300 Subject: [PATCH 005/342] [REF][FIX] Views. --- .../views/payment_mode_view.xml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/l10n_br_account_payment_order/views/payment_mode_view.xml b/l10n_br_account_payment_order/views/payment_mode_view.xml index bfabbced98bc..77ead7595509 100644 --- a/l10n_br_account_payment_order/views/payment_mode_view.xml +++ b/l10n_br_account_payment_order/views/payment_mode_view.xml @@ -13,19 +13,18 @@ - + - + + attrs="{'invisible': [('payment_type', '!=', 'cobranca')]}"/> + attrs="{'invisible': [('payment_type', '!=', 'cobranca')]}"/> From b154037dcc8363df145a89c4ff2a196ff8ca92f2 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Mon, 20 May 2019 17:00:19 -0300 Subject: [PATCH 006/342] [REF][FIX][IMP] Demo data. --- .../demo/payment_demo.xml | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/l10n_br_account_payment_order/demo/payment_demo.xml b/l10n_br_account_payment_order/demo/payment_demo.xml index 6b1bfe2c2397..a9176a8c8125 100644 --- a/l10n_br_account_payment_order/demo/payment_demo.xml +++ b/l10n_br_account_payment_order/demo/payment_demo.xml @@ -114,15 +114,36 @@ Sicredi - Instituição Financeira Cooperativa - - Cheque - + + + Diário de Banco(teste l10n_br_account_payment_order) + TPO + sale + + + + + + + + Cobranca + cobranca + cobranca + + + + + Boleto Bancario + variable - + + - 99 + ref="account.account_payment_method_manual_in"/> From 509e3302a825d53157df6e6cbffb45375a4034ad Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Mon, 20 May 2019 17:01:13 -0300 Subject: [PATCH 007/342] [REF] Update tests. --- l10n_br_account_payment_order/tests/test_payment_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_br_account_payment_order/tests/test_payment_order.py b/l10n_br_account_payment_order/tests/test_payment_order.py index e7c2b35a39ff..8e74fd2bbe66 100644 --- a/l10n_br_account_payment_order/tests/test_payment_order.py +++ b/l10n_br_account_payment_order/tests/test_payment_order.py @@ -14,7 +14,7 @@ def setUp(self): super(TestPaymentOrder, self).setUp() self.invoice_customer_original = self.env.ref( - 'l10n_br_account_banking_payment.demo_invoice_payment_order' + 'l10n_br_account_payment_order.demo_invoice_payment_order' ) # Payment Mode From e14dba586172e5e46150aeada863a60fa797bfec Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Mon, 20 May 2019 17:08:46 -0300 Subject: [PATCH 008/342] [REF] Update history file. --- l10n_br_account_payment_order/readme/HISTORY.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/l10n_br_account_payment_order/readme/HISTORY.rst b/l10n_br_account_payment_order/readme/HISTORY.rst index 3596579bbe2f..756aa595848a 100644 --- a/l10n_br_account_payment_order/readme/HISTORY.rst +++ b/l10n_br_account_payment_order/readme/HISTORY.rst @@ -18,3 +18,8 @@ ~~~~~~~~~~~~~~~~~~~~~~~ * [MIG] Migração para a versão 10. + +10.0.1.0.0 (2018-05-17) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [REF] Modulo foi unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order. \ No newline at end of file From 6f60629f003bbb23e5eb9584141719ab1b6007a5 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Tue, 21 May 2019 12:21:12 -0300 Subject: [PATCH 009/342] [REF] Renamed files to the standard. --- l10n_br_account_payment_order/__manifest__.py | 4 ++-- l10n_br_account_payment_order/models/__init__.py | 4 ++-- .../models/{account_payment.py => account_payment_line.py} | 0 .../models/{payment_mode.py => account_payment_mode.py} | 0 .../views/{account_payment.xml => account_payment_line.xml} | 0 .../views/{payment_mode_view.xml => account_payment_mode.xml} | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename l10n_br_account_payment_order/models/{account_payment.py => account_payment_line.py} (100%) rename l10n_br_account_payment_order/models/{payment_mode.py => account_payment_mode.py} (100%) rename l10n_br_account_payment_order/views/{account_payment.xml => account_payment_line.xml} (100%) rename l10n_br_account_payment_order/views/{payment_mode_view.xml => account_payment_mode.xml} (100%) diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index c0852a102acf..6257e8020640 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -18,8 +18,8 @@ ], 'data': [ 'views/account_due_list.xml', - 'views/account_payment.xml', - 'views/payment_mode_view.xml', + 'views/account_payment_line.xml', + 'views/account_payment_mode.xml', ], 'demo': [ 'demo/account_banking_payment_demo.xml', diff --git a/l10n_br_account_payment_order/models/__init__.py b/l10n_br_account_payment_order/models/__init__.py index adf6d5aa52cd..0aa12cd62ded 100644 --- a/l10n_br_account_payment_order/models/__init__.py +++ b/l10n_br_account_payment_order/models/__init__.py @@ -3,7 +3,7 @@ # Luis Felipe Miléo - mileo@kmee.com.br # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from . import account_payment +from . import account_payment_line from . import account_move_line -from . import payment_mode +from . import account_payment_mode from . import res_partner_bank diff --git a/l10n_br_account_payment_order/models/account_payment.py b/l10n_br_account_payment_order/models/account_payment_line.py similarity index 100% rename from l10n_br_account_payment_order/models/account_payment.py rename to l10n_br_account_payment_order/models/account_payment_line.py diff --git a/l10n_br_account_payment_order/models/payment_mode.py b/l10n_br_account_payment_order/models/account_payment_mode.py similarity index 100% rename from l10n_br_account_payment_order/models/payment_mode.py rename to l10n_br_account_payment_order/models/account_payment_mode.py diff --git a/l10n_br_account_payment_order/views/account_payment.xml b/l10n_br_account_payment_order/views/account_payment_line.xml similarity index 100% rename from l10n_br_account_payment_order/views/account_payment.xml rename to l10n_br_account_payment_order/views/account_payment_line.xml diff --git a/l10n_br_account_payment_order/views/payment_mode_view.xml b/l10n_br_account_payment_order/views/account_payment_mode.xml similarity index 100% rename from l10n_br_account_payment_order/views/payment_mode_view.xml rename to l10n_br_account_payment_order/views/account_payment_mode.xml From f434d5b589ab63e1100718dcad7c8695d536ee42 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Tue, 21 May 2019 12:52:19 -0300 Subject: [PATCH 010/342] [REF] Split files to keep the standard. --- .../models/__init__.py | 2 ++ .../models/account_payment_method.py | 15 +++++++++++++++ .../models/account_payment_mode.py | 18 ------------------ .../models/account_payment_order.py | 15 +++++++++++++++ 4 files changed, 32 insertions(+), 18 deletions(-) create mode 100644 l10n_br_account_payment_order/models/account_payment_method.py create mode 100644 l10n_br_account_payment_order/models/account_payment_order.py diff --git a/l10n_br_account_payment_order/models/__init__.py b/l10n_br_account_payment_order/models/__init__.py index 0aa12cd62ded..4525f59d8157 100644 --- a/l10n_br_account_payment_order/models/__init__.py +++ b/l10n_br_account_payment_order/models/__init__.py @@ -7,3 +7,5 @@ from . import account_move_line from . import account_payment_mode from . import res_partner_bank +from . import account_payment_method +from . import account_payment_order diff --git a/l10n_br_account_payment_order/models/account_payment_method.py b/l10n_br_account_payment_order/models/account_payment_method.py new file mode 100644 index 000000000000..325622c4c923 --- /dev/null +++ b/l10n_br_account_payment_order/models/account_payment_method.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# @ 2019 Akretion - www.akretion.com.br - +# Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import models, fields + + +class AccountPaymentMethod(models.Model): + _inherit = 'account.payment.method' + + payment_type = fields.Selection( + selection_add=[ + ('cobranca', u'Cobrança'), + ]) diff --git a/l10n_br_account_payment_order/models/account_payment_mode.py b/l10n_br_account_payment_order/models/account_payment_mode.py index 98c3c655987d..40c04a495f89 100644 --- a/l10n_br_account_payment_order/models/account_payment_mode.py +++ b/l10n_br_account_payment_order/models/account_payment_mode.py @@ -19,21 +19,3 @@ class AccountPaymentMode(models.Model): 'unique(internal_sequence_id)', u'Sequência já usada! Crie uma sequência unica para cada modo') ] - - -class AccountPaymentMethod(models.Model): - _inherit = 'account.payment.method' - - payment_type = fields.Selection( - selection_add=[ - ('cobranca', u'Cobrança'), - ]) - - -class AccountPaymentOrder(models.Model): - _inherit = 'account.payment.order' - - payment_type = fields.Selection( - selection_add=[ - ('cobranca', u'Cobrança'), - ]) diff --git a/l10n_br_account_payment_order/models/account_payment_order.py b/l10n_br_account_payment_order/models/account_payment_order.py new file mode 100644 index 000000000000..5a5c42ed804b --- /dev/null +++ b/l10n_br_account_payment_order/models/account_payment_order.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# @ 2019 Akretion - www.akretion.com.br - +# Magno Costa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import models, fields + + +class AccountPaymentOrder(models.Model): + _inherit = 'account.payment.order' + + payment_type = fields.Selection( + selection_add=[ + ('cobranca', u'Cobrança'), + ]) From a160c2ab5f3000ecbabd228338ecaf727d946e0f Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Tue, 21 May 2019 15:00:38 -0300 Subject: [PATCH 011/342] [REF][FIX] Demo data. --- .../demo/account_banking_payment_demo.xml | 1 - l10n_br_account_payment_order/demo/payment_demo.xml | 3 --- 2 files changed, 4 deletions(-) diff --git a/l10n_br_account_payment_order/demo/account_banking_payment_demo.xml b/l10n_br_account_payment_order/demo/account_banking_payment_demo.xml index a5cb7d0cf4b4..e2101c7ad025 100644 --- a/l10n_br_account_payment_order/demo/account_banking_payment_demo.xml +++ b/l10n_br_account_payment_order/demo/account_banking_payment_demo.xml @@ -11,7 +11,6 @@ - Test Payment Order diff --git a/l10n_br_account_payment_order/demo/payment_demo.xml b/l10n_br_account_payment_order/demo/payment_demo.xml index a9176a8c8125..49cd5b1edb94 100644 --- a/l10n_br_account_payment_order/demo/payment_demo.xml +++ b/l10n_br_account_payment_order/demo/payment_demo.xml @@ -119,9 +119,6 @@ Diário de Banco(teste l10n_br_account_payment_order) TPO sale - From f037b6f736fd72c6110a1021601f3f3a45012ab4 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Tue, 21 May 2019 15:21:36 -0300 Subject: [PATCH 012/342] [REF][FIX] Name demo data files to standard. --- l10n_br_account_payment_order/__manifest__.py | 4 ++-- .../demo/{payment_demo.xml => account_payment_mode_demo.xml} | 0 ...anking_payment_demo.xml => account_payment_order_demo.xml} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename l10n_br_account_payment_order/demo/{payment_demo.xml => account_payment_mode_demo.xml} (100%) rename l10n_br_account_payment_order/demo/{account_banking_payment_demo.xml => account_payment_order_demo.xml} (100%) diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index 6257e8020640..76f8f4b7023c 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -22,8 +22,8 @@ 'views/account_payment_mode.xml', ], 'demo': [ - 'demo/account_banking_payment_demo.xml', - 'demo/payment_demo.xml' + 'demo/account_payment_order_demo.xml', + 'demo/account_payment_mode_demo.xml' ], 'installable': True, } diff --git a/l10n_br_account_payment_order/demo/payment_demo.xml b/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml similarity index 100% rename from l10n_br_account_payment_order/demo/payment_demo.xml rename to l10n_br_account_payment_order/demo/account_payment_mode_demo.xml diff --git a/l10n_br_account_payment_order/demo/account_banking_payment_demo.xml b/l10n_br_account_payment_order/demo/account_payment_order_demo.xml similarity index 100% rename from l10n_br_account_payment_order/demo/account_banking_payment_demo.xml rename to l10n_br_account_payment_order/demo/account_payment_order_demo.xml From 6b545d048d4d4bf7bbfa30a42edb06dbf619238b Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Tue, 21 May 2019 15:41:09 -0300 Subject: [PATCH 013/342] [REF] Update module information. --- l10n_br_account_payment_order/README.rst | 19 +++-- l10n_br_account_payment_order/__manifest__.py | 4 +- .../readme/HISTORY.rst | 4 +- .../static/description/index.html | 79 ++++++++++--------- 4 files changed, 59 insertions(+), 47 deletions(-) diff --git a/l10n_br_account_payment_order/README.rst b/l10n_br_account_payment_order/README.rst index a91150415ce5..1a5d59b9498a 100644 --- a/l10n_br_account_payment_order/README.rst +++ b/l10n_br_account_payment_order/README.rst @@ -1,6 +1,6 @@ -============================================================ -Brazilian Banking - Debit and Payments Export Infrastructure -============================================================ +======================= +Brazilian Payment Order +======================= .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! @@ -14,10 +14,10 @@ Brazilian Banking - Debit and Payments Export Infrastructure :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/10.0/l10n_br_account_banking_payment + :target: https://github.com/OCA/l10n-brazil/tree/10.0/l10n_br_account_payment_order :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-10-0/l10n-brazil-10-0-l10n_br_account_banking_payment + :target: https://translation.odoo-community.org/projects/l10n-brazil-10-0/l10n-brazil-10-0-l10n_br_account_payment_order :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png :target: https://runbot.odoo-community.org/runbot/124/10.0 @@ -80,13 +80,18 @@ Changelog * [MIG] Migração para a versão 10. +10.0.2.0.0 (2018-05-17) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [REF] Modulo unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order. + Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -128,6 +133,6 @@ 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. -This module is part of the `OCA/l10n-brazil `_ project on GitHub. +This module is part of the `OCA/l10n-brazil `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index 76f8f4b7023c..bb38fa93402c 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -5,11 +5,11 @@ { 'name': 'Brazilian Payment Order', - 'version': '10.0.1.0.0', + 'version': '10.0.2.0.0', 'license': 'AGPL-3', 'author': "KMEE, " "Odoo Community Association (OCA)", - 'website': 'https://github.com/odoo-brazil/odoo-brazil-banking', + 'website': 'https://github.com/OCA/l10n-brazil', 'category': 'Banking addons', 'depends': [ 'l10n_br_account', diff --git a/l10n_br_account_payment_order/readme/HISTORY.rst b/l10n_br_account_payment_order/readme/HISTORY.rst index 756aa595848a..d298f0fdbc70 100644 --- a/l10n_br_account_payment_order/readme/HISTORY.rst +++ b/l10n_br_account_payment_order/readme/HISTORY.rst @@ -19,7 +19,7 @@ * [MIG] Migração para a versão 10. -10.0.1.0.0 (2018-05-17) +10.0.2.0.0 (2018-05-17) ~~~~~~~~~~~~~~~~~~~~~~~ -* [REF] Modulo foi unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order. \ No newline at end of file +* [REF] Modulo unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order. \ No newline at end of file diff --git a/l10n_br_account_payment_order/static/description/index.html b/l10n_br_account_payment_order/static/description/index.html index 6b2c18633fab..6c5f6b99054f 100644 --- a/l10n_br_account_payment_order/static/description/index.html +++ b/l10n_br_account_payment_order/static/description/index.html @@ -4,7 +4,7 @@ -Brazilian Banking - Debit and Payments Export Infrastructure +Brazilian Payment Order -
-

Brazilian Banking - Debit and Payments Export Infrastructure

+
+

Brazilian Payment Order

-

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runbot

This module provides an infrastructure to export payment orders and debit orders

Table of contents

-

Installation

+

Installation

This module depends on:

-

Configuration

+

Configuration

No configuration required.

-

Usage

+

Usage

This module provides a menu to configure payment order types : Accounting > Configuration > Miscellaneous > Payment Export Types

-

Changelog

+

Changelog

-

8.0.1.0.0 (2017-07-14)

+

8.0.1.0.0 (2017-07-14)

  • [NEW] Melhoiras para suportar a geração de pagamento da folha de pagamento;
-

8.0.1.0.1 (2017-07-14)

+

8.0.1.0.1 (2017-07-14)

  • [NEW] Refatoração e melhorias para suportar a geração de boletos através do br-cobranca (ruby)
-

10.0.1.0.0 (2018-08-29)

+

10.0.1.0.0 (2018-08-29)

  • [MIG] Migração para a versão 10.
+
+

10.0.2.0.0 (2018-05-17)

+
    +
  • [REF] Modulo unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order.
  • +
+
-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • KMEE
-

Contributors

+

Contributors

-

Other credits

+

Other credits

The development of this module has been financially supported by:

  • KMEE INFORMATICA LTDA - www.kmee.com.br
  • @@ -477,13 +484,13 @@

    Other credits

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

-

This module is part of the OCA/l10n-brazil project on GitHub.

+

This module is part of the OCA/l10n-brazil project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From fe56c7144b70907fffa2b252d258a148142f3f82 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Tue, 28 May 2019 18:43:31 -0300 Subject: [PATCH 014/342] [REF] Removed fields because we should use logical inbound/outbound instead of 'cobranca' and CNAB related fields should be implemented in the below module. --- .../demo/account_payment_mode_demo.xml | 9 --------- l10n_br_account_payment_order/models/__init__.py | 2 -- .../models/account_payment_method.py | 15 --------------- .../models/account_payment_order.py | 15 --------------- .../views/account_payment_mode.xml | 10 ++++------ 5 files changed, 4 insertions(+), 47 deletions(-) delete mode 100644 l10n_br_account_payment_order/models/account_payment_method.py delete mode 100644 l10n_br_account_payment_order/models/account_payment_order.py diff --git a/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml b/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml index 49cd5b1edb94..e0abe1bb8fb8 100644 --- a/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml +++ b/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml @@ -123,13 +123,6 @@ - - - Cobranca - cobranca - cobranca - - Boleto Bancario @@ -137,8 +130,6 @@ variable - diff --git a/l10n_br_account_payment_order/models/__init__.py b/l10n_br_account_payment_order/models/__init__.py index 4525f59d8157..0aa12cd62ded 100644 --- a/l10n_br_account_payment_order/models/__init__.py +++ b/l10n_br_account_payment_order/models/__init__.py @@ -7,5 +7,3 @@ from . import account_move_line from . import account_payment_mode from . import res_partner_bank -from . import account_payment_method -from . import account_payment_order diff --git a/l10n_br_account_payment_order/models/account_payment_method.py b/l10n_br_account_payment_order/models/account_payment_method.py deleted file mode 100644 index 325622c4c923..000000000000 --- a/l10n_br_account_payment_order/models/account_payment_method.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# @ 2019 Akretion - www.akretion.com.br - -# Magno Costa -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) - -from odoo import models, fields - - -class AccountPaymentMethod(models.Model): - _inherit = 'account.payment.method' - - payment_type = fields.Selection( - selection_add=[ - ('cobranca', u'Cobrança'), - ]) diff --git a/l10n_br_account_payment_order/models/account_payment_order.py b/l10n_br_account_payment_order/models/account_payment_order.py deleted file mode 100644 index 5a5c42ed804b..000000000000 --- a/l10n_br_account_payment_order/models/account_payment_order.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -# @ 2019 Akretion - www.akretion.com.br - -# Magno Costa -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) - -from odoo import models, fields - - -class AccountPaymentOrder(models.Model): - _inherit = 'account.payment.order' - - payment_type = fields.Selection( - selection_add=[ - ('cobranca', u'Cobrança'), - ]) diff --git a/l10n_br_account_payment_order/views/account_payment_mode.xml b/l10n_br_account_payment_order/views/account_payment_mode.xml index 77ead7595509..a7981045856c 100644 --- a/l10n_br_account_payment_order/views/account_payment_mode.xml +++ b/l10n_br_account_payment_order/views/account_payment_mode.xml @@ -11,20 +11,18 @@ - + - + - - + + From 50ad71ff605a394305f5385de219f8a8281b8a85 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Thu, 6 Jun 2019 15:34:58 -0300 Subject: [PATCH 015/342] [12.0][MIG] Updated version and dependencies. --- l10n_br_account_payment_order/__manifest__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index bb38fa93402c..8170e07665ff 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -5,14 +5,15 @@ { 'name': 'Brazilian Payment Order', - 'version': '10.0.2.0.0', + 'version': '12.0.1.0.0', 'license': 'AGPL-3', 'author': "KMEE, " "Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/l10n-brazil', 'category': 'Banking addons', 'depends': [ - 'l10n_br_account', + 'l10n_br', + 'l10n_br_base', 'account_payment_order', 'account_due_list', ], From 79de298d1a2c993ab5b35be544e37535595b6414 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Thu, 6 Jun 2019 15:36:22 -0300 Subject: [PATCH 016/342] [12.0][MIG] Updated code. --- l10n_br_account_payment_order/models/account_payment_line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l10n_br_account_payment_order/models/account_payment_line.py b/l10n_br_account_payment_order/models/account_payment_line.py index 630a4dcb38be..091eaa394eb8 100644 --- a/l10n_br_account_payment_order/models/account_payment_line.py +++ b/l10n_br_account_payment_order/models/account_payment_line.py @@ -16,10 +16,10 @@ def _get_info_partner(self, partner_record): if not partner_record: return False st = partner_record.street or '' - n = partner_record.number or '' + n = partner_record.street_number or '' st1 = partner_record.street2 or '' zip = partner_record.zip or '' - city = partner_record.l10n_br_city_id.name or '' + city = partner_record.city_id.name or '' uf = partner_record.state_id.code or '' zip_city = city + '-' + uf + '\n' + zip cntry = partner_record.country_id and \ From a974b5fd9c767ad84b3e9bb6851840de3c34561c Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Thu, 6 Jun 2019 15:38:59 -0300 Subject: [PATCH 017/342] [12.0][MIG] Updated demo data. --- .../demo/account_payment_mode_demo.xml | 2 -- .../demo/account_payment_order_demo.xml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml b/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml index e0abe1bb8fb8..b298e189e4a8 100644 --- a/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml +++ b/l10n_br_account_payment_order/demo/account_payment_mode_demo.xml @@ -119,7 +119,6 @@ Diário de Banco(teste l10n_br_account_payment_order) TPO sale - @@ -128,7 +127,6 @@ Boleto Bancario variable - diff --git a/l10n_br_account_payment_order/demo/account_payment_order_demo.xml b/l10n_br_account_payment_order/demo/account_payment_order_demo.xml index e2101c7ad025..2c4039de0806 100644 --- a/l10n_br_account_payment_order/demo/account_payment_order_demo.xml +++ b/l10n_br_account_payment_order/demo/account_payment_order_demo.xml @@ -24,7 +24,7 @@ [E-COM06] Computador Personalizado (kit) - + 100 10 From 459b563b32449fba5dda90942ed62d8cfb0e8576 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Thu, 6 Jun 2019 15:40:15 -0300 Subject: [PATCH 018/342] [12.0][MIG] Updated tests. --- .../tests/test_payment_order.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/l10n_br_account_payment_order/tests/test_payment_order.py b/l10n_br_account_payment_order/tests/test_payment_order.py index 8e74fd2bbe66..73bf51a30162 100644 --- a/l10n_br_account_payment_order/tests/test_payment_order.py +++ b/l10n_br_account_payment_order/tests/test_payment_order.py @@ -30,16 +30,6 @@ def setUp(self): # I check that Initially customer invoice is in the "Draft" state self.assertEquals(self.invoice_customer_original.state, 'draft') - # I change the state of invoice to "Proforma2" by clicking - # PRO-FORMA button - self.invoice_customer_original.action_invoice_proforma2() - - # I check that the invoice state is now "Proforma2" - self.assertEquals(self.invoice_customer_original.state, 'proforma2') - - # I check that there is no move attached to the invoice - self.assertEquals(len(self.invoice_customer_original.move_id), 0) - # I validate invoice by creating on self.invoice_customer_original.action_invoice_open() @@ -59,11 +49,11 @@ def test_implemented_fields_payment_order(self): lambda l: l.account_id.id == self.invoice_customer_original.account_id.id): self.assertEquals( - line.journal_entry_ref, 'INV/2019/0004', + line.journal_entry_ref, 'INV/2019/0001', "Error with compute field journal_entry_ref") test_balance_value = line.get_balance() self.assertEquals( - test_balance_value, 700.0, + test_balance_value, 300.0, "Error with method get_balance()") def test_cancel_payment_order(self): @@ -93,7 +83,7 @@ def test_cancel_payment_order(self): ) test_amount_interest = line.amount_interest self.assertEquals( - test_amount_interest, 10.5, + test_amount_interest, 4.5, "Error with compute field amount_interest.") # Open payment order From 41c85aa53ba5d6eb571cd1e4a7a138083ce3358a Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Thu, 6 Jun 2019 16:03:56 -0300 Subject: [PATCH 019/342] [12.0][MIG] Updated README. --- l10n_br_account_payment_order/README.rst | 18 +++-- .../readme/HISTORY.rst | 7 +- .../readme/INSTALL.rst | 3 +- .../static/description/index.html | 80 ++++++++++--------- 4 files changed, 64 insertions(+), 44 deletions(-) diff --git a/l10n_br_account_payment_order/README.rst b/l10n_br_account_payment_order/README.rst index 1a5d59b9498a..6550fc56eeff 100644 --- a/l10n_br_account_payment_order/README.rst +++ b/l10n_br_account_payment_order/README.rst @@ -14,13 +14,13 @@ Brazilian Payment Order :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/10.0/l10n_br_account_payment_order + :target: https://github.com/OCA/l10n-brazil/tree/12.0/l10n_br_account_payment_order :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-10-0/l10n-brazil-10-0-l10n_br_account_payment_order + :target: https://translation.odoo-community.org/projects/l10n-brazil-12-0/l10n-brazil-12-0-l10n_br_account_payment_order :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/124/10.0 + :target: https://runbot.odoo-community.org/runbot/124/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -39,7 +39,8 @@ This module depends on: * account_payment_order * account_due_list -* l10n_br_account +* l10n_br_base +* l10n_br Configuration ============= @@ -85,13 +86,18 @@ Changelog * [REF] Modulo unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order. +12.0.1.0.0 (2019-06-06) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [MIG] Migração para a versão 12.0. + Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -133,6 +139,6 @@ 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. -This module is part of the `OCA/l10n-brazil `_ project on GitHub. +This module is part of the `OCA/l10n-brazil `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_br_account_payment_order/readme/HISTORY.rst b/l10n_br_account_payment_order/readme/HISTORY.rst index d298f0fdbc70..f9edf64f0b04 100644 --- a/l10n_br_account_payment_order/readme/HISTORY.rst +++ b/l10n_br_account_payment_order/readme/HISTORY.rst @@ -22,4 +22,9 @@ 10.0.2.0.0 (2018-05-17) ~~~~~~~~~~~~~~~~~~~~~~~ -* [REF] Modulo unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order. \ No newline at end of file +* [REF] Modulo unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order. + +12.0.1.0.0 (2019-06-06) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [MIG] Migração para a versão 12.0. \ No newline at end of file diff --git a/l10n_br_account_payment_order/readme/INSTALL.rst b/l10n_br_account_payment_order/readme/INSTALL.rst index af8821f46cad..fe2cde839caf 100644 --- a/l10n_br_account_payment_order/readme/INSTALL.rst +++ b/l10n_br_account_payment_order/readme/INSTALL.rst @@ -2,4 +2,5 @@ This module depends on: * account_payment_order * account_due_list -* l10n_br_account \ No newline at end of file +* l10n_br_base +* l10n_br \ No newline at end of file diff --git a/l10n_br_account_payment_order/static/description/index.html b/l10n_br_account_payment_order/static/description/index.html index 6c5f6b99054f..0e7d335cca70 100644 --- a/l10n_br_account_payment_order/static/description/index.html +++ b/l10n_br_account_payment_order/static/description/index.html @@ -367,107 +367,115 @@

Brazilian Payment Order

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/l10n-brazil Translate me on Weblate Try me on Runbot

This module provides an infrastructure to export payment orders and debit orders

Table of contents

-

Installation

+

Installation

This module depends on:

  • account_payment_order
  • account_due_list
  • -
  • l10n_br_account
  • +
  • l10n_br_base
  • +
  • l10n_br
-

Configuration

+

Configuration

No configuration required.

-

Usage

+

Usage

This module provides a menu to configure payment order types : Accounting > Configuration > Miscellaneous > Payment Export Types

-

Changelog

+

Changelog

-

8.0.1.0.0 (2017-07-14)

+

8.0.1.0.0 (2017-07-14)

  • [NEW] Melhoiras para suportar a geração de pagamento da folha de pagamento;
-

8.0.1.0.1 (2017-07-14)

+

8.0.1.0.1 (2017-07-14)

  • [NEW] Refatoração e melhorias para suportar a geração de boletos através do br-cobranca (ruby)
-

10.0.1.0.0 (2018-08-29)

+

10.0.1.0.0 (2018-08-29)

  • [MIG] Migração para a versão 10.
-

10.0.2.0.0 (2018-05-17)

+

10.0.2.0.0 (2018-05-17)

  • [REF] Modulo unido com o l10n_br_account_payment_mode e renomeado para l10n_br_account_payment_order.
+
+

12.0.1.0.0 (2019-06-06)

+
    +
  • [MIG] Migração para a versão 12.0.
  • +
+
-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • KMEE
-

Contributors

+

Contributors

-

Other credits

+

Other credits

The development of this module has been financially supported by:

  • KMEE INFORMATICA LTDA - www.kmee.com.br
  • @@ -484,13 +492,13 @@

    Other credits

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

-

This module is part of the OCA/l10n-brazil project on GitHub.

+

This module is part of the OCA/l10n-brazil project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From 8c42189f388b0c784a50e14c4fa4ab9c44d4c2e0 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Thu, 6 Jun 2019 16:14:52 -0300 Subject: [PATCH 020/342] [12.0][MIG] Removed code unnecessary on python 3. --- l10n_br_account_payment_order/__init__.py | 1 - l10n_br_account_payment_order/__manifest__.py | 1 - l10n_br_account_payment_order/models/__init__.py | 1 - .../models/account_move_line.py | 1 - .../models/account_payment_line.py | 7 +++---- .../models/account_payment_mode.py | 9 ++++----- l10n_br_account_payment_order/models/res_partner_bank.py | 1 - l10n_br_account_payment_order/tests/__init__.py | 1 - .../tests/test_payment_order.py | 1 - 9 files changed, 7 insertions(+), 16 deletions(-) diff --git a/l10n_br_account_payment_order/__init__.py b/l10n_br_account_payment_order/__init__.py index 2ca9c93087c6..11edac49f06d 100644 --- a/l10n_br_account_payment_order/__init__.py +++ b/l10n_br_account_payment_order/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2016-Today - KMEE (). # Luis Felipe Miléo - mileo@kmee.com.br # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index 8170e07665ff..328d2acd40f1 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2016-Today - KMEE (). # Luis Felipe Miléo - mileo@kmee.com.br # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/l10n_br_account_payment_order/models/__init__.py b/l10n_br_account_payment_order/models/__init__.py index 0aa12cd62ded..5d7ced1b141a 100644 --- a/l10n_br_account_payment_order/models/__init__.py +++ b/l10n_br_account_payment_order/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2016-Today - KMEE (). # Luis Felipe Miléo - mileo@kmee.com.br # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/l10n_br_account_payment_order/models/account_move_line.py b/l10n_br_account_payment_order/models/account_move_line.py index becaa3e6f448..1bc0125a5387 100644 --- a/l10n_br_account_payment_order/models/account_move_line.py +++ b/l10n_br_account_payment_order/models/account_move_line.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2016-Today - KMEE (). # Luis Felipe Miléo - mileo@kmee.com.br # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). diff --git a/l10n_br_account_payment_order/models/account_payment_line.py b/l10n_br_account_payment_order/models/account_payment_line.py index 091eaa394eb8..3dea69205e11 100644 --- a/l10n_br_account_payment_order/models/account_payment_line.py +++ b/l10n_br_account_payment_order/models/account_payment_line.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2016-Today - KMEE (). # Luis Felipe Miléo - mileo@kmee.com.br # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -38,9 +37,9 @@ def _compute_interest(self): record.amount_currency * ( record.percent_interest / 100), precision) - linha_digitavel = fields.Char(string=u"Linha Digitável") - percent_interest = fields.Float(string=u"Percentual de Juros", + linha_digitavel = fields.Char(string="Linha Digitável") + percent_interest = fields.Float(string="Percentual de Juros", digits=dp.get_precision('Account')) - amount_interest = fields.Float(string=u"Valor Juros", + amount_interest = fields.Float(string="Valor Juros", compute='_compute_interest', digits=dp.get_precision('Account')) diff --git a/l10n_br_account_payment_order/models/account_payment_mode.py b/l10n_br_account_payment_order/models/account_payment_mode.py index 40c04a495f89..1beccef94ff2 100644 --- a/l10n_br_account_payment_order/models/account_payment_mode.py +++ b/l10n_br_account_payment_order/models/account_payment_mode.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2012-Today - KMEE (). # @author Luis Felipe Miléo - mileo@kmee.com.br # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -9,13 +8,13 @@ class AccountPaymentMode(models.Model): _inherit = 'account.payment.mode' - internal_sequence_id = fields.Many2one('ir.sequence', u'Sequência') - instrucoes = fields.Text(u'Instruções de cobrança') + internal_sequence_id = fields.Many2one('ir.sequence', 'Sequência') + instrucoes = fields.Text('Instruções de cobrança') invoice_print = fields.Boolean( - u'Gerar relatorio na conclusão da fatura?') + 'Gerar relatorio na conclusão da fatura?') _sql_constraints = [ ('internal_sequence_id_unique', 'unique(internal_sequence_id)', - u'Sequência já usada! Crie uma sequência unica para cada modo') + 'Sequência já usada! Crie uma sequência unica para cada modo') ] diff --git a/l10n_br_account_payment_order/models/res_partner_bank.py b/l10n_br_account_payment_order/models/res_partner_bank.py index 64fdbf30c53f..5c275ba410aa 100644 --- a/l10n_br_account_payment_order/models/res_partner_bank.py +++ b/l10n_br_account_payment_order/models/res_partner_bank.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # @ 2018 Akretion - www.akretion.com.br - # Magno Costa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) diff --git a/l10n_br_account_payment_order/tests/__init__.py b/l10n_br_account_payment_order/tests/__init__.py index c59a89fa7dd5..c1180c63ef51 100644 --- a/l10n_br_account_payment_order/tests/__init__.py +++ b/l10n_br_account_payment_order/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # @ 2018 Akretion - www.akretion.com.br - # Magno Costa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) diff --git a/l10n_br_account_payment_order/tests/test_payment_order.py b/l10n_br_account_payment_order/tests/test_payment_order.py index 73bf51a30162..3eee4bf21f7f 100644 --- a/l10n_br_account_payment_order/tests/test_payment_order.py +++ b/l10n_br_account_payment_order/tests/test_payment_order.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # @ 2018 Akretion - www.akretion.com.br - # Magno Costa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) From 8cff1924683d8cdad5335cd029343b6e800ccca3 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Thu, 6 Jun 2019 16:25:44 -0300 Subject: [PATCH 021/342] [12.0][MIG] Updated Views to better names. --- .../views/account_due_list.xml | 6 +++-- .../views/account_payment_line.xml | 24 +++++++++---------- .../views/account_payment_mode.xml | 2 +- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/l10n_br_account_payment_order/views/account_due_list.xml b/l10n_br_account_payment_order/views/account_due_list.xml index bd3a6977052a..2269b063c65d 100644 --- a/l10n_br_account_payment_order/views/account_due_list.xml +++ b/l10n_br_account_payment_order/views/account_due_list.xml @@ -1,7 +1,8 @@ - - l10n_br_account_banking_payment.aml + + + l10n_br_account_payment_order.aml account.move.line @@ -10,4 +11,5 @@ + diff --git a/l10n_br_account_payment_order/views/account_payment_line.xml b/l10n_br_account_payment_order/views/account_payment_line.xml index 0008ef106606..5688a0b812cb 100644 --- a/l10n_br_account_payment_order/views/account_payment_line.xml +++ b/l10n_br_account_payment_order/views/account_payment_line.xml @@ -6,17 +6,17 @@ --> - - l10n_br_account.payment.line.form.banking - account.payment.line - - - - - - - - + + l10n_br_account.payment.line.form.banking + account.payment.line + + + + + + + + diff --git a/l10n_br_account_payment_order/views/account_payment_mode.xml b/l10n_br_account_payment_order/views/account_payment_mode.xml index a7981045856c..343aa05514c2 100644 --- a/l10n_br_account_payment_order/views/account_payment_mode.xml +++ b/l10n_br_account_payment_order/views/account_payment_mode.xml @@ -2,7 +2,7 @@ - + payment.mode.l10n_br_payment.form.inherit account.payment.mode From 359bf07b7979ed09aceb6fb30f367ddde8a49f51 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Thu, 6 Jun 2019 16:53:17 -0300 Subject: [PATCH 022/342] [12.0][FIX] Tests need to be made with the same commands that Travis does, because if not you get different results. --- l10n_br_account_payment_order/tests/test_payment_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_br_account_payment_order/tests/test_payment_order.py b/l10n_br_account_payment_order/tests/test_payment_order.py index 3eee4bf21f7f..ef47ca9b3cb4 100644 --- a/l10n_br_account_payment_order/tests/test_payment_order.py +++ b/l10n_br_account_payment_order/tests/test_payment_order.py @@ -48,7 +48,7 @@ def test_implemented_fields_payment_order(self): lambda l: l.account_id.id == self.invoice_customer_original.account_id.id): self.assertEquals( - line.journal_entry_ref, 'INV/2019/0001', + line.journal_entry_ref, 'INV/2019/0005', "Error with compute field journal_entry_ref") test_balance_value = line.get_balance() self.assertEquals( From daf6d48068b36bc5b7137700440a224cafbaad61 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Tue, 17 Dec 2019 15:00:12 -0300 Subject: [PATCH 023/342] [12.0][MIG][FIX] Remove dependency from module l10n_br. --- l10n_br_account_payment_order/README.rst | 1 - l10n_br_account_payment_order/__manifest__.py | 1 - l10n_br_account_payment_order/readme/INSTALL.rst | 1 - l10n_br_account_payment_order/static/description/index.html | 1 - 4 files changed, 4 deletions(-) diff --git a/l10n_br_account_payment_order/README.rst b/l10n_br_account_payment_order/README.rst index 6550fc56eeff..20d8f3c607d2 100644 --- a/l10n_br_account_payment_order/README.rst +++ b/l10n_br_account_payment_order/README.rst @@ -40,7 +40,6 @@ This module depends on: * account_payment_order * account_due_list * l10n_br_base -* l10n_br Configuration ============= diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index 328d2acd40f1..1832046fe885 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -11,7 +11,6 @@ 'website': 'https://github.com/OCA/l10n-brazil', 'category': 'Banking addons', 'depends': [ - 'l10n_br', 'l10n_br_base', 'account_payment_order', 'account_due_list', diff --git a/l10n_br_account_payment_order/readme/INSTALL.rst b/l10n_br_account_payment_order/readme/INSTALL.rst index fe2cde839caf..b0991162ac57 100644 --- a/l10n_br_account_payment_order/readme/INSTALL.rst +++ b/l10n_br_account_payment_order/readme/INSTALL.rst @@ -3,4 +3,3 @@ This module depends on: * account_payment_order * account_due_list * l10n_br_base -* l10n_br \ No newline at end of file diff --git a/l10n_br_account_payment_order/static/description/index.html b/l10n_br_account_payment_order/static/description/index.html index 0e7d335cca70..0af63acc7d6a 100644 --- a/l10n_br_account_payment_order/static/description/index.html +++ b/l10n_br_account_payment_order/static/description/index.html @@ -402,7 +402,6 @@

Installation

  • account_payment_order
  • account_due_list
  • l10n_br_base
  • -
  • l10n_br
  • From 3e38cf3646aefe96d91b635b041283023db334b2 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Wed, 18 Dec 2019 13:10:08 -0300 Subject: [PATCH 024/342] [12.0][MIG][FIX] Included dependency from module account_cancel to allow cancel Posted journal entries. --- l10n_br_account_payment_order/__manifest__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index 1832046fe885..234f3a155dac 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -14,6 +14,7 @@ 'l10n_br_base', 'account_payment_order', 'account_due_list', + 'account_cancel', ], 'data': [ 'views/account_due_list.xml', From f833548a3c52672f9d759a6f93a7850352827e3c Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Wed, 18 Dec 2019 13:12:43 -0300 Subject: [PATCH 025/342] [12.0][MIG] Change the value of field journal_entry_ref. --- .../models/account_move_line.py | 22 +++++++++-------- .../tests/test_payment_order.py | 24 ++++++++++++++++++- 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/l10n_br_account_payment_order/models/account_move_line.py b/l10n_br_account_payment_order/models/account_move_line.py index 1bc0125a5387..737c890bb073 100644 --- a/l10n_br_account_payment_order/models/account_move_line.py +++ b/l10n_br_account_payment_order/models/account_move_line.py @@ -10,19 +10,21 @@ class AccountMoveLine(models.Model): date_scheduled = fields.Date(string='Data Prevista') - @api.multi - def _get_journal_entry_ref(self): + @api.depends('move_id') + def _compute_journal_entry_ref(self): for record in self: - if record.move_id.state == 'draft': - if record.invoice.id: - record.journal_entry_ref = record.invoice.number - else: - record.journal_entry_ref = '*' + str(record.move_id.id) - else: + if record.name: + record.journal_entry_ref = record.name + elif record.move_id.name: record.journal_entry_ref = record.move_id.name + elif record.invoice_id and record.invoice_id.number: + record.journal_entry_ref = record.invoice_id.number + else: + record.journal_entry_ref = '*' + str(record.move_id.id) - journal_entry_ref = fields.Char(compute=_get_journal_entry_ref, - string='Journal Entry Ref') + journal_entry_ref = fields.Char( + compute='_compute_journal_entry_ref', + string='Journal Entry Ref', store=True) @api.multi def get_balance(self): diff --git a/l10n_br_account_payment_order/tests/test_payment_order.py b/l10n_br_account_payment_order/tests/test_payment_order.py index ef47ca9b3cb4..ed2600639a11 100644 --- a/l10n_br_account_payment_order/tests/test_payment_order.py +++ b/l10n_br_account_payment_order/tests/test_payment_order.py @@ -12,6 +12,7 @@ class TestPaymentOrder(TransactionCase): def setUp(self): super(TestPaymentOrder, self).setUp() + # Get Invoice for test self.invoice_customer_original = self.env.ref( 'l10n_br_account_payment_order.demo_invoice_payment_order' ) @@ -21,11 +22,16 @@ def setUp(self): 'account_payment_mode.payment_mode_inbound_ct1' ) + self.env['account.payment.order'].search([]) + # Configure to be possibile create Payment Order self.payment_mode.payment_order_ok = True self.invoice_customer_original.payment_mode_id = self.payment_mode.id + # Configure Journal to update posted + self.invoice_customer_original.journal_id.update_posted = True + # I check that Initially customer invoice is in the "Draft" state self.assertEquals(self.invoice_customer_original.state, 'draft') @@ -44,13 +50,29 @@ def test_implemented_fields_payment_order(self): # Check Payment Mode field assert self.invoice_customer_original.payment_mode_id, \ "Payment Mode field is not filled." + + # Change status of Move to draft just to test + self.invoice_customer_original.move_id.button_cancel() + for line in self.invoice_customer_original.move_id.line_ids.filtered( lambda l: l.account_id.id == self.invoice_customer_original.account_id.id): self.assertEquals( - line.journal_entry_ref, 'INV/2019/0005', + line.journal_entry_ref, line.invoice_id.name, "Error with compute field journal_entry_ref") test_balance_value = line.get_balance() + + # Return the status of Move to Posted + self.invoice_customer_original.move_id.action_post() + + for line in self.invoice_customer_original.move_id.line_ids.filtered( + lambda l: l.account_id.id == + self.invoice_customer_original.account_id.id): + self.assertEquals( + line.journal_entry_ref, line.invoice_id.name, + "Error with compute field journal_entry_ref") + test_balance_value = line.get_balance() + self.assertEquals( test_balance_value, 300.0, "Error with method get_balance()") From b8f217465e030d0c8c4ca8967ac6b831f1c5f6af Mon Sep 17 00:00:00 2001 From: Daniel Sadamo Hirayama Date: Wed, 29 May 2019 17:40:33 -0300 Subject: [PATCH 026/342] [WIP][FIX]l10n_br_account_payment_cobranca views --- l10n_br_account_payment_order/views/account_payment_mode.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_br_account_payment_order/views/account_payment_mode.xml b/l10n_br_account_payment_order/views/account_payment_mode.xml index 343aa05514c2..eb66004640fa 100644 --- a/l10n_br_account_payment_order/views/account_payment_mode.xml +++ b/l10n_br_account_payment_order/views/account_payment_mode.xml @@ -20,7 +20,7 @@ - + From fcd110ea6ad7ee85ae57cc363fa6cf42cfee7c8e Mon Sep 17 00:00:00 2001 From: Luis Felipe Mileo Date: Thu, 30 May 2019 00:24:35 -0300 Subject: [PATCH 027/342] [IMP] Nome aos grupos account.payment.mode Signed-off-by: Luis Felipe Mileo Signed-off-by: Luis Felipe Mileo --- .../views/account_payment_mode.xml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/l10n_br_account_payment_order/views/account_payment_mode.xml b/l10n_br_account_payment_order/views/account_payment_mode.xml index eb66004640fa..04da60a12fc7 100644 --- a/l10n_br_account_payment_order/views/account_payment_mode.xml +++ b/l10n_br_account_payment_order/views/account_payment_mode.xml @@ -9,17 +9,10 @@ - - - - - - - - - - - + + + + From 6452e7d5f409c859dd642658de19e6cf711a44fd Mon Sep 17 00:00:00 2001 From: Diego Paradeda Date: Fri, 7 Jun 2019 18:54:58 -0300 Subject: [PATCH 028/342] [ADD] Account payment order categ submenu --- l10n_br_account_payment_order/__manifest__.py | 1 + .../views/account_payment_order_menu_views.xml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 l10n_br_account_payment_order/views/account_payment_order_menu_views.xml diff --git a/l10n_br_account_payment_order/__manifest__.py b/l10n_br_account_payment_order/__manifest__.py index 234f3a155dac..64295dad1712 100644 --- a/l10n_br_account_payment_order/__manifest__.py +++ b/l10n_br_account_payment_order/__manifest__.py @@ -17,6 +17,7 @@ 'account_cancel', ], 'data': [ + 'views/account_payment_order_menu_views.xml', 'views/account_due_list.xml', 'views/account_payment_line.xml', 'views/account_payment_mode.xml', diff --git a/l10n_br_account_payment_order/views/account_payment_order_menu_views.xml b/l10n_br_account_payment_order/views/account_payment_order_menu_views.xml new file mode 100644 index 000000000000..644feb40796f --- /dev/null +++ b/l10n_br_account_payment_order/views/account_payment_order_menu_views.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + \ No newline at end of file From 037e6de7f9be26f35dbb9912c5b3ca6ccaf09eca Mon Sep 17 00:00:00 2001 From: Hugo Borges Date: Mon, 26 Aug 2019 17:32:39 -0300 Subject: [PATCH 029/342] [FIX] typo --- l10n_br_account_payment_order/views/account_payment_mode.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_br_account_payment_order/views/account_payment_mode.xml b/l10n_br_account_payment_order/views/account_payment_mode.xml index 04da60a12fc7..e0d6d9218a6c 100644 --- a/l10n_br_account_payment_order/views/account_payment_mode.xml +++ b/l10n_br_account_payment_order/views/account_payment_mode.xml @@ -9,7 +9,7 @@ - + From 52102ac0398b19dcdb24fb9ae0d0892049033751 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Wed, 18 Dec 2019 16:27:20 -0300 Subject: [PATCH 030/342] [12.0][MIG][FIX] Missing inform action on menuitem. --- .../views/account_payment_order_menu_views.xml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/l10n_br_account_payment_order/views/account_payment_order_menu_views.xml b/l10n_br_account_payment_order/views/account_payment_order_menu_views.xml index 644feb40796f..46ebff96897a 100644 --- a/l10n_br_account_payment_order/views/account_payment_order_menu_views.xml +++ b/l10n_br_account_payment_order/views/account_payment_order_menu_views.xml @@ -7,11 +7,17 @@ + parent="menu_remessa_categ" + action="account_payment_order.account_payment_order_outbound_action" + sequence="10"/> + parent="menu_remessa_categ" + action="account_payment_order.account_payment_order_inbound_action" + sequence="20"/> - \ No newline at end of file + parent="menu_remessa_categ" + action="account_payment_order.bank_payment_line_action" + sequence="50"/> + From 391c5d0115932a74c09d39b7a0ebb8198770e3a2 Mon Sep 17 00:00:00 2001 From: Magno Costa Date: Wed, 18 Dec 2019 16:30:18 -0300 Subject: [PATCH 031/342] [12.0][MIG][IMP] Tests, included test to check constraint in field bra_number. --- .../tests/test_payment_order.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/l10n_br_account_payment_order/tests/test_payment_order.py b/l10n_br_account_payment_order/tests/test_payment_order.py index ed2600639a11..2587c30f7965 100644 --- a/l10n_br_account_payment_order/tests/test_payment_order.py +++ b/l10n_br_account_payment_order/tests/test_payment_order.py @@ -4,7 +4,7 @@ from openerp.tests.common import TransactionCase -from openerp.exceptions import UserError +from openerp.exceptions import UserError, ValidationError class TestPaymentOrder(TransactionCase): @@ -130,3 +130,16 @@ def test_cancel_payment_order(self): payment_order.unlink() self.assertEquals(len(self.env['account.payment.order'].search([])), 0) + + def test_bra_number_constrains(self): + """ Test bra_number constrains. """ + + self.banco_bradesco = self.env[ + 'res.bank'].search([('code_bc', '=', '033')]) + with self.assertRaises(ValidationError): + self.env[ + 'res.partner.bank'].create(dict( + bank_id=self.banco_bradesco.id, + partner_id=self.ref('l10n_br_base.res_partner_akretion'), + bra_number='12345' + )) From b4dd3c33b0cb9348995142949ff4eec2b834b08f Mon Sep 17 00:00:00 2001 From: oca-travis Date: Wed, 18 Dec 2019 21:47:30 +0000 Subject: [PATCH 032/342] [UPD] Update l10n_br_account_payment_order.pot --- .../i18n/l10n_br_account_payment_order.pot | 111 +++++++++++ l10n_br_account_payment_order/i18n/pt_BR.po | 174 +++++++++++------- 2 files changed, 222 insertions(+), 63 deletions(-) create mode 100644 l10n_br_account_payment_order/i18n/l10n_br_account_payment_order.pot diff --git a/l10n_br_account_payment_order/i18n/l10n_br_account_payment_order.pot b/l10n_br_account_payment_order/i18n/l10n_br_account_payment_order.pot new file mode 100644 index 000000000000..91e3e171b841 --- /dev/null +++ b/l10n_br_account_payment_order/i18n/l10n_br_account_payment_order.pot @@ -0,0 +1,111 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_br_account_payment_order +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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_payment_order +#: model:ir.model,name:l10n_br_account_payment_order.model_res_partner_bank +msgid "Bank Accounts" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:account.payment.mode,name:l10n_br_account_payment_order.payment_mode_boleto +msgid "Boleto Bancario" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br-account_payment_mode_form +msgid "Configurações Brasileiras" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__date_scheduled +msgid "Data Prevista" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br-account_payment_mode_form +msgid "Geral" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__invoice_print +msgid "Gerar relatorio na conclusão da fatura?" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__instrucoes +msgid "Instruções de cobrança" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__journal_entry_ref +msgid "Journal Entry Ref" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model,name:l10n_br_account_payment_order.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__linha_digitavel +msgid "Linha Digitável" +msgstr "" + +#. module: l10n_br_account_payment_order +#: code:addons/l10n_br_account_payment_order/models/res_partner_bank.py:18 +#, python-format +msgid "O cógido da Agencia Bancaria do Santander deve ter no máximo quatro caracteres." +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model,name:l10n_br_account_payment_order.model_account_payment_line +msgid "Payment Lines" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model,name:l10n_br_account_payment_order.model_account_payment_mode +msgid "Payment Modes" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__percent_interest +msgid "Percentual de Juros" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.ui.menu,name:l10n_br_account_payment_order.menu_remessa_categ +msgid "Remessa" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.ui.menu,name:l10n_br_account_payment_order.menu_retorno_categ +msgid "Retorno" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__internal_sequence_id +msgid "Sequência" +msgstr "" + +#. module: l10n_br_account_payment_order +#: sql_constraint:account.payment.mode:0 +msgid "Sequência já usada! Crie uma sequência unica para cada modo" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__amount_interest +msgid "Valor Juros" +msgstr "" + diff --git a/l10n_br_account_payment_order/i18n/pt_BR.po b/l10n_br_account_payment_order/i18n/pt_BR.po index 982d1d5353cb..380a8ed6a840 100644 --- a/l10n_br_account_payment_order/i18n/pt_BR.po +++ b/l10n_br_account_payment_order/i18n/pt_BR.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * l10n_br_account_banking_payment +# * l10n_br_account_banking_payment # msgid "" msgstr "" @@ -10,97 +10,145 @@ msgstr "" "PO-Revision-Date: 2017-11-22 14:13+0000\n" "Last-Translator: <>\n" "Language-Team: \n" +"Language: \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_banking_payment -#: model:ir.model,name:l10n_br_account_banking_payment.model_res_bank -msgid "Bank" -msgstr "Banco" - -#. module: l10n_br_account_banking_payment -#: model:ir.model,name:l10n_br_account_banking_payment.model_res_partner_bank +#. module: l10n_br_account_payment_order +#: model:ir.model,name:l10n_br_account_payment_order.model_res_partner_bank msgid "Bank Accounts" msgstr "Contas Bancárias" -#. module: l10n_br_account_banking_payment -#: field:account.move.line,date_scheduled:0 +#. module: l10n_br_account_payment_order +#: model:account.payment.mode,name:l10n_br_account_payment_order.payment_mode_boleto +msgid "Boleto Bancario" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br-account_payment_mode_form +msgid "Configurações Brasileiras" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__date_scheduled msgid "Data Prevista" msgstr "Data Prevista" -#. module: l10n_br_account_banking_payment -#: field:payment.order.create,schedule_date:0 -msgid "Data Programada" -msgstr "Data Programada" +#. module: l10n_br_account_payment_order +#: model_terms:ir.ui.view,arch_db:l10n_br_account_payment_order.l10n_br-account_payment_mode_form +msgid "Geral" +msgstr "" -#. module: l10n_br_account_banking_payment -#: code:addons/l10n_br_account_banking_payment/wizard/payment_order_create.py:108 -#, python-format -msgid "Entry Lines" -msgstr "Linhas de Entrada" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__invoice_print +msgid "Gerar relatorio na conclusão da fatura?" +msgstr "" -#. module: l10n_br_account_banking_payment -#: code:addons/l10n_br_account_banking_payment/models/account_payment.py:33 -#, python-format -msgid "Impossible confirm empty line!" -msgstr "Impossível confirmar linha vazia!" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__instrucoes +msgid "Instruções de cobrança" +msgstr "" -#. module: l10n_br_account_banking_payment -#: view:account.move.line:l10n_br_account_banking_payment.payment_order_populate_view_move_line_tree -msgid "Journal Entry" +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_move_line__journal_entry_ref +#, fuzzy +msgid "Journal Entry Ref" msgstr "Entrada do Diário" -#. module: l10n_br_account_banking_payment -#: view:account.move.line:l10n_br_account_banking_payment.payment_order_populate_view_move_line_tree -#: model:ir.model,name:l10n_br_account_banking_payment.model_account_move_line -msgid "Journal Items" +#. module: l10n_br_account_payment_order +#: model:ir.model,name:l10n_br_account_payment_order.model_account_move_line +#, fuzzy +msgid "Journal Item" msgstr "Itens do Diário" -#. module: l10n_br_account_banking_payment -#: field:payment.line,linha_digitavel:0 +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__linha_digitavel msgid "Linha Digitável" msgstr "Linha Digitável" -#. module: l10n_br_account_banking_payment -#: model:ir.model,name:l10n_br_account_banking_payment.model_payment_line -msgid "Payment Line" -msgstr "Linha de Pagamento" +#. module: l10n_br_account_payment_order +#: code:addons/l10n_br_account_payment_order/models/res_partner_bank.py:18 +#, python-format +msgid "" +"O cógido da Agencia Bancaria do Santander deve ter no máximo quatro " +"caracteres." +msgstr "" -#. module: l10n_br_account_banking_payment -#: model:ir.model,name:l10n_br_account_banking_payment.model_payment_order -msgid "Payment Order" -msgstr "Ordem de Pagamento" +#. module: l10n_br_account_payment_order +#: model:ir.model,name:l10n_br_account_payment_order.model_account_payment_line +#, fuzzy +msgid "Payment Lines" +msgstr "Linha de Pagamento" -#. module: l10n_br_account_banking_payment -#: code:addons/l10n_br_account_banking_payment/wizard/payment_order_create.py:157 -#, python-format -msgid "Payment Orders" +#. module: l10n_br_account_payment_order +#: model:ir.model,name:l10n_br_account_payment_order.model_account_payment_mode +#, fuzzy +msgid "Payment Modes" msgstr "Ordens de Pagamentos" -#. module: l10n_br_account_banking_payment -#: field:payment.line,percent_interest:0 +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__percent_interest msgid "Percentual de Juros" msgstr "Percentual de Juros" -#. module: l10n_br_account_banking_payment -#: view:account.move.line:l10n_br_account_banking_payment.payment_order_populate_view_move_line_tree -msgid "Total Credit" -msgstr "Total de Crédito" +#. module: l10n_br_account_payment_order +#: model:ir.ui.menu,name:l10n_br_account_payment_order.menu_remessa_categ +msgid "Remessa" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.ui.menu,name:l10n_br_account_payment_order.menu_retorno_categ +msgid "Retorno" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_mode__internal_sequence_id +msgid "Sequência" +msgstr "" + +#. module: l10n_br_account_payment_order +#: sql_constraint:account.payment.mode:0 +msgid "Sequência já usada! Crie uma sequência unica para cada modo" +msgstr "" + +#. module: l10n_br_account_payment_order +#: model:ir.model.fields,field_description:l10n_br_account_payment_order.field_account_payment_line__amount_interest +msgid "Valor Juros" +msgstr "" + +#~ msgid "Bank" +#~ msgstr "Banco" + +#~ msgid "Data Programada" +#~ msgstr "Data Programada" + +#~ msgid "Entry Lines" +#~ msgstr "Linhas de Entrada" + +#~ msgid "Impossible confirm empty line!" +#~ msgstr "Impossível confirmar linha vazia!" + +#~ msgid "Payment Order" +#~ msgstr "Ordem de Pagamento" -#. module: l10n_br_account_banking_payment -#: view:account.move.line:l10n_br_account_banking_payment.payment_order_populate_view_move_line_tree -msgid "Total Debit" -msgstr "Total de Débito" +#~ msgid "Total Credit" +#~ msgstr "Total de Crédito" -#. module: l10n_br_account_banking_payment -#: field:payment.order.create,all_posted_moves:0 -msgid "Títulos em aberto" -msgstr "Títulos em aberto" +#~ msgid "Total Debit" +#~ msgstr "Total de Débito" -#. module: l10n_br_account_banking_payment -#: view:payment.order.create:l10n_br_account_banking_payment.view_create_payment_order_lines -msgid "{'display_credit': context.get('display_credit', False),'display_debit': context.get('display_debit', False),'journal_type': 'sale', 'tree_view_ref' : 'account_banking_payment_export.payment_order_populate_view_move_line_tree'}" -msgstr "{'display_credit': context.get('display_credit', False),'display_debit': context.get('display_debit', False),'journal_type': 'sale', 'tree_view_ref' : 'account_banking_payment_export.payment_order_populate_view_move_line_tree'}" +#~ msgid "Títulos em aberto" +#~ msgstr "Títulos em aberto" +#~ msgid "" +#~ "{'display_credit': context.get('display_credit', False),'display_debit': " +#~ "context.get('display_debit', False),'journal_type': 'sale', " +#~ "'tree_view_ref' : 'account_banking_payment_export." +#~ "payment_order_populate_view_move_line_tree'}" +#~ msgstr "" +#~ "{'display_credit': context.get('display_credit', False),'display_debit': " +#~ "context.get('display_debit', False),'journal_type': 'sale', " +#~ "'tree_view_ref' : 'account_banking_payment_export." +#~ "payment_order_populate_view_move_line_tree'}" From a5652895b27fa4cd95ffd5fd5ca292328c06da1b Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 18 Dec 2019 21:54:02 +0000 Subject: [PATCH 033/342] [UPD] README.rst --- l10n_br_account_payment_order/static/description/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_br_account_payment_order/static/description/index.html b/l10n_br_account_payment_order/static/description/index.html index 0af63acc7d6a..1e985bae4364 100644 --- a/l10n_br_account_payment_order/static/description/index.html +++ b/l10n_br_account_payment_order/static/description/index.html @@ -3,7 +3,7 @@ - + Brazilian Payment Order