From b46c1d228b6221449ec27a961d359d8d50478e2f Mon Sep 17 00:00:00 2001 From: scampbell Date: Tue, 10 Dec 2019 13:10:56 -0800 Subject: [PATCH 01/25] [ADD] account_reconcile_reconciliation_date [IMP] New Line EOF [IMP] Flake8 [ADD] Documentation and Test Cases [IMP] Flake8 [UPD] Update account_reconcile_reconciliation_date.pot [UPD] README.rst --- .../README.rst | 73 +++ .../__init__.py | 4 + .../__manifest__.py | 18 + .../account_reconcile_reconciliation_date.pot | 37 ++ .../models/__init__.py | 6 + .../models/account_full_reconcile.py | 26 ++ .../models/account_invoice.py | 10 + .../models/account_payment.py | 10 + .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 1 + .../static/description/index.html | 419 ++++++++++++++++++ .../tests/__init__.py | 4 + ...t_account_reconcile_reconciliation_date.py | 165 +++++++ .../views/account_invoice.xml | 14 + .../views/account_payment.xml | 14 + 15 files changed, 802 insertions(+) create mode 100644 account_reconcile_reconciliation_date/README.rst create mode 100644 account_reconcile_reconciliation_date/__init__.py create mode 100644 account_reconcile_reconciliation_date/__manifest__.py create mode 100644 account_reconcile_reconciliation_date/i18n/account_reconcile_reconciliation_date.pot create mode 100644 account_reconcile_reconciliation_date/models/__init__.py create mode 100644 account_reconcile_reconciliation_date/models/account_full_reconcile.py create mode 100644 account_reconcile_reconciliation_date/models/account_invoice.py create mode 100644 account_reconcile_reconciliation_date/models/account_payment.py create mode 100644 account_reconcile_reconciliation_date/readme/CONTRIBUTORS.rst create mode 100644 account_reconcile_reconciliation_date/readme/DESCRIPTION.rst create mode 100644 account_reconcile_reconciliation_date/static/description/index.html create mode 100644 account_reconcile_reconciliation_date/tests/__init__.py create mode 100644 account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py create mode 100644 account_reconcile_reconciliation_date/views/account_invoice.xml create mode 100644 account_reconcile_reconciliation_date/views/account_payment.xml diff --git a/account_reconcile_reconciliation_date/README.rst b/account_reconcile_reconciliation_date/README.rst new file mode 100644 index 0000000000..75e3563ef8 --- /dev/null +++ b/account_reconcile_reconciliation_date/README.rst @@ -0,0 +1,73 @@ +=========================== +Account Reconciliation Date +=========================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Faccount--reconcile-lightgray.png?logo=github + :target: https://github.com/OCA/account-reconcile/tree/12.0/account_reconcile_reconciliation_date + :alt: OCA/account-reconcile +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/account-reconcile-12-0/account-reconcile-12-0-account_reconcile_reconciliation_date + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/98/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module is designed to help users track when invoices and payments are reconciled + +**Table of contents** + +.. contents:: + :local: + +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 +~~~~~~~ + +* Open Source Integrators + +Contributors +~~~~~~~~~~~~ + +* Steven Campbell + +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/account-reconcile `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_reconcile_reconciliation_date/__init__.py b/account_reconcile_reconciliation_date/__init__.py new file mode 100644 index 0000000000..a0d2c6cd29 --- /dev/null +++ b/account_reconcile_reconciliation_date/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2019, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/account_reconcile_reconciliation_date/__manifest__.py b/account_reconcile_reconciliation_date/__manifest__.py new file mode 100644 index 0000000000..315231a3bb --- /dev/null +++ b/account_reconcile_reconciliation_date/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright (C) 2019, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Account Reconciliation Date", + "summary": "Track Reconciliation Date of Payments and Invoices", + "version": "12.0.1.0.0", + "depends": ["account"], + "author": "Open Source Integrators, Odoo Community Association (OCA)", + "website": "http://www.github.com/OCA/account-reconcile", + "category": "Finance", + 'license': 'AGPL-3', + "data": [ + 'views/account_invoice.xml', + 'views/account_payment.xml' + ], + 'installable': True, +} diff --git a/account_reconcile_reconciliation_date/i18n/account_reconcile_reconciliation_date.pot b/account_reconcile_reconciliation_date/i18n/account_reconcile_reconciliation_date.pot new file mode 100644 index 0000000000..2402e5d8e9 --- /dev/null +++ b/account_reconcile_reconciliation_date/i18n/account_reconcile_reconciliation_date.pot @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_reconcile_reconciliation_date +# +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: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile +msgid "Full Reconcile" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_invoice +msgid "Invoice" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment +msgid "Payments" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_invoice__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date +msgid "Reconciliation Date" +msgstr "" + diff --git a/account_reconcile_reconciliation_date/models/__init__.py b/account_reconcile_reconciliation_date/models/__init__.py new file mode 100644 index 0000000000..6fcf8c6296 --- /dev/null +++ b/account_reconcile_reconciliation_date/models/__init__.py @@ -0,0 +1,6 @@ +# Copyright (C) 2019, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import account_full_reconcile +from . import account_invoice +from . import account_payment diff --git a/account_reconcile_reconciliation_date/models/account_full_reconcile.py b/account_reconcile_reconciliation_date/models/account_full_reconcile.py new file mode 100644 index 0000000000..bdea9bdbe5 --- /dev/null +++ b/account_reconcile_reconciliation_date/models/account_full_reconcile.py @@ -0,0 +1,26 @@ +# Copyright (C) 2019, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from datetime import date +from odoo import api, fields, models + + +class AccountFullReconcile(models.Model): + _inherit = "account.full.reconcile" + _description = "Full Reconcile" + + reconciliation_date = fields.Date(string="Reconciliation Date", + default=date.today()) + + @api.model + def create(self, vals): + res = super().create(vals) + for reconcile_id in res: + for line_id in reconcile_id.reconciled_line_ids: + if line_id.payment_id: + line_id.payment_id.reconciliation_date = reconcile_id.\ + reconciliation_date + if line_id.invoice_id: + line_id.invoice_id.reconciliation_date = reconcile_id.\ + reconciliation_date + return res diff --git a/account_reconcile_reconciliation_date/models/account_invoice.py b/account_reconcile_reconciliation_date/models/account_invoice.py new file mode 100644 index 0000000000..ae3a4ffb4d --- /dev/null +++ b/account_reconcile_reconciliation_date/models/account_invoice.py @@ -0,0 +1,10 @@ +# Copyright (C) 2019, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class AccountInvoice(models.Model): + _inherit = "account.invoice" + + reconciliation_date = fields.Date(string="Reconciliation Date") diff --git a/account_reconcile_reconciliation_date/models/account_payment.py b/account_reconcile_reconciliation_date/models/account_payment.py new file mode 100644 index 0000000000..e16ea24e15 --- /dev/null +++ b/account_reconcile_reconciliation_date/models/account_payment.py @@ -0,0 +1,10 @@ +# Copyright (C) 2019, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class AccountPayment(models.Model): + _inherit = "account.payment" + + reconciliation_date = fields.Date(string="Reconciliation Date") diff --git a/account_reconcile_reconciliation_date/readme/CONTRIBUTORS.rst b/account_reconcile_reconciliation_date/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..8fa8bb9784 --- /dev/null +++ b/account_reconcile_reconciliation_date/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Steven Campbell diff --git a/account_reconcile_reconciliation_date/readme/DESCRIPTION.rst b/account_reconcile_reconciliation_date/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..3389547b55 --- /dev/null +++ b/account_reconcile_reconciliation_date/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module is designed to help users track when invoices and payments are reconciled diff --git a/account_reconcile_reconciliation_date/static/description/index.html b/account_reconcile_reconciliation_date/static/description/index.html new file mode 100644 index 0000000000..56f5f2aac5 --- /dev/null +++ b/account_reconcile_reconciliation_date/static/description/index.html @@ -0,0 +1,419 @@ + + + + + + +Account Reconciliation Date + + + +
+

Account Reconciliation Date

+ + +

Beta License: AGPL-3 OCA/account-reconcile Translate me on Weblate Try me on Runbot

+

This module is designed to help users track when invoices and payments are reconciled

+

Table of contents

+ +
+

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

+
    +
  • Open Source Integrators
  • +
+
+ +
+

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/account-reconcile project on GitHub.

+

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

+
+
+
+ + diff --git a/account_reconcile_reconciliation_date/tests/__init__.py b/account_reconcile_reconciliation_date/tests/__init__.py new file mode 100644 index 0000000000..3608509e3f --- /dev/null +++ b/account_reconcile_reconciliation_date/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2019, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_account_reconcile_reconciliation_date diff --git a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py new file mode 100644 index 0000000000..829c360c51 --- /dev/null +++ b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py @@ -0,0 +1,165 @@ +# Copyright (C) 2019, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.addons.account.tests.account_test_classes import AccountingTestCase +import time + + +class TestAccountReconcileReconciliationDate(AccountingTestCase): + def setUp(self): + super(TestAccountReconcileReconciliationDate, self).setUp() + self.register_payments_model = self.env['account.register.payments'].\ + with_context(active_model='account.invoice') + self.payment_model = self.env['account.payment'] + self.invoice_model = self.env['account.invoice'] + self.invoice_line_model = self.env['account.invoice.line'] + self.acc_bank_stmt_model = self.env['account.bank.statement'] + self.acc_bank_stmt_line_model = self.\ + env['account.bank.statement.line'] + + self.partner_agrolait = self.env.ref("base.res_partner_2") + self.partner_china_exp = self.env.ref("base.res_partner_3") + self.currency_chf_id = self.env.ref("base.CHF").id + self.currency_usd_id = self.env.ref("base.USD").id + self.currency_eur_id = self.env.ref("base.EUR").id + + company = self.env.ref('base.main_company') + self.cr.\ + execute("UPDATE res_company SET currency_id = %s WHERE id = %s", + [self.currency_eur_id, company.id]) + self.product = self.env.ref("product.product_product_4") + self.payment_method_manual_in = self.env.\ + ref("account.account_payment_method_manual_in") + self.payment_method_manual_out = self.env.\ + ref("account.account_payment_method_manual_out") + + self.account_receivable = self.env['account.account'].\ + search([('user_type_id', '=', self. + env.ref('account.data_account_type_receivable').id)], + limit=1) + self.account_payable = self.env['account.account'].\ + search([('user_type_id', '=', self.env. + ref('account.data_account_type_payable').id)], limit=1) + self.account_revenue = self.env['account.account'].\ + search([('user_type_id', '=', self.env. + ref('account.data_account_type_revenue').id)], limit=1) + + self.bank_journal_euro = self.env['account.journal'].\ + create({'name': 'Bank', 'type': 'bank', 'code': 'BNK67'}) + self.account_eur = self.bank_journal_euro.default_debit_account_id + + self.bank_journal_usd = self.env['account.journal'].\ + create({'name': 'Bank US', + 'type': 'bank', + 'code': 'BNK68', + 'currency_id': self.currency_usd_id}) + self.account_usd = self.bank_journal_usd.default_debit_account_id + + self.transfer_account = self.env['res.users'].\ + browse(self.env.uid).company_id.transfer_account_id + self.diff_income_account = self.env['res.users'].\ + browse(self.env.uid).company_id.\ + income_currency_exchange_account_id + self.diff_expense_account = self.env['res.users'].\ + browse(self.env.uid).company_id.\ + expense_currency_exchange_account_id + + def create_invoice(self, amount=100, + type='out_invoice', currency_id=None, + partner=None, account_id=None): + """ Returns an open invoice """ + invoice = self.invoice_model.create({ + 'partner_id': partner or self.partner_agrolait.id, + 'currency_id': currency_id or self.currency_eur_id, + 'name': type, + 'account_id': account_id or self.account_receivable.id, + 'type': type, + 'date_invoice': time.strftime('%Y') + '-06-26', + }) + self.invoice_line_model.create({ + 'product_id': self.product.id, + 'quantity': 1, + 'price_unit': amount, + 'invoice_id': invoice.id, + 'name': 'something', + 'account_id': self.account_revenue.id, + }) + invoice.action_invoice_open() + return invoice + + def reconcile(self, liquidity_aml, + amount=0.0, amount_currency=0.0, currency_id=None): + """ Reconcile a journal entry corresponding \ + to a payment with its bank statement line """ + bank_stmt = self.acc_bank_stmt_model.create({ + 'journal_id': liquidity_aml.journal_id.id, + 'date': time.strftime('%Y') + '-07-15', + }) + bank_stmt_line = self.acc_bank_stmt_line_model.create({ + 'name': 'payment', + 'statement_id': bank_stmt.id, + 'partner_id': self.partner_agrolait.id, + 'amount': amount, + 'amount_currency': amount_currency, + 'currency_id': currency_id, + 'date': time.strftime('%Y') + '-07-15' + }) + + bank_stmt_line.process_reconciliation(payment_aml_rec=liquidity_aml) + return bank_stmt + + def test_full_payment_process(self): + """ Create a payment for two invoices, \ + post it and reconcile it with a bank statement """ + inv_1 = self.create_invoice(amount=100, + currency_id=self.currency_eur_id, + partner=self.partner_agrolait.id) + inv_2 = self.create_invoice(amount=200, + currency_id=self.currency_eur_id, + partner=self.partner_agrolait.id) + + ctx = {'active_model': 'account.invoice', + 'active_ids': [inv_1.id, inv_2.id]} + register_payments = self.register_payments_model.\ + with_context(ctx).\ + create({ + 'payment_date': time.strftime('%Y') + '-07-15', + 'journal_id': self.bank_journal_euro.id, + 'payment_method_id': self.payment_method_manual_in.id, + }) + register_payments.create_payments() + payment = self.payment_model.search([], order="id desc", limit=1) + + self.assertAlmostEquals(payment.amount, 300) + self.assertEqual(payment.state, 'posted') + self.assertEqual(payment.state, 'posted') + self.assertEqual(inv_1.state, 'paid') + self.assertEqual(inv_2.state, 'paid') + + self.assertRecordValues(payment.move_line_ids, [ + {'account_id': self.account_eur.id, + 'debit': 300.0, + 'credit': 0.0, + 'amount_currency': 0, + 'currency_id': False}, + {'account_id': inv_1.account_id.id, + 'debit': 0.0, + 'credit': 300.0, + 'amount_currency': 0, + 'currency_id': False}, + ]) + self.assertTrue(payment.move_line_ids. + filtered(lambda l: l.account_id == inv_1.account_id) + [0].full_reconcile_id) + + liquidity_aml = payment.move_line_ids.\ + filtered(lambda r: r.account_id == self.account_eur) + bank_statement = self.reconcile(liquidity_aml, 200, 0, False) + + self.assertEqual(liquidity_aml.statement_id, bank_statement) + self.assertEqual(liquidity_aml.statement_line_id, + bank_statement.line_ids[0]) + + self.assertEqual(payment.state, 'reconciled') + self.assertEqual(payment.reconciliation_date, + inv_1.reconciliation_date) diff --git a/account_reconcile_reconciliation_date/views/account_invoice.xml b/account_reconcile_reconciliation_date/views/account_invoice.xml new file mode 100644 index 0000000000..f7c9eaea9d --- /dev/null +++ b/account_reconcile_reconciliation_date/views/account_invoice.xml @@ -0,0 +1,14 @@ + + + + account.invoice.reconciliation.date + account.invoice + + + + + + + + + diff --git a/account_reconcile_reconciliation_date/views/account_payment.xml b/account_reconcile_reconciliation_date/views/account_payment.xml new file mode 100644 index 0000000000..ebb0ec2cd4 --- /dev/null +++ b/account_reconcile_reconciliation_date/views/account_payment.xml @@ -0,0 +1,14 @@ + + + + account.payment.reconciliation.date + account.payment + + + + + + + + + From c48518aef8e3c9dbfd711e40a66d61e670b6b5b9 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 19 Dec 2019 17:09:17 +0000 Subject: [PATCH 02/25] [ADD] icon.png --- .../static/description/icon.png | Bin 0 -> 9455 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 account_reconcile_reconciliation_date/static/description/icon.png diff --git a/account_reconcile_reconciliation_date/static/description/icon.png b/account_reconcile_reconciliation_date/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temig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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 From a25bab32206ad31c138098b8dfd3779e5ade1c3d Mon Sep 17 00:00:00 2001 From: mreficent Date: Thu, 27 Feb 2020 14:00:36 +0100 Subject: [PATCH 03/25] [FIX] Grouping invoices in payments --- .../tests/test_account_reconcile_reconciliation_date.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py index 829c360c51..c67a3907fc 100644 --- a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py +++ b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py @@ -126,6 +126,7 @@ def test_full_payment_process(self): 'payment_date': time.strftime('%Y') + '-07-15', 'journal_id': self.bank_journal_euro.id, 'payment_method_id': self.payment_method_manual_in.id, + 'group_invoices': True, }) register_payments.create_payments() payment = self.payment_model.search([], order="id desc", limit=1) From 44c39bff6a94787f2c4e4b7ee500dfff5928c43e Mon Sep 17 00:00:00 2001 From: scampbell Date: Sat, 7 Mar 2020 10:07:07 -0800 Subject: [PATCH 04/25] [FIX] Reconciliation Date Not Showing --- account_reconcile_reconciliation_date/views/account_invoice.xml | 2 +- account_reconcile_reconciliation_date/views/account_payment.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_reconcile_reconciliation_date/views/account_invoice.xml b/account_reconcile_reconciliation_date/views/account_invoice.xml index f7c9eaea9d..7a559ac5f4 100644 --- a/account_reconcile_reconciliation_date/views/account_invoice.xml +++ b/account_reconcile_reconciliation_date/views/account_invoice.xml @@ -6,7 +6,7 @@ - + diff --git a/account_reconcile_reconciliation_date/views/account_payment.xml b/account_reconcile_reconciliation_date/views/account_payment.xml index ebb0ec2cd4..10a65be14b 100644 --- a/account_reconcile_reconciliation_date/views/account_payment.xml +++ b/account_reconcile_reconciliation_date/views/account_payment.xml @@ -6,7 +6,7 @@ - + From 6f4108b7864d5a9fbb70b44a446bb7fc905b47ee Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 17 Mar 2020 14:57:10 +0000 Subject: [PATCH 05/25] account_reconcile_reconciliation_date 12.0.1.1.0 Added translation using Weblate (Spanish (Chile)) Translated using Weblate (Spanish (Chile)) Currently translated at 100.0% (4 of 4 strings) Translation: account-reconcile-12.0/account-reconcile-12.0-account_reconcile_reconciliation_date Translate-URL: https://translation.odoo-community.org/projects/account-reconcile-12-0/account-reconcile-12-0-account_reconcile_reconciliation_date/es_CL/ --- .../__manifest__.py | 2 +- .../i18n/es_CL.po | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 account_reconcile_reconciliation_date/i18n/es_CL.po diff --git a/account_reconcile_reconciliation_date/__manifest__.py b/account_reconcile_reconciliation_date/__manifest__.py index 315231a3bb..7a4fc4fe6f 100644 --- a/account_reconcile_reconciliation_date/__manifest__.py +++ b/account_reconcile_reconciliation_date/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Reconciliation Date", "summary": "Track Reconciliation Date of Payments and Invoices", - "version": "12.0.1.0.0", + "version": "12.0.1.1.0", "depends": ["account"], "author": "Open Source Integrators, Odoo Community Association (OCA)", "website": "http://www.github.com/OCA/account-reconcile", diff --git a/account_reconcile_reconciliation_date/i18n/es_CL.po b/account_reconcile_reconciliation_date/i18n/es_CL.po new file mode 100644 index 0000000000..cc076f68fa --- /dev/null +++ b/account_reconcile_reconciliation_date/i18n/es_CL.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_reconcile_reconciliation_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-03-01 23:45+0000\n" +"Last-Translator: Nelson Ramírez Sánchez \n" +"Language-Team: none\n" +"Language: es_CL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile +msgid "Full Reconcile" +msgstr "Reconciliación Completa" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_invoice +msgid "Invoice" +msgstr "Factura" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment +msgid "Payments" +msgstr "Pagos" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_invoice__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date +msgid "Reconciliation Date" +msgstr "Fecha de Reconciliación" From f26977e93dcfe3e6be466af263d52e0dc607b71c Mon Sep 17 00:00:00 2001 From: AmmarOfficewalaSerpentCS Date: Fri, 28 May 2021 16:56:13 +0530 Subject: [PATCH 06/25] [FIX] Fixed a travis. --- .../__manifest__.py | 11 +- .../models/account_full_reconcile.py | 16 +- ...t_account_reconcile_reconciliation_date.py | 306 +++++++++++------- .../views/account_invoice.xml | 7 +- .../views/account_payment.xml | 7 +- 5 files changed, 206 insertions(+), 141 deletions(-) diff --git a/account_reconcile_reconciliation_date/__manifest__.py b/account_reconcile_reconciliation_date/__manifest__.py index 7a4fc4fe6f..1a9b7d3ddb 100644 --- a/account_reconcile_reconciliation_date/__manifest__.py +++ b/account_reconcile_reconciliation_date/__manifest__.py @@ -7,12 +7,9 @@ "version": "12.0.1.1.0", "depends": ["account"], "author": "Open Source Integrators, Odoo Community Association (OCA)", - "website": "http://www.github.com/OCA/account-reconcile", + "website": "https://github.com/OCA/account-reconcile", "category": "Finance", - 'license': 'AGPL-3', - "data": [ - 'views/account_invoice.xml', - 'views/account_payment.xml' - ], - 'installable': True, + "license": "AGPL-3", + "data": ["views/account_invoice.xml", "views/account_payment.xml"], + "installable": True, } diff --git a/account_reconcile_reconciliation_date/models/account_full_reconcile.py b/account_reconcile_reconciliation_date/models/account_full_reconcile.py index bdea9bdbe5..e8145039d0 100644 --- a/account_reconcile_reconciliation_date/models/account_full_reconcile.py +++ b/account_reconcile_reconciliation_date/models/account_full_reconcile.py @@ -2,6 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from datetime import date + from odoo import api, fields, models @@ -9,8 +10,9 @@ class AccountFullReconcile(models.Model): _inherit = "account.full.reconcile" _description = "Full Reconcile" - reconciliation_date = fields.Date(string="Reconciliation Date", - default=date.today()) + reconciliation_date = fields.Date( + string="Reconciliation Date", default=date.today() + ) @api.model def create(self, vals): @@ -18,9 +20,11 @@ def create(self, vals): for reconcile_id in res: for line_id in reconcile_id.reconciled_line_ids: if line_id.payment_id: - line_id.payment_id.reconciliation_date = reconcile_id.\ - reconciliation_date + line_id.payment_id.reconciliation_date = ( + reconcile_id.reconciliation_date + ) if line_id.invoice_id: - line_id.invoice_id.reconciliation_date = reconcile_id.\ - reconciliation_date + line_id.invoice_id.reconciliation_date = ( + reconcile_id.reconciliation_date + ) return res diff --git a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py index c67a3907fc..3ebea791a9 100644 --- a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py +++ b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py @@ -1,21 +1,22 @@ # Copyright (C) 2019, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo.addons.account.tests.account_test_classes import AccountingTestCase import time +from odoo.addons.account.tests.account_test_classes import AccountingTestCase + class TestAccountReconcileReconciliationDate(AccountingTestCase): def setUp(self): super(TestAccountReconcileReconciliationDate, self).setUp() - self.register_payments_model = self.env['account.register.payments'].\ - with_context(active_model='account.invoice') - self.payment_model = self.env['account.payment'] - self.invoice_model = self.env['account.invoice'] - self.invoice_line_model = self.env['account.invoice.line'] - self.acc_bank_stmt_model = self.env['account.bank.statement'] - self.acc_bank_stmt_line_model = self.\ - env['account.bank.statement.line'] + self.register_payments_model = self.env[ + "account.register.payments" + ].with_context(active_model="account.invoice") + self.payment_model = self.env["account.payment"] + self.invoice_model = self.env["account.invoice"] + self.invoice_line_model = self.env["account.invoice.line"] + self.acc_bank_stmt_model = self.env["account.bank.statement"] + self.acc_bank_stmt_line_model = self.env["account.bank.statement.line"] self.partner_agrolait = self.env.ref("base.res_partner_2") self.partner_china_exp = self.env.ref("base.res_partner_3") @@ -23,87 +24,133 @@ def setUp(self): self.currency_usd_id = self.env.ref("base.USD").id self.currency_eur_id = self.env.ref("base.EUR").id - company = self.env.ref('base.main_company') - self.cr.\ - execute("UPDATE res_company SET currency_id = %s WHERE id = %s", - [self.currency_eur_id, company.id]) + company = self.env.ref("base.main_company") + self.cr.execute( + "UPDATE res_company SET currency_id = %s WHERE id = %s", + [self.currency_eur_id, company.id], + ) self.product = self.env.ref("product.product_product_4") - self.payment_method_manual_in = self.env.\ - ref("account.account_payment_method_manual_in") - self.payment_method_manual_out = self.env.\ - ref("account.account_payment_method_manual_out") - - self.account_receivable = self.env['account.account'].\ - search([('user_type_id', '=', self. - env.ref('account.data_account_type_receivable').id)], - limit=1) - self.account_payable = self.env['account.account'].\ - search([('user_type_id', '=', self.env. - ref('account.data_account_type_payable').id)], limit=1) - self.account_revenue = self.env['account.account'].\ - search([('user_type_id', '=', self.env. - ref('account.data_account_type_revenue').id)], limit=1) - - self.bank_journal_euro = self.env['account.journal'].\ - create({'name': 'Bank', 'type': 'bank', 'code': 'BNK67'}) + self.payment_method_manual_in = self.env.ref( + "account.account_payment_method_manual_in" + ) + self.payment_method_manual_out = self.env.ref( + "account.account_payment_method_manual_out" + ) + + self.account_receivable = self.env["account.account"].search( + [ + ( + "user_type_id", + "=", + self.env.ref("account.data_account_type_receivable").id, + ) + ], + limit=1, + ) + self.account_payable = self.env["account.account"].search( + [ + ( + "user_type_id", + "=", + self.env.ref("account.data_account_type_payable").id, + ) + ], + limit=1, + ) + self.account_revenue = self.env["account.account"].search( + [ + ( + "user_type_id", + "=", + self.env.ref("account.data_account_type_revenue").id, + ) + ], + limit=1, + ) + + self.bank_journal_euro = self.env["account.journal"].create( + {"name": "Bank", "type": "bank", "code": "BNK67"} + ) self.account_eur = self.bank_journal_euro.default_debit_account_id - self.bank_journal_usd = self.env['account.journal'].\ - create({'name': 'Bank US', - 'type': 'bank', - 'code': 'BNK68', - 'currency_id': self.currency_usd_id}) + self.bank_journal_usd = self.env["account.journal"].create( + { + "name": "Bank US", + "type": "bank", + "code": "BNK68", + "currency_id": self.currency_usd_id, + } + ) self.account_usd = self.bank_journal_usd.default_debit_account_id - self.transfer_account = self.env['res.users'].\ - browse(self.env.uid).company_id.transfer_account_id - self.diff_income_account = self.env['res.users'].\ - browse(self.env.uid).company_id.\ - income_currency_exchange_account_id - self.diff_expense_account = self.env['res.users'].\ - browse(self.env.uid).company_id.\ - expense_currency_exchange_account_id - - def create_invoice(self, amount=100, - type='out_invoice', currency_id=None, - partner=None, account_id=None): + self.transfer_account = ( + self.env["res.users"].browse(self.env.uid).company_id.transfer_account_id + ) + self.diff_income_account = ( + self.env["res.users"] + .browse(self.env.uid) + .company_id.income_currency_exchange_account_id + ) + self.diff_expense_account = ( + self.env["res.users"] + .browse(self.env.uid) + .company_id.expense_currency_exchange_account_id + ) + + def create_invoice( + self, + amount=100, + type="out_invoice", + currency_id=None, + partner=None, + account_id=None, + ): """ Returns an open invoice """ - invoice = self.invoice_model.create({ - 'partner_id': partner or self.partner_agrolait.id, - 'currency_id': currency_id or self.currency_eur_id, - 'name': type, - 'account_id': account_id or self.account_receivable.id, - 'type': type, - 'date_invoice': time.strftime('%Y') + '-06-26', - }) - self.invoice_line_model.create({ - 'product_id': self.product.id, - 'quantity': 1, - 'price_unit': amount, - 'invoice_id': invoice.id, - 'name': 'something', - 'account_id': self.account_revenue.id, - }) + invoice = self.invoice_model.create( + { + "partner_id": partner or self.partner_agrolait.id, + "currency_id": currency_id or self.currency_eur_id, + "name": type, + "account_id": account_id or self.account_receivable.id, + "type": type, + "date_invoice": time.strftime("%Y") + "-06-26", + } + ) + self.invoice_line_model.create( + { + "product_id": self.product.id, + "quantity": 1, + "price_unit": amount, + "invoice_id": invoice.id, + "name": "something", + "account_id": self.account_revenue.id, + } + ) invoice.action_invoice_open() return invoice - def reconcile(self, liquidity_aml, - amount=0.0, amount_currency=0.0, currency_id=None): + def reconcile( + self, liquidity_aml, amount=0.0, amount_currency=0.0, currency_id=None + ): """ Reconcile a journal entry corresponding \ to a payment with its bank statement line """ - bank_stmt = self.acc_bank_stmt_model.create({ - 'journal_id': liquidity_aml.journal_id.id, - 'date': time.strftime('%Y') + '-07-15', - }) - bank_stmt_line = self.acc_bank_stmt_line_model.create({ - 'name': 'payment', - 'statement_id': bank_stmt.id, - 'partner_id': self.partner_agrolait.id, - 'amount': amount, - 'amount_currency': amount_currency, - 'currency_id': currency_id, - 'date': time.strftime('%Y') + '-07-15' - }) + bank_stmt = self.acc_bank_stmt_model.create( + { + "journal_id": liquidity_aml.journal_id.id, + "date": time.strftime("%Y") + "-07-15", + } + ) + bank_stmt_line = self.acc_bank_stmt_line_model.create( + { + "name": "payment", + "statement_id": bank_stmt.id, + "partner_id": self.partner_agrolait.id, + "amount": amount, + "amount_currency": amount_currency, + "currency_id": currency_id, + "date": time.strftime("%Y") + "-07-15", + } + ) bank_stmt_line.process_reconciliation(payment_aml_rec=liquidity_aml) return bank_stmt @@ -111,56 +158,67 @@ def reconcile(self, liquidity_aml, def test_full_payment_process(self): """ Create a payment for two invoices, \ post it and reconcile it with a bank statement """ - inv_1 = self.create_invoice(amount=100, - currency_id=self.currency_eur_id, - partner=self.partner_agrolait.id) - inv_2 = self.create_invoice(amount=200, - currency_id=self.currency_eur_id, - partner=self.partner_agrolait.id) - - ctx = {'active_model': 'account.invoice', - 'active_ids': [inv_1.id, inv_2.id]} - register_payments = self.register_payments_model.\ - with_context(ctx).\ - create({ - 'payment_date': time.strftime('%Y') + '-07-15', - 'journal_id': self.bank_journal_euro.id, - 'payment_method_id': self.payment_method_manual_in.id, - 'group_invoices': True, - }) + inv_1 = self.create_invoice( + amount=100, + currency_id=self.currency_eur_id, + partner=self.partner_agrolait.id, + ) + inv_2 = self.create_invoice( + amount=200, + currency_id=self.currency_eur_id, + partner=self.partner_agrolait.id, + ) + + ctx = {"active_model": "account.invoice", "active_ids": [inv_1.id, inv_2.id]} + register_payments = self.register_payments_model.with_context(ctx).create( + { + "payment_date": time.strftime("%Y") + "-07-15", + "journal_id": self.bank_journal_euro.id, + "payment_method_id": self.payment_method_manual_in.id, + "group_invoices": True, + } + ) register_payments.create_payments() payment = self.payment_model.search([], order="id desc", limit=1) self.assertAlmostEquals(payment.amount, 300) - self.assertEqual(payment.state, 'posted') - self.assertEqual(payment.state, 'posted') - self.assertEqual(inv_1.state, 'paid') - self.assertEqual(inv_2.state, 'paid') - - self.assertRecordValues(payment.move_line_ids, [ - {'account_id': self.account_eur.id, - 'debit': 300.0, - 'credit': 0.0, - 'amount_currency': 0, - 'currency_id': False}, - {'account_id': inv_1.account_id.id, - 'debit': 0.0, - 'credit': 300.0, - 'amount_currency': 0, - 'currency_id': False}, - ]) - self.assertTrue(payment.move_line_ids. - filtered(lambda l: l.account_id == inv_1.account_id) - [0].full_reconcile_id) - - liquidity_aml = payment.move_line_ids.\ - filtered(lambda r: r.account_id == self.account_eur) + self.assertEqual(payment.state, "posted") + self.assertEqual(payment.state, "posted") + self.assertEqual(inv_1.state, "paid") + self.assertEqual(inv_2.state, "paid") + + self.assertRecordValues( + payment.move_line_ids, + [ + { + "account_id": self.account_eur.id, + "debit": 300.0, + "credit": 0.0, + "amount_currency": 0, + "currency_id": False, + }, + { + "account_id": inv_1.account_id.id, + "debit": 0.0, + "credit": 300.0, + "amount_currency": 0, + "currency_id": False, + }, + ], + ) + self.assertTrue( + payment.move_line_ids.filtered(lambda l: l.account_id == inv_1.account_id)[ + 0 + ].full_reconcile_id + ) + + liquidity_aml = payment.move_line_ids.filtered( + lambda r: r.account_id == self.account_eur + ) bank_statement = self.reconcile(liquidity_aml, 200, 0, False) self.assertEqual(liquidity_aml.statement_id, bank_statement) - self.assertEqual(liquidity_aml.statement_line_id, - bank_statement.line_ids[0]) + self.assertEqual(liquidity_aml.statement_line_id, bank_statement.line_ids[0]) - self.assertEqual(payment.state, 'reconciled') - self.assertEqual(payment.reconciliation_date, - inv_1.reconciliation_date) + self.assertEqual(payment.state, "reconciled") + self.assertEqual(payment.reconciliation_date, inv_1.reconciliation_date) diff --git a/account_reconcile_reconciliation_date/views/account_invoice.xml b/account_reconcile_reconciliation_date/views/account_invoice.xml index 7a559ac5f4..b523261a89 100644 --- a/account_reconcile_reconciliation_date/views/account_invoice.xml +++ b/account_reconcile_reconciliation_date/views/account_invoice.xml @@ -3,10 +3,13 @@ account.invoice.reconciliation.date account.invoice - + - + diff --git a/account_reconcile_reconciliation_date/views/account_payment.xml b/account_reconcile_reconciliation_date/views/account_payment.xml index 10a65be14b..1802aa169c 100644 --- a/account_reconcile_reconciliation_date/views/account_payment.xml +++ b/account_reconcile_reconciliation_date/views/account_payment.xml @@ -3,10 +3,13 @@ account.payment.reconciliation.date account.payment - + - + From 7a288f5c9f950ec81808f10b10c30852326b770a Mon Sep 17 00:00:00 2001 From: AmmarOfficewalaSerpentCS Date: Fri, 28 May 2021 17:17:46 +0530 Subject: [PATCH 07/25] [MIG][14.0] Migrated a account_reconcile_reconciliation_date. Prettier --- .../README.rst | 11 +- .../__init__.py | 2 +- .../__manifest__.py | 6 +- .../i18n/es_CL.po | 39 ------- .../models/__init__.py | 4 +- .../models/account_full_reconcile.py | 6 +- .../{account_invoice.py => account_move.py} | 6 +- .../models/account_payment.py | 2 +- .../readme/CONTRIBUTORS.rst | 1 + .../static/description/index.html | 7 +- .../tests/__init__.py | 2 +- ...t_account_reconcile_reconciliation_date.py | 101 ++++++++---------- .../views/account_invoice.xml | 17 --- .../views/account_move.xml | 17 +++ .../views/account_payment.xml | 2 +- 15 files changed, 87 insertions(+), 136 deletions(-) delete mode 100644 account_reconcile_reconciliation_date/i18n/es_CL.po rename account_reconcile_reconciliation_date/models/{account_invoice.py => account_move.py} (59%) delete mode 100644 account_reconcile_reconciliation_date/views/account_invoice.xml create mode 100644 account_reconcile_reconciliation_date/views/account_move.xml diff --git a/account_reconcile_reconciliation_date/README.rst b/account_reconcile_reconciliation_date/README.rst index 75e3563ef8..9abec9665b 100644 --- a/account_reconcile_reconciliation_date/README.rst +++ b/account_reconcile_reconciliation_date/README.rst @@ -14,13 +14,13 @@ Account Reconciliation Date :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github - :target: https://github.com/OCA/account-reconcile/tree/12.0/account_reconcile_reconciliation_date + :target: https://github.com/OCA/account-reconcile/tree/14.0/account_reconcile_reconciliation_date :alt: OCA/account-reconcile .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-reconcile-12-0/account-reconcile-12-0-account_reconcile_reconciliation_date + :target: https://translation.odoo-community.org/projects/account-reconcile-14-0/account-reconcile-14-0-account_reconcile_reconciliation_date :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/98/12.0 + :target: https://runbot.odoo-community.org/runbot/98/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,7 @@ 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. @@ -54,6 +54,7 @@ Contributors ~~~~~~~~~~~~ * Steven Campbell +* Ammar Officewala Maintainers ~~~~~~~~~~~ @@ -68,6 +69,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/account-reconcile `_ project on GitHub. +This module is part of the `OCA/account-reconcile `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_reconcile_reconciliation_date/__init__.py b/account_reconcile_reconciliation_date/__init__.py index a0d2c6cd29..84af717e5e 100644 --- a/account_reconcile_reconciliation_date/__init__.py +++ b/account_reconcile_reconciliation_date/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019, Open Source Integrators +# Copyright (C) 2021, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models diff --git a/account_reconcile_reconciliation_date/__manifest__.py b/account_reconcile_reconciliation_date/__manifest__.py index 1a9b7d3ddb..fe90f7409c 100644 --- a/account_reconcile_reconciliation_date/__manifest__.py +++ b/account_reconcile_reconciliation_date/__manifest__.py @@ -1,15 +1,15 @@ -# Copyright (C) 2019, Open Source Integrators +# Copyright (C) 2021, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Account Reconciliation Date", "summary": "Track Reconciliation Date of Payments and Invoices", - "version": "12.0.1.1.0", + "version": "14.0.1.0.0", "depends": ["account"], "author": "Open Source Integrators, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-reconcile", "category": "Finance", "license": "AGPL-3", - "data": ["views/account_invoice.xml", "views/account_payment.xml"], + "data": ["views/account_move.xml", "views/account_payment.xml"], "installable": True, } diff --git a/account_reconcile_reconciliation_date/i18n/es_CL.po b/account_reconcile_reconciliation_date/i18n/es_CL.po deleted file mode 100644 index cc076f68fa..0000000000 --- a/account_reconcile_reconciliation_date/i18n/es_CL.po +++ /dev/null @@ -1,39 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_reconcile_reconciliation_date -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2021-03-01 23:45+0000\n" -"Last-Translator: Nelson Ramírez Sánchez \n" -"Language-Team: none\n" -"Language: es_CL\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.3.2\n" - -#. module: account_reconcile_reconciliation_date -#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile -msgid "Full Reconcile" -msgstr "Reconciliación Completa" - -#. module: account_reconcile_reconciliation_date -#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_invoice -msgid "Invoice" -msgstr "Factura" - -#. module: account_reconcile_reconciliation_date -#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment -msgid "Payments" -msgstr "Pagos" - -#. module: account_reconcile_reconciliation_date -#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date -#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_invoice__reconciliation_date -#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date -msgid "Reconciliation Date" -msgstr "Fecha de Reconciliación" diff --git a/account_reconcile_reconciliation_date/models/__init__.py b/account_reconcile_reconciliation_date/models/__init__.py index 6fcf8c6296..587cc1d1a7 100644 --- a/account_reconcile_reconciliation_date/models/__init__.py +++ b/account_reconcile_reconciliation_date/models/__init__.py @@ -1,6 +1,6 @@ -# Copyright (C) 2019, Open Source Integrators +# Copyright (C) 2021, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import account_full_reconcile -from . import account_invoice +from . import account_move from . import account_payment diff --git a/account_reconcile_reconciliation_date/models/account_full_reconcile.py b/account_reconcile_reconciliation_date/models/account_full_reconcile.py index e8145039d0..b652b850a5 100644 --- a/account_reconcile_reconciliation_date/models/account_full_reconcile.py +++ b/account_reconcile_reconciliation_date/models/account_full_reconcile.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019, Open Source Integrators +# Copyright (C) 2021, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from datetime import date @@ -23,8 +23,8 @@ def create(self, vals): line_id.payment_id.reconciliation_date = ( reconcile_id.reconciliation_date ) - if line_id.invoice_id: - line_id.invoice_id.reconciliation_date = ( + if line_id.move_id: + line_id.move_id.reconciliation_date = ( reconcile_id.reconciliation_date ) return res diff --git a/account_reconcile_reconciliation_date/models/account_invoice.py b/account_reconcile_reconciliation_date/models/account_move.py similarity index 59% rename from account_reconcile_reconciliation_date/models/account_invoice.py rename to account_reconcile_reconciliation_date/models/account_move.py index ae3a4ffb4d..436f0defac 100644 --- a/account_reconcile_reconciliation_date/models/account_invoice.py +++ b/account_reconcile_reconciliation_date/models/account_move.py @@ -1,10 +1,10 @@ -# Copyright (C) 2019, Open Source Integrators +# Copyright (C) 2021, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models -class AccountInvoice(models.Model): - _inherit = "account.invoice" +class AccountMove(models.Model): + _inherit = "account.move" reconciliation_date = fields.Date(string="Reconciliation Date") diff --git a/account_reconcile_reconciliation_date/models/account_payment.py b/account_reconcile_reconciliation_date/models/account_payment.py index e16ea24e15..f59ef6ba78 100644 --- a/account_reconcile_reconciliation_date/models/account_payment.py +++ b/account_reconcile_reconciliation_date/models/account_payment.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019, Open Source Integrators +# Copyright (C) 2021, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import fields, models diff --git a/account_reconcile_reconciliation_date/readme/CONTRIBUTORS.rst b/account_reconcile_reconciliation_date/readme/CONTRIBUTORS.rst index 8fa8bb9784..c39c424689 100644 --- a/account_reconcile_reconciliation_date/readme/CONTRIBUTORS.rst +++ b/account_reconcile_reconciliation_date/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Steven Campbell +* Ammar Officewala diff --git a/account_reconcile_reconciliation_date/static/description/index.html b/account_reconcile_reconciliation_date/static/description/index.html index 56f5f2aac5..91e8122d96 100644 --- a/account_reconcile_reconciliation_date/static/description/index.html +++ b/account_reconcile_reconciliation_date/static/description/index.html @@ -367,7 +367,7 @@

Account Reconciliation Date

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

Beta License: AGPL-3 OCA/account-reconcile Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/account-reconcile Translate me on Weblate Try me on Runbot

This module is designed to help users track when invoices and payments are reconciled

Table of contents

@@ -386,7 +386,7 @@

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.

@@ -401,6 +401,7 @@

Authors

Contributors

@@ -410,7 +411,7 @@

Maintainers

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/account-reconcile project on GitHub.

+

This module is part of the OCA/account-reconcile project on GitHub.

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

diff --git a/account_reconcile_reconciliation_date/tests/__init__.py b/account_reconcile_reconciliation_date/tests/__init__.py index 3608509e3f..5cbf2f9a00 100644 --- a/account_reconcile_reconciliation_date/tests/__init__.py +++ b/account_reconcile_reconciliation_date/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2019, Open Source Integrators +# Copyright (C) 2021, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_account_reconcile_reconciliation_date diff --git a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py index 3ebea791a9..2554acee63 100644 --- a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py +++ b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py @@ -1,20 +1,20 @@ -# Copyright (C) 2019, Open Source Integrators +# Copyright (C) 2021, Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import time -from odoo.addons.account.tests.account_test_classes import AccountingTestCase +from odoo.addons.account.tests.common import AccountTestInvoicingCommon -class TestAccountReconcileReconciliationDate(AccountingTestCase): +class TestAccountReconcileReconciliationDate(AccountTestInvoicingCommon): def setUp(self): super(TestAccountReconcileReconciliationDate, self).setUp() self.register_payments_model = self.env[ - "account.register.payments" - ].with_context(active_model="account.invoice") + "account.payment.register" + ].with_context(active_model="account.move") self.payment_model = self.env["account.payment"] - self.invoice_model = self.env["account.invoice"] - self.invoice_line_model = self.env["account.invoice.line"] + self.invoice_model = self.env["account.move"] + self.invoice_line_model = self.env["account.move.line"] self.acc_bank_stmt_model = self.env["account.bank.statement"] self.acc_bank_stmt_line_model = self.env["account.bank.statement.line"] @@ -68,10 +68,10 @@ def setUp(self): limit=1, ) - self.bank_journal_euro = self.env["account.journal"].create( - {"name": "Bank", "type": "bank", "code": "BNK67"} + self.bank_journal_euro = self.env["account.journal"].search( + [("type", "=", "bank")], limit=1 ) - self.account_eur = self.bank_journal_euro.default_debit_account_id + self.account_eur = self.bank_journal_euro.default_account_id self.bank_journal_usd = self.env["account.journal"].create( { @@ -81,8 +81,10 @@ def setUp(self): "currency_id": self.currency_usd_id, } ) - self.account_usd = self.bank_journal_usd.default_debit_account_id - + self.account_usd = self.bank_journal_usd.default_account_id + self.journal_id = self.env["account.journal"].search( + [("type", "=", "sale")], limit=1 + ) self.transfer_account = ( self.env["res.users"].browse(self.env.uid).company_id.transfer_account_id ) @@ -100,7 +102,7 @@ def setUp(self): def create_invoice( self, amount=100, - type="out_invoice", + move_type="out_invoice", currency_id=None, partner=None, account_id=None, @@ -110,23 +112,25 @@ def create_invoice( { "partner_id": partner or self.partner_agrolait.id, "currency_id": currency_id or self.currency_eur_id, - "name": type, - "account_id": account_id or self.account_receivable.id, - "type": type, - "date_invoice": time.strftime("%Y") + "-06-26", - } - ) - self.invoice_line_model.create( - { - "product_id": self.product.id, - "quantity": 1, - "price_unit": amount, - "invoice_id": invoice.id, - "name": "something", - "account_id": self.account_revenue.id, + "journal_id": self.journal_id.id, + "move_type": move_type, + "invoice_date": time.strftime("%Y") + "-06-26", + "invoice_line_ids": [ + ( + 0, + 0, + { + "product_id": self.product.id, + "quantity": 1, + "price_unit": amount, + "name": "something", + "account_id": self.journal_id.default_account_id.id, + }, + ) + ], } ) - invoice.action_invoice_open() + invoice.action_post() return invoice def reconcile( @@ -169,56 +173,39 @@ def test_full_payment_process(self): partner=self.partner_agrolait.id, ) - ctx = {"active_model": "account.invoice", "active_ids": [inv_1.id, inv_2.id]} + ctx = {"active_model": "account.move", "active_ids": [inv_1.id, inv_2.id]} register_payments = self.register_payments_model.with_context(ctx).create( { "payment_date": time.strftime("%Y") + "-07-15", "journal_id": self.bank_journal_euro.id, "payment_method_id": self.payment_method_manual_in.id, - "group_invoices": True, } ) - register_payments.create_payments() + register_payments.flush() + register_payments.action_create_payments() payment = self.payment_model.search([], order="id desc", limit=1) - self.assertAlmostEquals(payment.amount, 300) + self.assertAlmostEqual(payment.amount, 200) self.assertEqual(payment.state, "posted") self.assertEqual(payment.state, "posted") - self.assertEqual(inv_1.state, "paid") - self.assertEqual(inv_2.state, "paid") + self.assertEqual(inv_1.payment_state, "paid") + self.assertEqual(inv_2.payment_state, "paid") self.assertRecordValues( - payment.move_line_ids, + payment.line_ids, [ { - "account_id": self.account_eur.id, - "debit": 300.0, + "journal_id": self.bank_journal_euro.id, + "debit": 200.0, "credit": 0.0, - "amount_currency": 0, - "currency_id": False, }, { - "account_id": inv_1.account_id.id, + "journal_id": self.bank_journal_euro.id, "debit": 0.0, - "credit": 300.0, - "amount_currency": 0, - "currency_id": False, + "credit": 200.0, }, ], ) - self.assertTrue( - payment.move_line_ids.filtered(lambda l: l.account_id == inv_1.account_id)[ - 0 - ].full_reconcile_id - ) - - liquidity_aml = payment.move_line_ids.filtered( - lambda r: r.account_id == self.account_eur - ) - bank_statement = self.reconcile(liquidity_aml, 200, 0, False) - self.assertEqual(liquidity_aml.statement_id, bank_statement) - self.assertEqual(liquidity_aml.statement_line_id, bank_statement.line_ids[0]) - - self.assertEqual(payment.state, "reconciled") + self.assertEqual(payment.state, "posted") self.assertEqual(payment.reconciliation_date, inv_1.reconciliation_date) diff --git a/account_reconcile_reconciliation_date/views/account_invoice.xml b/account_reconcile_reconciliation_date/views/account_invoice.xml deleted file mode 100644 index b523261a89..0000000000 --- a/account_reconcile_reconciliation_date/views/account_invoice.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - account.invoice.reconciliation.date - account.invoice - - - - - - - - - diff --git a/account_reconcile_reconciliation_date/views/account_move.xml b/account_reconcile_reconciliation_date/views/account_move.xml new file mode 100644 index 0000000000..60bb0c4a56 --- /dev/null +++ b/account_reconcile_reconciliation_date/views/account_move.xml @@ -0,0 +1,17 @@ + + + + account.move.reconciliation.date + account.move + + + + + + + + + diff --git a/account_reconcile_reconciliation_date/views/account_payment.xml b/account_reconcile_reconciliation_date/views/account_payment.xml index 1802aa169c..0088cbc839 100644 --- a/account_reconcile_reconciliation_date/views/account_payment.xml +++ b/account_reconcile_reconciliation_date/views/account_payment.xml @@ -5,7 +5,7 @@ account.payment - + Date: Mon, 12 Jul 2021 14:30:00 +0000 Subject: [PATCH 08/25] [UPD] Update account_reconcile_reconciliation_date.pot --- .../account_reconcile_reconciliation_date.pot | 35 +++++++++++++++---- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/account_reconcile_reconciliation_date/i18n/account_reconcile_reconciliation_date.pot b/account_reconcile_reconciliation_date/i18n/account_reconcile_reconciliation_date.pot index 2402e5d8e9..90e92a3743 100644 --- a/account_reconcile_reconciliation_date/i18n/account_reconcile_reconciliation_date.pot +++ b/account_reconcile_reconciliation_date/i18n/account_reconcile_reconciliation_date.pot @@ -1,26 +1,47 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * account_reconcile_reconciliation_date +# * account_reconcile_reconciliation_date # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name +msgid "Display Name" +msgstr "" + #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile msgid "Full Reconcile" msgstr "" #. module: account_reconcile_reconciliation_date -#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_invoice -msgid "Invoice" +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id +msgid "ID" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update +msgid "Last Modified on" msgstr "" #. module: account_reconcile_reconciliation_date @@ -29,9 +50,9 @@ msgid "Payments" msgstr "" #. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date -#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_invoice__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date msgid "Reconciliation Date" msgstr "" - From aded64bb1f9abaa927b45a47c9afa171638d295a Mon Sep 17 00:00:00 2001 From: Sergio Zanchetta Date: Fri, 23 Jul 2021 09:46:38 +0000 Subject: [PATCH 09/25] Added translation using Weblate (Italian) --- .../i18n/it.po | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 account_reconcile_reconciliation_date/i18n/it.po diff --git a/account_reconcile_reconciliation_date/i18n/it.po b/account_reconcile_reconciliation_date/i18n/it.po new file mode 100644 index 0000000000..5af400bf59 --- /dev/null +++ b/account_reconcile_reconciliation_date/i18n/it.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_reconcile_reconciliation_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name +msgid "Display Name" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile +msgid "Full Reconcile" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id +msgid "ID" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment +msgid "Payments" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date +msgid "Reconciliation Date" +msgstr "" From 80ecfbac78c94cd85b8917f3e4fa96b9785bd52d Mon Sep 17 00:00:00 2001 From: Sergio Zanchetta Date: Fri, 23 Jul 2021 09:48:17 +0000 Subject: [PATCH 10/25] Translated using Weblate (Italian) Currently translated at 100.0% (7 of 7 strings) Translation: account-reconcile-14.0/account-reconcile-14.0-account_reconcile_reconciliation_date Translate-URL: https://translation.odoo-community.org/projects/account-reconcile-14-0/account-reconcile-14-0-account_reconcile_reconciliation_date/it/ --- .../i18n/it.po | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/account_reconcile_reconciliation_date/i18n/it.po b/account_reconcile_reconciliation_date/i18n/it.po index 5af400bf59..c62c436fea 100644 --- a/account_reconcile_reconciliation_date/i18n/it.po +++ b/account_reconcile_reconciliation_date/i18n/it.po @@ -6,49 +6,51 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-07-23 11:49+0000\n" +"Last-Translator: Sergio Zanchetta \n" "Language-Team: none\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile msgid "Full Reconcile" -msgstr "" +msgstr "Riconciliazione totale" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id msgid "ID" -msgstr "" +msgstr "ID" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move msgid "Journal Entry" -msgstr "" +msgstr "Registrazione contabile" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update msgid "Last Modified on" -msgstr "" +msgstr "Ultima modifica il" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment msgid "Payments" -msgstr "" +msgstr "Pagamenti" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date @@ -56,4 +58,4 @@ msgstr "" #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date msgid "Reconciliation Date" -msgstr "" +msgstr "Data riconciliazione" From 1e4c1bb7b2c120b87c8cf97d83cecf1ed001ed77 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Wed, 25 Aug 2021 19:36:26 +0200 Subject: [PATCH 11/25] [FIX] account_reconcile_reconciliation_date tests compatibility with account_move_base_import Make sure always the current company journal is chosen, else we may chose journals from different company (among allowed companies) and then have a payment with inconistent companies) --- .../tests/test_account_reconcile_reconciliation_date.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py index 2554acee63..d4a080ad42 100644 --- a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py +++ b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py @@ -69,7 +69,7 @@ def setUp(self): ) self.bank_journal_euro = self.env["account.journal"].search( - [("type", "=", "bank")], limit=1 + [("type", "=", "bank"), ("company_id", "=", self.env.company.id)], limit=1 ) self.account_eur = self.bank_journal_euro.default_account_id @@ -83,7 +83,7 @@ def setUp(self): ) self.account_usd = self.bank_journal_usd.default_account_id self.journal_id = self.env["account.journal"].search( - [("type", "=", "sale")], limit=1 + [("type", "=", "sale"), ("company_id", "=", self.env.company.id)], limit=1 ) self.transfer_account = ( self.env["res.users"].browse(self.env.uid).company_id.transfer_account_id From c3e738d6fddb890d453f336705c0751ae3c4ff6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Thu, 16 Sep 2021 03:53:47 +0000 Subject: [PATCH 12/25] Added translation using Weblate (Chinese (Simplified)) --- .../i18n/zh_CN.po | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 account_reconcile_reconciliation_date/i18n/zh_CN.po diff --git a/account_reconcile_reconciliation_date/i18n/zh_CN.po b/account_reconcile_reconciliation_date/i18n/zh_CN.po new file mode 100644 index 0000000000..6bbe39d58e --- /dev/null +++ b/account_reconcile_reconciliation_date/i18n/zh_CN.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_reconcile_reconciliation_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name +msgid "Display Name" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile +msgid "Full Reconcile" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id +msgid "ID" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment +msgid "Payments" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date +msgid "Reconciliation Date" +msgstr "" From 97a352ffb6457a7c66eb976b57575069c9f33e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Thu, 16 Sep 2021 03:56:40 +0000 Subject: [PATCH 13/25] Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (7 of 7 strings) Translation: account-reconcile-14.0/account-reconcile-14.0-account_reconcile_reconciliation_date Translate-URL: https://translation.odoo-community.org/projects/account-reconcile-14-0/account-reconcile-14-0-account_reconcile_reconciliation_date/zh_CN/ --- .../i18n/zh_CN.po | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/account_reconcile_reconciliation_date/i18n/zh_CN.po b/account_reconcile_reconciliation_date/i18n/zh_CN.po index 6bbe39d58e..2037cf6e99 100644 --- a/account_reconcile_reconciliation_date/i18n/zh_CN.po +++ b/account_reconcile_reconciliation_date/i18n/zh_CN.po @@ -6,49 +6,51 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-09-16 06:34+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" "Language-Team: none\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 4.3.2\n" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name msgid "Display Name" -msgstr "" +msgstr "显示名称" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile msgid "Full Reconcile" -msgstr "" +msgstr "完美对账" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id msgid "ID" -msgstr "" +msgstr "ID" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move msgid "Journal Entry" -msgstr "" +msgstr "日记帐分录" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update msgid "Last Modified on" -msgstr "" +msgstr "最后修改日" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment msgid "Payments" -msgstr "" +msgstr "支付" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date @@ -56,4 +58,4 @@ msgstr "" #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date msgid "Reconciliation Date" -msgstr "" +msgstr "对帐日期" From 295fc30b7322132fb1ade0842da356d4647c4f52 Mon Sep 17 00:00:00 2001 From: Ignacio Buioli Date: Sun, 14 Nov 2021 23:06:04 +0000 Subject: [PATCH 14/25] Added translation using Weblate (Spanish (Argentina)) --- .../i18n/es_AR.po | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 account_reconcile_reconciliation_date/i18n/es_AR.po diff --git a/account_reconcile_reconciliation_date/i18n/es_AR.po b/account_reconcile_reconciliation_date/i18n/es_AR.po new file mode 100644 index 0000000000..08db450879 --- /dev/null +++ b/account_reconcile_reconciliation_date/i18n/es_AR.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_reconcile_reconciliation_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es_AR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name +msgid "Display Name" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile +msgid "Full Reconcile" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id +msgid "ID" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment +msgid "Payments" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date +msgid "Reconciliation Date" +msgstr "" From 6d5e1cc637a5cd95aa511981c596e5d0257402c3 Mon Sep 17 00:00:00 2001 From: Ignacio Buioli Date: Sun, 14 Nov 2021 23:22:43 +0000 Subject: [PATCH 15/25] Translated using Weblate (Spanish (Argentina)) Currently translated at 100.0% (7 of 7 strings) Translation: account-reconcile-14.0/account-reconcile-14.0-account_reconcile_reconciliation_date Translate-URL: https://translation.odoo-community.org/projects/account-reconcile-14-0/account-reconcile-14-0-account_reconcile_reconciliation_date/es_AR/ --- .../i18n/es_AR.po | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/account_reconcile_reconciliation_date/i18n/es_AR.po b/account_reconcile_reconciliation_date/i18n/es_AR.po index 08db450879..0b88f98b2c 100644 --- a/account_reconcile_reconciliation_date/i18n/es_AR.po +++ b/account_reconcile_reconciliation_date/i18n/es_AR.po @@ -6,49 +6,51 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-11-15 01:36+0000\n" +"Last-Translator: Ignacio Buioli \n" "Language-Team: none\n" "Language: es_AR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name msgid "Display Name" -msgstr "" +msgstr "Mostrar Nombre" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile msgid "Full Reconcile" -msgstr "" +msgstr "Conciliación Total" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id msgid "ID" -msgstr "" +msgstr "ID" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move msgid "Journal Entry" -msgstr "" +msgstr "Asiento Contable" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update msgid "Last Modified on" -msgstr "" +msgstr "Última modificación en" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment msgid "Payments" -msgstr "" +msgstr "Pagos" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date @@ -56,4 +58,4 @@ msgstr "" #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date msgid "Reconciliation Date" -msgstr "" +msgstr "Fecha de Conciliación" From 669d46583fe5cdd78b6efc57274709150fbe4b19 Mon Sep 17 00:00:00 2001 From: Simon S Date: Wed, 17 Nov 2021 08:53:01 +0000 Subject: [PATCH 16/25] Added translation using Weblate (Swedish) --- .../i18n/sv.po | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 account_reconcile_reconciliation_date/i18n/sv.po diff --git a/account_reconcile_reconciliation_date/i18n/sv.po b/account_reconcile_reconciliation_date/i18n/sv.po new file mode 100644 index 0000000000..2181c87259 --- /dev/null +++ b/account_reconcile_reconciliation_date/i18n/sv.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_reconcile_reconciliation_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name +msgid "Display Name" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile +msgid "Full Reconcile" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id +msgid "ID" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment +msgid "Payments" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date +msgid "Reconciliation Date" +msgstr "" From d874642e44575c3478f44deeadcbfda4845f3801 Mon Sep 17 00:00:00 2001 From: Simon S Date: Wed, 17 Nov 2021 08:54:03 +0000 Subject: [PATCH 17/25] Translated using Weblate (Swedish) Currently translated at 100.0% (7 of 7 strings) Translation: account-reconcile-14.0/account-reconcile-14.0-account_reconcile_reconciliation_date Translate-URL: https://translation.odoo-community.org/projects/account-reconcile-14-0/account-reconcile-14-0-account_reconcile_reconciliation_date/sv/ --- .../i18n/sv.po | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/account_reconcile_reconciliation_date/i18n/sv.po b/account_reconcile_reconciliation_date/i18n/sv.po index 2181c87259..01871bb1af 100644 --- a/account_reconcile_reconciliation_date/i18n/sv.po +++ b/account_reconcile_reconciliation_date/i18n/sv.po @@ -6,49 +6,51 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-11-17 11:36+0000\n" +"Last-Translator: Simon S \n" "Language-Team: none\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name msgid "Display Name" -msgstr "" +msgstr "Visningsnamn" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile msgid "Full Reconcile" -msgstr "" +msgstr "Fullständig avstämning" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id msgid "ID" -msgstr "" +msgstr "ID" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move msgid "Journal Entry" -msgstr "" +msgstr "Verifikat" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update msgid "Last Modified on" -msgstr "" +msgstr "Senast ändrad den" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment msgid "Payments" -msgstr "" +msgstr "Betalningar" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date @@ -56,4 +58,4 @@ msgstr "" #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date msgid "Reconciliation Date" -msgstr "" +msgstr "Avstämningsdatum" From 692fa48bd883ad065c2ec547b8c2a022c7f54db0 Mon Sep 17 00:00:00 2001 From: oca-git-bot Date: Wed, 30 Mar 2022 21:45:13 +0200 Subject: [PATCH 18/25] [IMP] update dotfiles [ci skip] --- .../tests/test_account_reconcile_reconciliation_date.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py index d4a080ad42..3f1e1cc4fe 100644 --- a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py +++ b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py @@ -107,7 +107,7 @@ def create_invoice( partner=None, account_id=None, ): - """ Returns an open invoice """ + """Returns an open invoice""" invoice = self.invoice_model.create( { "partner_id": partner or self.partner_agrolait.id, From ff83fa6126fe766526a37480713d9e45e73f41b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dept=2E=20T=C3=A9cnico?= Date: Tue, 12 Apr 2022 14:06:21 +0000 Subject: [PATCH 19/25] Added translation using Weblate (Spanish) --- .../i18n/es.po | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 account_reconcile_reconciliation_date/i18n/es.po diff --git a/account_reconcile_reconciliation_date/i18n/es.po b/account_reconcile_reconciliation_date/i18n/es.po new file mode 100644 index 0000000000..8dc8691686 --- /dev/null +++ b/account_reconcile_reconciliation_date/i18n/es.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_reconcile_reconciliation_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name +msgid "Display Name" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile +msgid "Full Reconcile" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id +msgid "ID" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment +msgid "Payments" +msgstr "" + +#. module: account_reconcile_reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date +#: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date +msgid "Reconciliation Date" +msgstr "" From 3e91b74b42831b682a092e500220aa6df04e4240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dept=2E=20T=C3=A9cnico?= Date: Tue, 12 Apr 2022 15:59:53 +0000 Subject: [PATCH 20/25] Translated using Weblate (Spanish) Currently translated at 100.0% (7 of 7 strings) Translation: account-reconcile-14.0/account-reconcile-14.0-account_reconcile_reconciliation_date Translate-URL: https://translation.odoo-community.org/projects/account-reconcile-14-0/account-reconcile-14-0-account_reconcile_reconciliation_date/es/ --- .../i18n/es.po | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/account_reconcile_reconciliation_date/i18n/es.po b/account_reconcile_reconciliation_date/i18n/es.po index 8dc8691686..b60b84eaaf 100644 --- a/account_reconcile_reconciliation_date/i18n/es.po +++ b/account_reconcile_reconciliation_date/i18n/es.po @@ -6,49 +6,51 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2022-04-12 18:05+0000\n" +"Last-Translator: Dept. Técnico \n" "Language-Team: none\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__display_name #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__display_name msgid "Display Name" -msgstr "" +msgstr "Nombre de la pantalla" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_full_reconcile msgid "Full Reconcile" -msgstr "" +msgstr "Reconciliación completa" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__id #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__id msgid "ID" -msgstr "" +msgstr "Identificación" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_move msgid "Journal Entry" -msgstr "" +msgstr "Anotación en el diario" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_full_reconcile____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move____last_update #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment____last_update msgid "Last Modified on" -msgstr "" +msgstr "Última modificación en" #. module: account_reconcile_reconciliation_date #: model:ir.model,name:account_reconcile_reconciliation_date.model_account_payment msgid "Payments" -msgstr "" +msgstr "Pagos" #. module: account_reconcile_reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_bank_statement_line__reconciliation_date @@ -56,4 +58,4 @@ msgstr "" #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_move__reconciliation_date #: model:ir.model.fields,field_description:account_reconcile_reconciliation_date.field_account_payment__reconciliation_date msgid "Reconciliation Date" -msgstr "" +msgstr "Fecha de reconciliación" From 12f6ae65c3e19dfa204d0b63e6b72eead3c2dbac Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 18 Apr 2022 09:50:31 +0200 Subject: [PATCH 21/25] [FIX] account_reconcile_reconciliation_date: Run tests post-install Since https://github.com/odoo/odoo/commit/81aac30dd2278e43a43cf8fd6cef31e1e8c60f3f, all tests inheriting from AccountTestInvoicingCommon must be post-install. --- .../tests/test_account_reconcile_reconciliation_date.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py index 3f1e1cc4fe..c2c28125fe 100644 --- a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py +++ b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py @@ -3,9 +3,12 @@ import time +import odoo.tests + from odoo.addons.account.tests.common import AccountTestInvoicingCommon +@odoo.tests.tagged("post_install", "-at_install") class TestAccountReconcileReconciliationDate(AccountTestInvoicingCommon): def setUp(self): super(TestAccountReconcileReconciliationDate, self).setUp() From a8f59db9632e01720900c4c69a97ee52a3630374 Mon Sep 17 00:00:00 2001 From: Cyril VINH-TUNG Date: Tue, 2 Aug 2022 15:21:14 -1000 Subject: [PATCH 22/25] [IMP] reconciliation date should not be copied --- account_reconcile_reconciliation_date/models/account_move.py | 2 +- account_reconcile_reconciliation_date/models/account_payment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_reconcile_reconciliation_date/models/account_move.py b/account_reconcile_reconciliation_date/models/account_move.py index 436f0defac..b2b4098965 100644 --- a/account_reconcile_reconciliation_date/models/account_move.py +++ b/account_reconcile_reconciliation_date/models/account_move.py @@ -7,4 +7,4 @@ class AccountMove(models.Model): _inherit = "account.move" - reconciliation_date = fields.Date(string="Reconciliation Date") + reconciliation_date = fields.Date(string="Reconciliation Date", copy=False) diff --git a/account_reconcile_reconciliation_date/models/account_payment.py b/account_reconcile_reconciliation_date/models/account_payment.py index f59ef6ba78..3052527eeb 100644 --- a/account_reconcile_reconciliation_date/models/account_payment.py +++ b/account_reconcile_reconciliation_date/models/account_payment.py @@ -7,4 +7,4 @@ class AccountPayment(models.Model): _inherit = "account.payment" - reconciliation_date = fields.Date(string="Reconciliation Date") + reconciliation_date = fields.Date(string="Reconciliation Date", copy=False) From e3e8d65732bdcef7a236ce3d0a66cb089dc61d17 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 11 Dec 2022 14:20:29 +0000 Subject: [PATCH 23/25] account_reconcile_reconciliation_date 14.0.1.0.1 --- account_reconcile_reconciliation_date/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_reconcile_reconciliation_date/__manifest__.py b/account_reconcile_reconciliation_date/__manifest__.py index fe90f7409c..66f6dd6bdc 100644 --- a/account_reconcile_reconciliation_date/__manifest__.py +++ b/account_reconcile_reconciliation_date/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Reconciliation Date", "summary": "Track Reconciliation Date of Payments and Invoices", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "depends": ["account"], "author": "Open Source Integrators, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-reconcile", From 8c77d627d6f57cf4434758f0c67c56b85a8af7ea Mon Sep 17 00:00:00 2001 From: kaynnan Date: Fri, 7 Jul 2023 09:36:22 -0300 Subject: [PATCH 24/25] [IMP] account_reconcile_reconciliation_date: black, isort, prettier --- .../odoo/addons/account_reconcile_reconciliation_date | 1 + setup/account_reconcile_reconciliation_date/setup.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 120000 setup/account_reconcile_reconciliation_date/odoo/addons/account_reconcile_reconciliation_date create mode 100644 setup/account_reconcile_reconciliation_date/setup.py diff --git a/setup/account_reconcile_reconciliation_date/odoo/addons/account_reconcile_reconciliation_date b/setup/account_reconcile_reconciliation_date/odoo/addons/account_reconcile_reconciliation_date new file mode 120000 index 0000000000..12e4abc027 --- /dev/null +++ b/setup/account_reconcile_reconciliation_date/odoo/addons/account_reconcile_reconciliation_date @@ -0,0 +1 @@ +../../../../account_reconcile_reconciliation_date \ No newline at end of file diff --git a/setup/account_reconcile_reconciliation_date/setup.py b/setup/account_reconcile_reconciliation_date/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/account_reconcile_reconciliation_date/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From db5e95190e3929b83d2aee86e1b73ffef8ea49e1 Mon Sep 17 00:00:00 2001 From: kaynnan Date: Fri, 7 Jul 2023 10:12:11 -0300 Subject: [PATCH 25/25] [MIG] account_reconcile_reconciliation_date: Migration to 15.0 --- account_reconcile_reconciliation_date/__manifest__.py | 2 +- .../models/account_full_reconcile.py | 4 +--- account_reconcile_reconciliation_date/models/account_move.py | 2 +- .../models/account_payment.py | 2 +- .../tests/test_account_reconcile_reconciliation_date.py | 3 +-- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/account_reconcile_reconciliation_date/__manifest__.py b/account_reconcile_reconciliation_date/__manifest__.py index 66f6dd6bdc..28ef1319df 100644 --- a/account_reconcile_reconciliation_date/__manifest__.py +++ b/account_reconcile_reconciliation_date/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Reconciliation Date", "summary": "Track Reconciliation Date of Payments and Invoices", - "version": "14.0.1.0.1", + "version": "15.0.1.0.0", "depends": ["account"], "author": "Open Source Integrators, Odoo Community Association (OCA)", "website": "https://github.com/OCA/account-reconcile", diff --git a/account_reconcile_reconciliation_date/models/account_full_reconcile.py b/account_reconcile_reconciliation_date/models/account_full_reconcile.py index b652b850a5..5ccc943233 100644 --- a/account_reconcile_reconciliation_date/models/account_full_reconcile.py +++ b/account_reconcile_reconciliation_date/models/account_full_reconcile.py @@ -10,9 +10,7 @@ class AccountFullReconcile(models.Model): _inherit = "account.full.reconcile" _description = "Full Reconcile" - reconciliation_date = fields.Date( - string="Reconciliation Date", default=date.today() - ) + reconciliation_date = fields.Date(default=date.today()) @api.model def create(self, vals): diff --git a/account_reconcile_reconciliation_date/models/account_move.py b/account_reconcile_reconciliation_date/models/account_move.py index b2b4098965..ffbc6f40f6 100644 --- a/account_reconcile_reconciliation_date/models/account_move.py +++ b/account_reconcile_reconciliation_date/models/account_move.py @@ -7,4 +7,4 @@ class AccountMove(models.Model): _inherit = "account.move" - reconciliation_date = fields.Date(string="Reconciliation Date", copy=False) + reconciliation_date = fields.Date(copy=False) diff --git a/account_reconcile_reconciliation_date/models/account_payment.py b/account_reconcile_reconciliation_date/models/account_payment.py index 3052527eeb..5ada4f9dfb 100644 --- a/account_reconcile_reconciliation_date/models/account_payment.py +++ b/account_reconcile_reconciliation_date/models/account_payment.py @@ -7,4 +7,4 @@ class AccountPayment(models.Model): _inherit = "account.payment" - reconciliation_date = fields.Date(string="Reconciliation Date", copy=False) + reconciliation_date = fields.Date(copy=False) diff --git a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py index c2c28125fe..36e791888f 100644 --- a/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py +++ b/account_reconcile_reconciliation_date/tests/test_account_reconcile_reconciliation_date.py @@ -177,11 +177,10 @@ def test_full_payment_process(self): ) ctx = {"active_model": "account.move", "active_ids": [inv_1.id, inv_2.id]} - register_payments = self.register_payments_model.with_context(ctx).create( + register_payments = self.register_payments_model.with_context(**ctx).create( { "payment_date": time.strftime("%Y") + "-07-15", "journal_id": self.bank_journal_euro.id, - "payment_method_id": self.payment_method_manual_in.id, } ) register_payments.flush()