From 82ea174b7288a82b18a7d6d5dab6e5b7a7591617 Mon Sep 17 00:00:00 2001 From: kittiu Date: Thu, 9 Apr 2020 16:09:34 +0700 Subject: [PATCH] [13.0][FIX] Remove wrong account_document_reversal to fix the broken branch. https://github.com/OCA/account-financial-tools/pull/965 --- account_document_reversal/README.rst | 108 ----- account_document_reversal/__init__.py | 4 - account_document_reversal/__manifest__.py | 22 - .../i18n/account_document_reversal.pot | 199 -------- account_document_reversal/i18n/hr.po | 202 -------- account_document_reversal/i18n/pt.po | 209 -------- account_document_reversal/models/__init__.py | 7 - account_document_reversal/models/account.py | 35 -- .../models/account_bank_statement.py | 54 --- .../models/account_document_reversal.py | 42 -- .../models/account_move.py | 79 --- .../models/account_payment.py | 37 -- .../readme/CONFIGURE.rst | 4 - .../readme/CONTRIBUTORS.rst | 2 - .../readme/DESCRIPTION.rst | 9 - account_document_reversal/readme/USAGE.rst | 5 - .../static/description/index.html | 450 ------------------ account_document_reversal/tests/__init__.py | 4 - .../tests/test_invoice_reversal.py | 90 ---- .../tests/test_payment_reversal.py | 391 --------------- .../views/account_move_view.xml | 37 -- .../views/account_payment_view.xml | 18 - .../views/account_view.xml | 30 -- account_document_reversal/wizard/__init__.py | 3 - .../wizard/reverse_account_document.py | 46 -- .../reverse_account_document_wizard.xml | 45 -- .../README.rst | 0 .../__init__.py | 0 .../__manifest__.py | 0 .../i18n/account_move_line_purchase_info.pot | 0 .../i18n/ar.po | 0 .../i18n/bg.po | 0 .../i18n/bs.po | 0 .../i18n/ca.po | 0 .../i18n/cs.po | 0 .../i18n/de.po | 0 .../i18n/el_GR.po | 0 .../i18n/en_GB.po | 0 .../i18n/es.po | 0 .../i18n/es_CR.po | 0 .../i18n/es_EC.po | 0 .../i18n/es_MX.po | 0 .../i18n/et.po | 0 .../i18n/fi.po | 0 .../i18n/fr.po | 0 .../i18n/fr_CA.po | 0 .../i18n/fr_CH.po | 0 .../i18n/gl.po | 0 .../i18n/hr.po | 0 .../i18n/hr_HR.po | 0 .../i18n/hu.po | 0 .../i18n/id.po | 0 .../i18n/it.po | 0 .../i18n/ja.po | 0 .../i18n/lt.po | 0 .../i18n/mk.po | 0 .../i18n/mn.po | 0 .../i18n/nb.po | 0 .../i18n/nb_NO.po | 0 .../i18n/nl.po | 0 .../i18n/nl_BE.po | 0 .../i18n/pl.po | 0 .../i18n/pt.po | 0 .../i18n/pt_BR.po | 0 .../i18n/pt_PT.po | 0 .../i18n/ro.po | 0 .../i18n/ru.po | 0 .../i18n/sk_SK.po | 0 .../i18n/sl.po | 0 .../i18n/sv.po | 0 .../i18n/th.po | 0 .../i18n/tr.po | 0 .../i18n/tr_TR.po | 0 .../i18n/zh_CN.po | 0 .../i18n/zh_TW.po | 0 .../migrations/13.0.1.1.0/post-migration.py | 0 .../models/__init__.py | 0 .../models/account_move.py | 0 .../models/purchase_order_line.py | 0 .../models/stock_move.py | 0 .../readme/CONTRIBUTORS.rst | 0 .../readme/DESCRIPTION.rst | 0 .../readme/USAGE.rst | 0 .../security/account_security.xml | 0 .../static/description/icon.png | Bin .../static/description/index.html | 0 .../tests/__init__.py | 0 .../test_account_move_line_purchase_info.py | 0 .../views/account_move_view.xml | 0 .../static/description/icon.png | Bin 9455 -> 0 bytes .../odoo/addons/account_document_reversal | 1 - .../addons/account_move_line_purchase_info | 1 + .../setup.py | 0 93 files changed, 1 insertion(+), 2133 deletions(-) delete mode 100644 account_document_reversal/README.rst delete mode 100644 account_document_reversal/__init__.py delete mode 100644 account_document_reversal/__manifest__.py delete mode 100644 account_document_reversal/i18n/account_document_reversal.pot delete mode 100644 account_document_reversal/i18n/hr.po delete mode 100644 account_document_reversal/i18n/pt.po delete mode 100644 account_document_reversal/models/__init__.py delete mode 100644 account_document_reversal/models/account.py delete mode 100644 account_document_reversal/models/account_bank_statement.py delete mode 100644 account_document_reversal/models/account_document_reversal.py delete mode 100644 account_document_reversal/models/account_move.py delete mode 100644 account_document_reversal/models/account_payment.py delete mode 100644 account_document_reversal/readme/CONFIGURE.rst delete mode 100644 account_document_reversal/readme/CONTRIBUTORS.rst delete mode 100644 account_document_reversal/readme/DESCRIPTION.rst delete mode 100644 account_document_reversal/readme/USAGE.rst delete mode 100644 account_document_reversal/static/description/index.html delete mode 100644 account_document_reversal/tests/__init__.py delete mode 100644 account_document_reversal/tests/test_invoice_reversal.py delete mode 100644 account_document_reversal/tests/test_payment_reversal.py delete mode 100644 account_document_reversal/views/account_move_view.xml delete mode 100644 account_document_reversal/views/account_payment_view.xml delete mode 100644 account_document_reversal/views/account_view.xml delete mode 100644 account_document_reversal/wizard/__init__.py delete mode 100644 account_document_reversal/wizard/reverse_account_document.py delete mode 100644 account_document_reversal/wizard/reverse_account_document_wizard.xml rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/README.rst (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/__init__.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/__manifest__.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/account_move_line_purchase_info.pot (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/ar.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/bg.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/bs.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/ca.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/cs.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/de.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/el_GR.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/en_GB.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/es.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/es_CR.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/es_EC.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/es_MX.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/et.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/fi.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/fr.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/fr_CA.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/fr_CH.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/gl.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/hr.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/hr_HR.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/hu.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/id.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/it.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/ja.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/lt.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/mk.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/mn.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/nb.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/nb_NO.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/nl.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/nl_BE.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/pl.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/pt.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/pt_BR.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/pt_PT.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/ro.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/ru.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/sk_SK.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/sl.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/sv.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/th.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/tr.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/tr_TR.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/zh_CN.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/i18n/zh_TW.po (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/migrations/13.0.1.1.0/post-migration.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/models/__init__.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/models/account_move.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/models/purchase_order_line.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/models/stock_move.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/readme/CONTRIBUTORS.rst (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/readme/DESCRIPTION.rst (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/readme/USAGE.rst (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/security/account_security.xml (100%) rename {account_document_reversal => account_move_line_purchase_info}/static/description/icon.png (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/static/description/index.html (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/tests/__init__.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/tests/test_account_move_line_purchase_info.py (100%) rename {account_netting/account_move_line_purchase_info => account_move_line_purchase_info}/views/account_move_view.xml (100%) delete mode 100644 account_netting/account_move_line_purchase_info/static/description/icon.png delete mode 120000 setup/account_document_reversal/odoo/addons/account_document_reversal create mode 120000 setup/account_move_line_purchase_info/odoo/addons/account_move_line_purchase_info rename setup/{account_document_reversal => account_move_line_purchase_info}/setup.py (100%) diff --git a/account_document_reversal/README.rst b/account_document_reversal/README.rst deleted file mode 100644 index 45c543be7..000000000 --- a/account_document_reversal/README.rst +++ /dev/null @@ -1,108 +0,0 @@ -========================= -Account Document Reversal -========================= - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! 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--financial--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/13.0/account_document_reversal - :alt: OCA/account-financial-tools -.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_document_reversal - :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/92/13.0 - :alt: Try me on Runbot - -|badge1| |badge2| |badge3| |badge4| |badge5| - -By Odoo standard, when an account document is cancelled, its journal entry will be deleted completely. -This module enhance the process, instead of deletion, it will create new reversed journal entry. -This will help preserved the accounting history, which is strictly required by some country. - -Following are documented provide this feature, - -- Invoice (account.invoice) -- Payment (acccont.payment) -- Bank Statement (account.bank.statement.line) - -**Table of contents** - -.. contents:: - :local: - -Configuration -============= - -To use document reversal, setup the document's journal as following, - -- Allow Cancelling = True -- Cancel method = Reversal (create reversed journal entries) - -Usage -===== - -After configure document journal to allow cancel with reversal, it is ready to use. - -- Cancel document as normally do, system will show new cancel wizard -- User can select cancel date and new journal (if different from the document) - which will be used for the reversed journal entry - -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 -~~~~~~~ - -* Ecosoft -* Eficent - -Contributors -~~~~~~~~~~~~ - -* Kitti Upariphutthiphong -* Jordi Ballester - -Maintainers -~~~~~~~~~~~ - -This module is maintained by the OCA. - -.. image:: https://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: https://odoo-community.org - -OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use. - -.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px - :target: https://github.com/kittiu - :alt: kittiu - -Current `maintainer `__: - -|maintainer-kittiu| - -This module is part of the `OCA/account-financial-tools `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_document_reversal/__init__.py b/account_document_reversal/__init__.py deleted file mode 100644 index d12862675..000000000 --- a/account_document_reversal/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from . import wizard -from . import models diff --git a/account_document_reversal/__manifest__.py b/account_document_reversal/__manifest__.py deleted file mode 100644 index d7a605104..000000000 --- a/account_document_reversal/__manifest__.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) - -{ - "name": "Account Document Reversal", - "summary": "Create reversed journal entries when cancel document", - "version": "13.0.1.0.0", - "author": "Ecosoft," "Eficent," "Odoo Community Association (OCA)", - "website": "https://github.com/OCA/account-financial-tools", - "category": "Accounting & Finance", - "depends": ["account"], - "data": ["wizard/reverse_account_document_wizard.xml", - "views/account_view.xml", - "views/account_move_view.xml", - "views/account_payment_view.xml", - ], - "license": "AGPL-3", - "installable": True, - "application": False, - "development_status": "beta", - "maintainers": ["kittiu"], -} diff --git a/account_document_reversal/i18n/account_document_reversal.pot b/account_document_reversal/i18n/account_document_reversal.pot deleted file mode 100644 index db69ac904..000000000 --- a/account_document_reversal/i18n/account_document_reversal.pot +++ /dev/null @@ -1,199 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_document_reversal -# -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_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_document_reversal -msgid "Abstract Module for Document Reversal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_reverse_account_document -msgid "Account Document Reversal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_bank_statement_line -msgid "Bank Statement Line" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__cancel_method -msgid "Cancel Method" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_reverse_account_document__use_different_journal -msgid "Checked, if the journal of underlineing document is checked." -msgstr "" - -#. module: account_document_reversal -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Confirm" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__create_uid -msgid "Created by" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__create_date -msgid "Created on" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__reversal_journal_id -msgid "Default Reversal Journal" -msgstr "" - -#. module: account_document_reversal -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Discard" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal__display_name -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__display_name -msgid "Display Name" -msgstr "" - -#. module: account_document_reversal -#: model:ir.actions.act_window,name:account_document_reversal.action_view_reverse_account_document -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Document Cancel" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal__id -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__id -msgid "ID" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__use_different_journal -msgid "If checked, reversal wizard will show field Reversal Journal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_reverse_account_document__journal_id -msgid "If empty, uses the journal of the journal entry to be reversed." -msgstr "" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_invoice -msgid "Invoice" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_journal -msgid "Journal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_move -msgid "Journal Entries" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__reversal_journal_id -msgid "Journal in this field will show in reversal wizard as default" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal____last_update -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document____last_update -msgid "Last Modified on" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__write_uid -msgid "Last Updated by" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__write_date -msgid "Last Updated on" -msgstr "" - -#. module: account_document_reversal -#: selection:account.journal,cancel_method:0 -msgid "Normal (delete journal entries if exists)" -msgstr "" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_invoice.py:24 -#, python-format -msgid "Only fully unpaid invoice can be cancelled.\n" -"To cancel this invoice, make sure all payment(s) are also cancelled." -msgstr "" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_bank_statement.py:20 -#, python-format -msgid "Only new bank statement can be cancelled" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_payment -msgid "Payments" -msgstr "" - -#. module: account_document_reversal -#: selection:account.journal,cancel_method:0 -msgid "Reversal (create reversed journal entries)" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__journal_id -msgid "Reversal Journal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__date -msgid "Reversal date" -msgstr "" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_move.py:22 -#, python-format -msgid "This action is not allowed for cancel with reversal.\n" -"Please use Reverse Entry." -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__is_cancel_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_move__is_cancel_reversal -msgid "True, when journal allow cancel entries with method is reversal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__is_cancel_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_move__is_cancel_reversal -msgid "Use Cancel Reversal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__use_different_journal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__use_different_journal -msgid "Use different journal for reversal" -msgstr "" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_invoice.py:36 -#: code:addons/account_document_reversal/models/account_payment.py:27 -#, python-format -msgid "You are trying to cancel the cancelled document" -msgstr "" - diff --git a/account_document_reversal/i18n/hr.po b/account_document_reversal/i18n/hr.po deleted file mode 100644 index fc72a4936..000000000 --- a/account_document_reversal/i18n/hr.po +++ /dev/null @@ -1,202 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_document_reversal -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2020-03-05 14:13+0000\n" -"Last-Translator: Bole \n" -"Language-Team: none\n" -"Language: hr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=" -"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -"X-Generator: Weblate 3.10\n" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_document_reversal -msgid "Abstract Module for Document Reversal" -msgstr "Apstraktni modul za reverziju dokumenata" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_reverse_account_document -msgid "Account Document Reversal" -msgstr "Reverzija dokumenata računovodstva" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_bank_statement_line -msgid "Bank Statement Line" -msgstr "Stavka izvoda" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__cancel_method -msgid "Cancel Method" -msgstr "Metoda otkaza" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_reverse_account_document__use_different_journal -msgid "Checked, if the journal of underlineing document is checked." -msgstr "Označeno, ako je dnevnik dokumenta označen." - -#. module: account_document_reversal -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Confirm" -msgstr "Potvrdi" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__create_uid -msgid "Created by" -msgstr "Kreirao" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__create_date -msgid "Created on" -msgstr "Kreirano" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__reversal_journal_id -msgid "Default Reversal Journal" -msgstr "Zadani dnevnik otkazivanja" - -#. module: account_document_reversal -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Discard" -msgstr "Odbaci" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal__display_name -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__display_name -msgid "Display Name" -msgstr "Naziv" - -#. module: account_document_reversal -#: model:ir.actions.act_window,name:account_document_reversal.action_view_reverse_account_document -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Document Cancel" -msgstr "Otkaži dokument" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal__id -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__id -msgid "ID" -msgstr "ID" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__use_different_journal -msgid "If checked, reversal wizard will show field Reversal Journal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_reverse_account_document__journal_id -msgid "If empty, uses the journal of the journal entry to be reversed." -msgstr "" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_invoice -msgid "Invoice" -msgstr "Račun" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_journal -msgid "Journal" -msgstr "Dnevnik" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_move -msgid "Journal Entries" -msgstr "Stavke dnevnika" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__reversal_journal_id -msgid "Journal in this field will show in reversal wizard as default" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal____last_update -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document____last_update -msgid "Last Modified on" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__write_uid -msgid "Last Updated by" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__write_date -msgid "Last Updated on" -msgstr "" - -#. module: account_document_reversal -#: selection:account.journal,cancel_method:0 -msgid "Normal (delete journal entries if exists)" -msgstr "" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_invoice.py:24 -#, python-format -msgid "Only fully unpaid invoice can be cancelled.\n" -"To cancel this invoice, make sure all payment(s) are also cancelled." -msgstr "" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_bank_statement.py:20 -#, python-format -msgid "Only new bank statement can be cancelled" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_payment -msgid "Payments" -msgstr "" - -#. module: account_document_reversal -#: selection:account.journal,cancel_method:0 -msgid "Reversal (create reversed journal entries)" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__journal_id -msgid "Reversal Journal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__date -msgid "Reversal date" -msgstr "" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_move.py:22 -#, python-format -msgid "This action is not allowed for cancel with reversal.\n" -"Please use Reverse Entry." -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__is_cancel_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_move__is_cancel_reversal -msgid "True, when journal allow cancel entries with method is reversal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__is_cancel_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_move__is_cancel_reversal -msgid "Use Cancel Reversal" -msgstr "" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__use_different_journal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__use_different_journal -msgid "Use different journal for reversal" -msgstr "" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_invoice.py:36 -#: code:addons/account_document_reversal/models/account_payment.py:27 -#, python-format -msgid "You are trying to cancel the cancelled document" -msgstr "" diff --git a/account_document_reversal/i18n/pt.po b/account_document_reversal/i18n/pt.po deleted file mode 100644 index d2a7bf9fb..000000000 --- a/account_document_reversal/i18n/pt.po +++ /dev/null @@ -1,209 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * account_document_reversal -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2020-02-28 00:14+0000\n" -"Last-Translator: alvarorib \n" -"Language-Team: none\n" -"Language: pt\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 3.10\n" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_document_reversal -msgid "Abstract Module for Document Reversal" -msgstr "Módulo Resumo para Reversão Documental" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_reverse_account_document -msgid "Account Document Reversal" -msgstr "Reversão de Documento de Conta" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_bank_statement_line -msgid "Bank Statement Line" -msgstr "Linha de Extrato Bancário" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__cancel_method -msgid "Cancel Method" -msgstr "Cancelar o Método" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_reverse_account_document__use_different_journal -msgid "Checked, if the journal of underlineing document is checked." -msgstr "Selecionado, se o diário do documento sublinhado estiver selecionado." - -#. module: account_document_reversal -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Confirm" -msgstr "Confirmar" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__create_uid -msgid "Created by" -msgstr "Criado por" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__create_date -msgid "Created on" -msgstr "Criado em" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__reversal_journal_id -msgid "Default Reversal Journal" -msgstr "Diário de Reversão Pré-definido" - -#. module: account_document_reversal -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Discard" -msgstr "Descartar" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal__display_name -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__display_name -msgid "Display Name" -msgstr "Nome a Exibir" - -#. module: account_document_reversal -#: model:ir.actions.act_window,name:account_document_reversal.action_view_reverse_account_document -#: model_terms:ir.ui.view,arch_db:account_document_reversal.view_reverse_account_document -msgid "Document Cancel" -msgstr "Cancelamento de Documento" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal__id -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__id -msgid "ID" -msgstr "ID" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__use_different_journal -msgid "If checked, reversal wizard will show field Reversal Journal" -msgstr "" -"Se selecionado, o assistente de reversões mostrará o campo Diário de Reversão" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_reverse_account_document__journal_id -msgid "If empty, uses the journal of the journal entry to be reversed." -msgstr "Se vazio, usa o diário do movimento a ser revertido." - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_invoice -msgid "Invoice" -msgstr "Fatura" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_journal -msgid "Journal" -msgstr "Diário" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_move -msgid "Journal Entries" -msgstr "Movimentos de Diário" - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__reversal_journal_id -msgid "Journal in this field will show in reversal wizard as default" -msgstr "O diário neste campo mostrará o assistente de reversão por defeito" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_document_reversal____last_update -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document____last_update -msgid "Last Modified on" -msgstr "Última Modificação em" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__write_uid -msgid "Last Updated by" -msgstr "Última Actualização por" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__write_date -msgid "Last Updated on" -msgstr "Última Actualização em" - -#. module: account_document_reversal -#: selection:account.journal,cancel_method:0 -msgid "Normal (delete journal entries if exists)" -msgstr "Normal (apaga movimentos de diário de existirem)" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_invoice.py:24 -#, python-format -msgid "Only fully unpaid invoice can be cancelled.\n" -"To cancel this invoice, make sure all payment(s) are also cancelled." -msgstr "" -"Apenas faturas completamente em aberto podem ser canceladas.\n" -"Para cancelar esta fatura, verifique que todo(s) o(s) pagamento(s) estão " -"cancelados." - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_bank_statement.py:20 -#, python-format -msgid "Only new bank statement can be cancelled" -msgstr "Apenas novos extratos bancários podem ser cancelados" - -#. module: account_document_reversal -#: model:ir.model,name:account_document_reversal.model_account_payment -msgid "Payments" -msgstr "Pagamentos" - -#. module: account_document_reversal -#: selection:account.journal,cancel_method:0 -msgid "Reversal (create reversed journal entries)" -msgstr "Reversão (crie movimentos revertidos)" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__journal_id -msgid "Reversal Journal" -msgstr "Diário de Reversão" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__date -msgid "Reversal date" -msgstr "Data de reversão" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_move.py:22 -#, python-format -msgid "This action is not allowed for cancel with reversal.\n" -"Please use Reverse Entry." -msgstr "" -"Esta ação não é permitida para cancelar com reversão.\n" -"Por favor use o Movimento Revertido." - -#. module: account_document_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_journal__is_cancel_reversal -#: model:ir.model.fields,help:account_document_reversal.field_account_move__is_cancel_reversal -msgid "True, when journal allow cancel entries with method is reversal" -msgstr "" -"Verdadeiro, quando o diário permite cancelar movimentos com o método de " -"reversão" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__is_cancel_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_move__is_cancel_reversal -msgid "Use Cancel Reversal" -msgstr "Usar Reversão de Cancelamento" - -#. module: account_document_reversal -#: model:ir.model.fields,field_description:account_document_reversal.field_account_journal__use_different_journal -#: model:ir.model.fields,field_description:account_document_reversal.field_reverse_account_document__use_different_journal -msgid "Use different journal for reversal" -msgstr "Use um diário diferente para reversões" - -#. module: account_document_reversal -#: code:addons/account_document_reversal/models/account_invoice.py:36 -#: code:addons/account_document_reversal/models/account_payment.py:27 -#, python-format -msgid "You are trying to cancel the cancelled document" -msgstr "Está a tentar cancelar o documento já cancelado" diff --git a/account_document_reversal/models/__init__.py b/account_document_reversal/models/__init__.py deleted file mode 100644 index 127c46068..000000000 --- a/account_document_reversal/models/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from . import account -from . import account_document_reversal -from . import account_payment -from . import account_bank_statement -from . import account_move diff --git a/account_document_reversal/models/account.py b/account_document_reversal/models/account.py deleted file mode 100644 index 6a270533d..000000000 --- a/account_document_reversal/models/account.py +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from odoo import api, fields, models - - -class AccountJournal(models.Model): - _inherit = "account.journal" - - cancel_method = fields.Selection( - [ - ("normal", "Normal (remove journal entries)"), - ("reversal", "Reversal (create reversed journal entries)"), - ], - string="Cancel Method", - default="normal", - required=True, - ) - is_cancel_reversal = fields.Boolean( - string="Use Cancel Reversal", - compute="_compute_is_cancel_reversal", - help="True, when journal allow cancel entries with method is reversal", - ) - use_different_journal = fields.Boolean( - string="Use different journal for reversal", - help="If checked, reversal wizard will show field Reversal Journal", - ) - reversal_journal_id = fields.Many2one( - "account.journal", - string="Default Reversal Journal", - help="Journal in this field will show in reversal wizard as default", - ) - - def _compute_is_cancel_reversal(self): - for rec in self: - rec.is_cancel_reversal = rec.cancel_method == "reversal" diff --git a/account_document_reversal/models/account_bank_statement.py b/account_document_reversal/models/account_bank_statement.py deleted file mode 100644 index 00054d590..000000000 --- a/account_document_reversal/models/account_bank_statement.py +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from odoo import _, models -from odoo.exceptions import UserError - - -class AccountPayment(models.Model): - _name = "account.bank.statement.line" - _inherit = ["account.bank.statement.line", "account.document.reversal"] - - def button_cancel_reconciliation(self): - """ If cancel method is to reverse, use document reversal wizard """ - cancel_reversal = all( - self.mapped("journal_entry_ids.move_id.journal_id.is_cancel_reversal") - ) - states = self.mapped("statement_id.state") - if cancel_reversal: - if not all(st == "open" for st in states): - raise UserError(_("Only new bank statement can be cancelled")) - return self.reverse_document_wizard() - return super().button_cancel_reconciliation() - - def action_document_reversal(self, date=None, journal_id=None): - """ Reverse all moves related to this statement + delete payment """ - # This part is from button_cancel_reconciliation() - aml_to_unbind = self.env['account.move.line'] - aml_to_cancel = self.env['account.move.line'] - payment_to_unreconcile = self.env['account.payment'] - payment_to_cancel = self.env['account.payment'] - for st_line in self: - aml_to_unbind |= st_line.journal_entry_ids - for line in st_line.journal_entry_ids: - payment_to_unreconcile |= line.payment_id - if st_line.move_name and line.payment_id.payment_reference == st_line.move_name: - #there can be several moves linked to a statement line but maximum one created by the line itself - aml_to_cancel |= line - payment_to_cancel |= line.payment_id - aml_to_unbind = aml_to_unbind - aml_to_cancel - - if aml_to_unbind: - aml_to_unbind.write({'statement_line_id': False}) - - payment_to_unreconcile = payment_to_unreconcile - payment_to_cancel - if payment_to_unreconcile: - payment_to_unreconcile.unreconcile() - # -- - - # Find account moves to cancel reversal - moves = aml_to_cancel.mapped("move_id") - # Create reverse entries - moves._cancel_reversal(journal_id) - # Set cancel related payments - payment_to_cancel.write({"state": "cancelled"}) - return True diff --git a/account_document_reversal/models/account_document_reversal.py b/account_document_reversal/models/account_document_reversal.py deleted file mode 100644 index 7b4e882b7..000000000 --- a/account_document_reversal/models/account_document_reversal.py +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from odoo import api, models, fields - - -class AccountDocumentReversal(models.AbstractModel): - _name = "account.document.reversal" - _description = "Abstract Module for Document Reversal" - - is_cancel_reversal = fields.Boolean( - string="Use Cancel Reversal", - compute="_compute_is_cancel_reversal", - ) - # reversal_move_ids = fields.Many2many( - # comodel_name="account.move", - # help="Cancelled journal entries", - # ) - - def _compute_is_cancel_reversal(self): - for rec in self: - if "journal_id" in rec: - rec.is_cancel_reversal = rec.journal_id.is_cancel_reversal - else: - rec.is_cancel_reversal = False - - @api.model - def reverse_document_wizard(self): - """ Return Wizard to Cancel Document """ - action = self.env.ref( - "account_document_reversal." "action_view_reverse_account_document" - ) - vals = action.read()[0] - return vals - - def action_document_reversal(self, date=None, journal_id=None): - """ Reverse with following guildeline, - - Check existing document state / raise warning - - Find all related moves and unreconcile - - Create reversed moves - - Set state to cancel - """ - raise NotImplementedError() diff --git a/account_document_reversal/models/account_move.py b/account_document_reversal/models/account_move.py deleted file mode 100644 index ae7f2cf33..000000000 --- a/account_document_reversal/models/account_move.py +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 2019 Eficent Business and IT Consulting Services, S.L. -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from odoo import _, fields, models -from odoo.exceptions import UserError - - -class AccountMove(models.Model): - _name = "account.move" - _inherit = ["account.move", "account.document.reversal"] - - cancel_reversal = fields.Boolean( - string="Cancel Reversal", - default=False, copy=False, - help="This document is being cancelled by using reversal method", - ) - - def button_cancel_reversal(self): - return self.reverse_document_wizard() - - def button_draft(self): - for rec in self: - if rec.is_cancel_reversal and rec.state != "cancel": - raise UserError(_("Cannot set to draft!")) - return super().button_draft() - - def action_document_reversal(self, date=None, journal_id=None): - # Check document readiness - valid_state = len(self.mapped("state")) == 1 and \ - list(set(self.mapped("state")))[0] == "posted" - if not valid_state: - raise UserError( - _("Only posted document can be cancelled (reversal)")) - if self.mapped("line_ids.matched_debit_ids") | self.mapped("line_ids.matched_credit_ids"): - raise UserError( - _("Only fully unpaid invoice can be cancelled.\n" - "To cancel this invoice, make sure all payment(s) " - "are also cancelled.")) - # Create reverse entries - self._cancel_reversal(journal_id) - return True - - def _cancel_reversal(self, journal_id): - self.mapped("line_ids").filtered( - lambda x: x.account_id.reconcile).remove_move_reconcile() - Reversal = self.env["account.move.reversal"] - ctx = {"active_ids": self.ids, "active_model": "account.move"} - res = Reversal.with_context(ctx).default_get([]) - res.update({"journal_id": journal_id, - "refund_method": "cancel", - "move_type": "entry", }) - reversal = Reversal.create(res) - reversal.with_context(cancel_reversal=True).reverse_moves() - - def _reverse_moves(self, default_values_list=None, cancel=False): - """ Set flag on the moves and the reversal moves being reversed """ - if self._context.get("cancel_reversal"): - self.write({"cancel_reversal": True}) - reverse_moves = super()._reverse_moves(default_values_list, cancel) - if self._context.get("cancel_reversal"): - reverse_moves.write({"cancel_reversal": True}) - return reverse_moves - - def _reverse_move_vals(self, default_values, cancel=True): - """ Reverse with cancel reversal, always use move_type = entry """ - if self._context.get("cancel_reversal"): - default_values.update({"type": "entry"}) - return super()._reverse_move_vals(default_values, cancel) - - -class AccountMoveLine(models.Model): - _inherit = "account.move.line" - - def remove_move_reconcile(self): - """ For move with cancel_reversal = True, freeze it """ - if not self._context.get("cancel_reversal") and \ - any(self.mapped("move_id").mapped("cancel_reversal")): - raise UserError(_("This document was cancelled and freezed,\n" - "unreconcilation not allowed.")) - return super().remove_move_reconcile() diff --git a/account_document_reversal/models/account_payment.py b/account_document_reversal/models/account_payment.py deleted file mode 100644 index 2621b9103..000000000 --- a/account_document_reversal/models/account_payment.py +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from odoo import _, api, models, fields -from odoo.exceptions import UserError - - -class AccountPayment(models.Model): - _name = "account.payment" - _inherit = ["account.payment", "account.document.reversal"] - - def cancel_reversal(self): - return self.reverse_document_wizard() - - def action_draft(self): - """ Case cancel reversal, set to draft allowed only when no moves """ - for rec in self: - if rec.is_cancel_reversal and rec.move_line_ids: - raise UserError(_("Cannot set to draft!")) - return super().action_draft() - - def action_document_reversal(self, date=None, journal_id=None): - """ Reverse all moves related to this payment + set state to cancel """ - # Check document readiness - valid_state = len(self.mapped("state")) == 1 and \ - list(set(self.mapped("state")))[0] == "posted" - if not valid_state: - raise UserError( - _("Only validated document can be cancelled (reversal)")) - # Find moves to get reversed - move_lines = self.mapped("move_line_ids").filtered( - lambda x: x.journal_id == self.mapped("journal_id")[0]) - moves = move_lines.mapped("move_id") - # Create reverse entries - moves._cancel_reversal(journal_id) - # Set state cancelled and unlink with account.move - self.write({"state": "cancelled"}) - return True diff --git a/account_document_reversal/readme/CONFIGURE.rst b/account_document_reversal/readme/CONFIGURE.rst deleted file mode 100644 index fabba941f..000000000 --- a/account_document_reversal/readme/CONFIGURE.rst +++ /dev/null @@ -1,4 +0,0 @@ -To use document reversal, setup the document's journal as following, - -- Allow Cancelling = True -- Cancel method = Reversal (create reversed journal entries) diff --git a/account_document_reversal/readme/CONTRIBUTORS.rst b/account_document_reversal/readme/CONTRIBUTORS.rst deleted file mode 100644 index 200e1b882..000000000 --- a/account_document_reversal/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,2 +0,0 @@ -* Kitti Upariphutthiphong -* Jordi Ballester diff --git a/account_document_reversal/readme/DESCRIPTION.rst b/account_document_reversal/readme/DESCRIPTION.rst deleted file mode 100644 index e2e724839..000000000 --- a/account_document_reversal/readme/DESCRIPTION.rst +++ /dev/null @@ -1,9 +0,0 @@ -By Odoo standard, when an account document is cancelled, its journal entry will be deleted completely. -This module enhance the process, instead of deletion, it will create new reversed journal entry. -This will help preserved the accounting history, which is strictly required by some country. - -Following are documented provide this feature, - -- Invoice (account.invoice) -- Payment (acccont.payment) -- Bank Statement (account.bank.statement.line) diff --git a/account_document_reversal/readme/USAGE.rst b/account_document_reversal/readme/USAGE.rst deleted file mode 100644 index df83b3dee..000000000 --- a/account_document_reversal/readme/USAGE.rst +++ /dev/null @@ -1,5 +0,0 @@ -After configure document journal to allow cancel with reversal, it is ready to use. - -- Cancel document as normally do, system will show new cancel wizard -- User can select cancel date and new journal (if different from the document) - which will be used for the reversed journal entry diff --git a/account_document_reversal/static/description/index.html b/account_document_reversal/static/description/index.html deleted file mode 100644 index d6ee98fd5..000000000 --- a/account_document_reversal/static/description/index.html +++ /dev/null @@ -1,450 +0,0 @@ - - - - - - -Account Document Reversal - - - -
-

Account Document Reversal

- - -

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

-

By Odoo standard, when an account document is cancelled, its journal entry will be deleted completely. -This module enhance the process, instead of deletion, it will create new reversed journal entry. -This will help preserved the accounting history, which is strictly required by some country.

-

Following are documented provide this feature,

-
    -
  • Invoice (account.invoice)
  • -
  • Payment (acccont.payment)
  • -
  • Bank Statement (account.bank.statement.line)
  • -
-

Table of contents

- -
-

Configuration

-

To use document reversal, setup the document’s journal as following,

-
    -
  • Allow Cancelling = True
  • -
  • Cancel method = Reversal (create reversed journal entries)
  • -
-
-
-

Usage

-

After configure document journal to allow cancel with reversal, it is ready to use.

-
    -
  • Cancel document as normally do, system will show new cancel wizard
  • -
  • User can select cancel date and new journal (if different from the document) -which will be used for the reversed journal entry
  • -
-
-
-

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

-
    -
  • Ecosoft
  • -
  • Eficent
  • -
-
-
-

Contributors

- -
-
-

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.

-

Current maintainer:

-

kittiu

-

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

-

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

-
-
-
- - diff --git a/account_document_reversal/tests/__init__.py b/account_document_reversal/tests/__init__.py deleted file mode 100644 index a7a031eab..000000000 --- a/account_document_reversal/tests/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -# from . import test_invoice_reversal -# from . import test_payment_reversal diff --git a/account_document_reversal/tests/test_invoice_reversal.py b/account_document_reversal/tests/test_invoice_reversal.py deleted file mode 100644 index 25ee36627..000000000 --- a/account_document_reversal/tests/test_invoice_reversal.py +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from odoo.tests.common import Form, SavepointCase - - -class TestInvoiceReversal(SavepointCase): - @classmethod - def setUpClass(cls): - super(TestInvoiceReversal, cls).setUpClass() - cls.partner = cls.env["res.partner"].create({"name": "Test"}) - cls.account_type_receivable = cls.env["account.account.type"].create( - {"name": "Test Receivable", "type": "receivable",} - ) - cls.account_type_regular = cls.env["account.account.type"].create( - {"name": "Test Regular", "type": "other",} - ) - cls.account_receivable = cls.env["account.account"].create( - { - "name": "Test Receivable", - "code": "TEST_AR", - "user_type_id": cls.account_type_receivable.id, - "reconcile": True, - } - ) - cls.account_income = cls.env["account.account"].create( - { - "name": "Test Income", - "code": "TEST_IN", - "user_type_id": cls.account_type_regular.id, - "reconcile": False, - } - ) - cls.sale_journal = cls.env["account.journal"].search([("type", "=", "sale")])[0] - cls.invoice = cls.env["account.invoice"].create( - { - "name": "Test Customer Invoice", - "journal_id": cls.sale_journal.id, - "partner_id": cls.partner.id, - "account_id": cls.account_receivable.id, - } - ) - cls.invoice_line = cls.env["account.invoice.line"] - cls.invoice_line1 = cls.invoice_line.create( - { - "invoice_id": cls.invoice.id, - "name": "Line 1", - "price_unit": 200.0, - "account_id": cls.account_income.id, - "quantity": 1, - } - ) - - def test_journal_invoice_cancel_reversal(self): - """ Tests cancel with reversal, end result must follow, - - Reversal journal entry is created, and reconciled with original entry - - Status is changed to cancel - """ - # Test journal - self.sale_journal.write( - {"update_posted": True, "cancel_method": "normal",} - ) - self.assertFalse(self.sale_journal.is_cancel_reversal) - self.sale_journal.write( - { - "update_posted": True, - "cancel_method": "reversal", - "use_different_journal": True, - } - ) - # Open invoice - self.invoice.action_invoice_open() - move = self.invoice.move_id - # Click Cancel will open reverse document wizard - res = self.invoice.action_invoice_cancel() - self.assertEqual(res["res_model"], "reverse.account.document") - # Cancel invoice - ctx = {"active_model": "account.invoice", "active_ids": [self.invoice.id]} - f = Form(self.env[res["res_model"]].with_context(ctx)) - cancel_wizard = f.save() - cancel_wizard.action_cancel() - reversed_move = move.reverse_entry_id - move_reconcile = move.mapped("line_ids").mapped("full_reconcile_id") - reversed_move_reconcile = reversed_move.mapped("line_ids").mapped( - "full_reconcile_id" - ) - # Check - self.assertTrue(move_reconcile) - self.assertTrue(reversed_move_reconcile) - self.assertEqual(move_reconcile, reversed_move_reconcile) - self.assertEqual(self.invoice.state, "cancel") diff --git a/account_document_reversal/tests/test_payment_reversal.py b/account_document_reversal/tests/test_payment_reversal.py deleted file mode 100644 index cc2d42edb..000000000 --- a/account_document_reversal/tests/test_payment_reversal.py +++ /dev/null @@ -1,391 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -import time - -from odoo.exceptions import UserError -from odoo.tests.common import Form, SavepointCase - - -class TestPaymentReversal(SavepointCase): - @classmethod - def setUpClass(cls): - super(TestPaymentReversal, cls).setUpClass() - # Models - cls.acc_bank_stmt_model = cls.env["account.bank.statement"] - cls.acc_bank_stmt_line_model = cls.env["account.bank.statement.line"] - cls.partner = cls.env["res.partner"].create({"name": "Test"}) - cls.account_account_type_model = cls.env["account.account.type"] - cls.account_account_model = cls.env["account.account"] - cls.account_journal_model = cls.env["account.journal"] - cls.account_invoice_model = cls.env["account.invoice"] - cls.account_move_line_model = cls.env["account.move.line"] - cls.invoice_line_model = cls.env["account.invoice.line"] - # Records - cls.account_type_bank = cls.account_account_type_model.create( - {"name": "Test Bank", "type": "liquidity",} - ) - cls.account_type_receivable = cls.account_account_type_model.create( - {"name": "Test Receivable", "type": "receivable",} - ) - cls.account_type_regular = cls.account_account_type_model.create( - {"name": "Test Regular", "type": "other",} - ) - cls.account_bank = cls.account_account_model.create( - { - "name": "Test Bank", - "code": "TEST_BANK", - "user_type_id": cls.account_type_bank.id, - "reconcile": False, - } - ) - cls.account_receivable = cls.account_account_model.create( - { - "name": "Test Receivable", - "code": "TEST_AR", - "user_type_id": cls.account_type_receivable.id, - "reconcile": True, - } - ) - cls.account_income = cls.account_account_model.create( - { - "name": "Test Income", - "code": "TEST_IN", - "user_type_id": cls.account_type_regular.id, - "reconcile": False, - } - ) - cls.account_expense = cls.account_account_model.create( - { - "name": "Test Expense", - "code": "TEST_EX", - "user_type_id": cls.account_type_regular.id, - "reconcile": False, - } - ) - cls.bank_journal = cls.account_journal_model.create( - {"name": "Test Bank", "code": "TBK", "type": "bank"} - ) - cls.sale_journal = cls.account_journal_model.search([("type", "=", "sale")])[0] - cls.invoice = cls.account_invoice_model.create( - { - "name": "Test Customer Invoice", - "journal_id": cls.sale_journal.id, - "partner_id": cls.partner.id, - "account_id": cls.account_receivable.id, - } - ) - - cls.invoice_line1 = cls.invoice_line_model.create( - { - "invoice_id": cls.invoice.id, - "name": "Line 1", - "price_unit": 200.0, - "account_id": cls.account_income.id, - "quantity": 1, - } - ) - - def test_payment_cancel_normal(self): - """ Tests that, if I don't use cancel reversal, - I can create an invoice, pay it and then cancel as normal. I expect: - - account move are removed completely - """ - # Test journal with normal cancel - self.bank_journal.write({"update_posted": True, "cancel_method": "normal"}) - # Open invoice - self.invoice.action_invoice_open() - # Pay invoice - self.invoice.pay_and_reconcile(self.bank_journal, 200.0) - payment = self.invoice.payment_ids[0] - payment.cancel() - move_lines = self.env["account.move.line"].search( - [("payment_id", "=", payment.id)] - ) - # All account moves are removed completely - self.assertFalse(move_lines) - - def test_payment_cancel_reversal(self): - """ Tests that if I use cancel reversal, I can create an invoice, - pay it and then cancel the payment. I expect: - - Reversal journal entry is created, and reconciled with original entry - - Status of the payment is changed to cancel - - The invoice is not reconciled with the payment anymore - """ - # Test journal - self.bank_journal.write({"update_posted": True, "cancel_method": "reversal"}) - # Open invoice - self.invoice.action_invoice_open() - # Pay invoice - self.invoice.pay_and_reconcile(self.bank_journal, 200.0) - payment = self.invoice.payment_ids[0] - move = ( - self.env["account.move.line"] - .search([("payment_id", "=", payment.id)], limit=1) - .move_id - ) - res = payment.cancel() - # Cancel payment - ctx = {"active_model": "account.payment", "active_ids": [payment.id]} - f = Form(self.env[res["res_model"]].with_context(ctx)) - self.assertEqual(res["res_model"], "reverse.account.document") - cancel_wizard = f.save() - cancel_wizard.action_cancel() - payment_moves = self.env["account.move.line"].search( - [("payment_id", "=", payment.id)] - ) - self.assertFalse(payment_moves) - reversed_move = move.reverse_entry_id - move_reconcile = move.mapped("line_ids").mapped("full_reconcile_id") - reversed_move_reconcile = reversed_move.mapped("line_ids").mapped( - "full_reconcile_id" - ) - # Check - self.assertTrue(move_reconcile) - self.assertTrue(reversed_move_reconcile) - self.assertEqual(move_reconcile, reversed_move_reconcile) - self.assertEqual(payment.state, "cancelled") - self.assertEqual(self.invoice.state, "open") - - def test_bank_statement_cancel_normal(self): - """ Tests that, if I don't use cancel reversal, - I can create an invoice, pay it via a bank statement - line and then cancel the bank statement line as normal. I expect: - - account move are removed completely - """ - # Test journal with normal cancel - self.bank_journal.write({"update_posted": True, "cancel_method": "normal"}) - # Open invoice - self.invoice.action_invoice_open() - bank_stmt = self.acc_bank_stmt_model.create( - { - "journal_id": self.bank_journal.id, - "date": time.strftime("%Y") + "-07-15", - "name": "payment" + self.invoice.name, - } - ) - bank_stmt_line = self.acc_bank_stmt_line_model.create( - { - "name": "payment", - "statement_id": bank_stmt.id, - "partner_id": self.partner.id, - "amount": 200, - "date": time.strftime("%Y") + "-07-15", - } - ) - line_id = self.account_move_line_model - # reconcile the payment with the invoice - for l in self.invoice.move_id.line_ids: - if l.account_id.id == self.account_receivable.id: - line_id = l - break - bank_stmt_line.process_reconciliation( - counterpart_aml_dicts=[ - { - "move_line": line_id, - "account_id": self.account_income.id, - "debit": 0.0, - "credit": 200.0, - "name": "test_reconciliation", - } - ] - ) - self.assertTrue(bank_stmt_line.journal_entry_ids) - original_move_lines = bank_stmt_line.journal_entry_ids - self.assertTrue(original_move_lines.mapped("statement_id")) - # Cancel the statement line - bank_stmt_line.button_cancel_reconciliation() - move_lines = self.env["account.move.line"].search( - [("statement_id", "=", bank_stmt.id)] - ) - # All account moves are removed completely - self.assertFalse(move_lines) - - def test_bank_statement_cancel_reversal_01(self): - """ Tests that I can create an invoice, pay it via a bank statement - line and then reverse the bank statement line. I expect: - - Reversal journal entry is created, and reconciled with original entry - - Payment is deleted - - The invoice is not reconciled with the payment anymore - - The line in the statement is ready to reconcile again - """ - # Test journal - self.bank_journal.write({"update_posted": True, "cancel_method": "reversal"}) - # Open invoice - self.invoice.action_invoice_open() - bank_stmt = self.acc_bank_stmt_model.create( - { - "journal_id": self.bank_journal.id, - "date": time.strftime("%Y") + "-07-15", - "name": "payment" + self.invoice.name, - } - ) - - bank_stmt_line = self.acc_bank_stmt_line_model.create( - { - "name": "payment", - "statement_id": bank_stmt.id, - "partner_id": self.partner.id, - "amount": 200, - "date": time.strftime("%Y") + "-07-15", - } - ) - line_id = self.account_move_line_model - # reconcile the payment with the invoice - for l in self.invoice.move_id.line_ids: - if l.account_id.id == self.account_receivable.id: - line_id = l - break - bank_stmt_line.process_reconciliation( - counterpart_aml_dicts=[ - { - "move_line": line_id, - "account_id": self.account_income.id, - "debit": 0.0, - "credit": 200.0, - "name": "test_reconciliation", - } - ] - ) - self.assertTrue(bank_stmt_line.journal_entry_ids) - original_move_lines = bank_stmt_line.journal_entry_ids - original_payment_id = original_move_lines.mapped("payment_id").id - self.assertTrue(original_move_lines.mapped("statement_id")) - # Cancel the statement line - res = bank_stmt_line.button_cancel_reconciliation() - ctx = { - "active_model": "account.bank.statement.line", - "active_ids": [bank_stmt_line.id], - } - f = Form(self.env[res["res_model"]].with_context(ctx)) - self.assertEqual(res["res_model"], "reverse.account.document") - cancel_wizard = f.save() - cancel_wizard.action_cancel() - self.assertFalse(bank_stmt_line.journal_entry_ids) - payment = self.env["account.payment"].search( - [("id", "=", original_payment_id)], limit=1 - ) - self.assertFalse(payment) - self.assertFalse(original_move_lines.mapped("statement_id")) - move = original_move_lines[0].move_id - reversed_move = move.reverse_entry_id - move_reconcile = move.mapped("line_ids").mapped("full_reconcile_id") - reversed_move_reconcile = reversed_move.mapped("line_ids").mapped( - "full_reconcile_id" - ) - # Check - self.assertTrue(move_reconcile) - self.assertTrue(reversed_move_reconcile) - self.assertEqual(move_reconcile, reversed_move_reconcile) - - def test_bank_statement_cancel_reversal_02(self): - """ Tests that I can create a bank statement line and reconcile it - to an expense account, and then reverse the reconciliation of the - statement line. I expect: - - Reversal journal entry is created, and reconciled with original entry - - Payment is deleted - - The line in the statement is ready to reconcile again - """ - # Test journal - self.bank_journal.write({"update_posted": True, "cancel_method": "reversal"}) - # Create a bank statement - bank_stmt = self.acc_bank_stmt_model.create( - { - "journal_id": self.bank_journal.id, - "date": time.strftime("%Y") + "-07-15", - "name": "payment" + self.invoice.name, - } - ) - bank_stmt_line = self.acc_bank_stmt_line_model.create( - { - "name": "payment", - "statement_id": bank_stmt.id, - "partner_id": self.partner.id, - "amount": 200, - "date": time.strftime("%Y") + "-07-15", - } - ) - line_id = self.account_move_line_model - - bank_stmt_line.process_reconciliation( - new_aml_dicts=[ - { - "move_line": line_id, - "account_id": self.account_expense.id, - "debit": 200.0, - "name": "test_expense_reconciliation", - } - ] - ) - self.assertTrue(bank_stmt_line.journal_entry_ids) - original_move_lines = bank_stmt_line.journal_entry_ids - original_payment_id = original_move_lines.mapped("payment_id").id - self.assertTrue(original_move_lines.mapped("statement_id")) - # Cancel the statement line - res = bank_stmt_line.button_cancel_reconciliation() - ctx = { - "active_model": "account.bank.statement.line", - "active_ids": [bank_stmt_line.id], - } - f = Form(self.env[res["res_model"]].with_context(ctx)) - self.assertEqual(res["res_model"], "reverse.account.document") - cancel_wizard = f.save() - cancel_wizard.action_cancel() - self.assertFalse(bank_stmt_line.journal_entry_ids) - payment = self.env["account.payment"].search( - [("id", "=", original_payment_id)], limit=1 - ) - self.assertFalse(payment) - self.assertFalse(original_move_lines.mapped("statement_id")) - move = original_move_lines[0].move_id - reversed_move = move.reverse_entry_id - move_reconcile = move.mapped("line_ids").mapped("full_reconcile_id") - reversed_move_reconcile = reversed_move.mapped("line_ids").mapped( - "full_reconcile_id" - ) - # Check - self.assertTrue(move_reconcile) - self.assertTrue(reversed_move_reconcile) - self.assertEqual(move_reconcile, reversed_move_reconcile) - - def test_bank_statement_cancel_exception(self): - """ Tests on exception case, if statement is already validated, but - user cancel statement line. I expect: - - UserError will show - """ - # Test journal - self.bank_journal.write({"update_posted": True, "cancel_method": "reversal"}) - # Create a bank statement - bank_stmt = self.acc_bank_stmt_model.create( - { - "journal_id": self.bank_journal.id, - "date": time.strftime("%Y") + "-07-15", - "name": "payment" + self.invoice.name, - } - ) - bank_stmt_line = self.acc_bank_stmt_line_model.create( - { - "name": "payment", - "statement_id": bank_stmt.id, - "partner_id": self.partner.id, - "amount": 200, - "date": time.strftime("%Y") + "-07-15", - } - ) - line_id = self.account_move_line_model - - bank_stmt_line.process_reconciliation( - new_aml_dicts=[ - { - "move_line": line_id, - "account_id": self.account_expense.id, - "debit": 200.0, - "name": "test_expense_reconciliation", - } - ] - ) - - bank_stmt.balance_end_real = 200.00 - bank_stmt.check_confirm_bank() - self.assertEqual(bank_stmt.state, "confirm") - with self.assertRaises(UserError): - bank_stmt_line.button_cancel_reconciliation() diff --git a/account_document_reversal/views/account_move_view.xml b/account_document_reversal/views/account_move_view.xml deleted file mode 100644 index 793f0a6e7..000000000 --- a/account_document_reversal/views/account_move_view.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - account.move.form.inherit - account.move - - - - - - - - - - - - - - - view.account.invoice.filter - account.move - - - - - - - - - diff --git a/account_document_reversal/views/account_payment_view.xml b/account_document_reversal/views/account_payment_view.xml deleted file mode 100644 index 3b58dfb18..000000000 --- a/account_document_reversal/views/account_payment_view.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - view.account.payment.form - account.payment - - - - - - - - - - diff --git a/account_document_reversal/views/account_view.xml b/account_document_reversal/views/account_view.xml deleted file mode 100644 index d85d39f4c..000000000 --- a/account_document_reversal/views/account_view.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - account.journal.form - account.journal - - - - - - - - - - - - - diff --git a/account_document_reversal/wizard/__init__.py b/account_document_reversal/wizard/__init__.py deleted file mode 100644 index ffa532b7d..000000000 --- a/account_document_reversal/wizard/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from . import reverse_account_document diff --git a/account_document_reversal/wizard/reverse_account_document.py b/account_document_reversal/wizard/reverse_account_document.py deleted file mode 100644 index bfed87c6a..000000000 --- a/account_document_reversal/wizard/reverse_account_document.py +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/) -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html) -from odoo import api, fields, models - - -class ReverseAccountDocument(models.TransientModel): - """ - Document reversal wizard, it cancel by reverse document journal entries - """ - - _name = "reverse.account.document" - _description = "Account Document Reversal" - - date = fields.Date( - string="Reversal date", default=fields.Date.context_today, required=True, - ) - use_different_journal = fields.Boolean( - string="Use different journal for reversal", - help="Checked, if the journal of underlineing document is checked.", - ) - journal_id = fields.Many2one( - "account.journal", - string="Reversal Journal", - help="If empty, uses the journal of the journal entry to be reversed.", - ) - - @api.model - def default_get(self, default_fields): - model = self._context.get("active_model") - active_ids = self._context.get("active_ids") - documents = self.env[model].browse(active_ids) - res = super().default_get(default_fields) - if documents: - if "journal_id" in documents[0]: - journal = documents[0].journal_id - if journal.use_different_journal: - res["use_different_journal"] = True - res["journal_id"] = journal.reversal_journal_id.id - return res - - def action_cancel(self): - model = self._context.get("active_model") - active_ids = self._context.get("active_ids") - documents = self.env[model].browse(active_ids) - documents.action_document_reversal(self.date, self.journal_id.id) - return {"type": "ir.actions.act_window_close"} diff --git a/account_document_reversal/wizard/reverse_account_document_wizard.xml b/account_document_reversal/wizard/reverse_account_document_wizard.xml deleted file mode 100644 index 903238831..000000000 --- a/account_document_reversal/wizard/reverse_account_document_wizard.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - reverse.account.document.form - reverse.account.document - -
- - - - - - - - - -
-
-
-
-
- - Document Cancel - reverse.account.document - tree,form - - new - -
-
diff --git a/account_netting/account_move_line_purchase_info/README.rst b/account_move_line_purchase_info/README.rst similarity index 100% rename from account_netting/account_move_line_purchase_info/README.rst rename to account_move_line_purchase_info/README.rst diff --git a/account_netting/account_move_line_purchase_info/__init__.py b/account_move_line_purchase_info/__init__.py similarity index 100% rename from account_netting/account_move_line_purchase_info/__init__.py rename to account_move_line_purchase_info/__init__.py diff --git a/account_netting/account_move_line_purchase_info/__manifest__.py b/account_move_line_purchase_info/__manifest__.py similarity index 100% rename from account_netting/account_move_line_purchase_info/__manifest__.py rename to account_move_line_purchase_info/__manifest__.py diff --git a/account_netting/account_move_line_purchase_info/i18n/account_move_line_purchase_info.pot b/account_move_line_purchase_info/i18n/account_move_line_purchase_info.pot similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/account_move_line_purchase_info.pot rename to account_move_line_purchase_info/i18n/account_move_line_purchase_info.pot diff --git a/account_netting/account_move_line_purchase_info/i18n/ar.po b/account_move_line_purchase_info/i18n/ar.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/ar.po rename to account_move_line_purchase_info/i18n/ar.po diff --git a/account_netting/account_move_line_purchase_info/i18n/bg.po b/account_move_line_purchase_info/i18n/bg.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/bg.po rename to account_move_line_purchase_info/i18n/bg.po diff --git a/account_netting/account_move_line_purchase_info/i18n/bs.po b/account_move_line_purchase_info/i18n/bs.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/bs.po rename to account_move_line_purchase_info/i18n/bs.po diff --git a/account_netting/account_move_line_purchase_info/i18n/ca.po b/account_move_line_purchase_info/i18n/ca.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/ca.po rename to account_move_line_purchase_info/i18n/ca.po diff --git a/account_netting/account_move_line_purchase_info/i18n/cs.po b/account_move_line_purchase_info/i18n/cs.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/cs.po rename to account_move_line_purchase_info/i18n/cs.po diff --git a/account_netting/account_move_line_purchase_info/i18n/de.po b/account_move_line_purchase_info/i18n/de.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/de.po rename to account_move_line_purchase_info/i18n/de.po diff --git a/account_netting/account_move_line_purchase_info/i18n/el_GR.po b/account_move_line_purchase_info/i18n/el_GR.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/el_GR.po rename to account_move_line_purchase_info/i18n/el_GR.po diff --git a/account_netting/account_move_line_purchase_info/i18n/en_GB.po b/account_move_line_purchase_info/i18n/en_GB.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/en_GB.po rename to account_move_line_purchase_info/i18n/en_GB.po diff --git a/account_netting/account_move_line_purchase_info/i18n/es.po b/account_move_line_purchase_info/i18n/es.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/es.po rename to account_move_line_purchase_info/i18n/es.po diff --git a/account_netting/account_move_line_purchase_info/i18n/es_CR.po b/account_move_line_purchase_info/i18n/es_CR.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/es_CR.po rename to account_move_line_purchase_info/i18n/es_CR.po diff --git a/account_netting/account_move_line_purchase_info/i18n/es_EC.po b/account_move_line_purchase_info/i18n/es_EC.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/es_EC.po rename to account_move_line_purchase_info/i18n/es_EC.po diff --git a/account_netting/account_move_line_purchase_info/i18n/es_MX.po b/account_move_line_purchase_info/i18n/es_MX.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/es_MX.po rename to account_move_line_purchase_info/i18n/es_MX.po diff --git a/account_netting/account_move_line_purchase_info/i18n/et.po b/account_move_line_purchase_info/i18n/et.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/et.po rename to account_move_line_purchase_info/i18n/et.po diff --git a/account_netting/account_move_line_purchase_info/i18n/fi.po b/account_move_line_purchase_info/i18n/fi.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/fi.po rename to account_move_line_purchase_info/i18n/fi.po diff --git a/account_netting/account_move_line_purchase_info/i18n/fr.po b/account_move_line_purchase_info/i18n/fr.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/fr.po rename to account_move_line_purchase_info/i18n/fr.po diff --git a/account_netting/account_move_line_purchase_info/i18n/fr_CA.po b/account_move_line_purchase_info/i18n/fr_CA.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/fr_CA.po rename to account_move_line_purchase_info/i18n/fr_CA.po diff --git a/account_netting/account_move_line_purchase_info/i18n/fr_CH.po b/account_move_line_purchase_info/i18n/fr_CH.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/fr_CH.po rename to account_move_line_purchase_info/i18n/fr_CH.po diff --git a/account_netting/account_move_line_purchase_info/i18n/gl.po b/account_move_line_purchase_info/i18n/gl.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/gl.po rename to account_move_line_purchase_info/i18n/gl.po diff --git a/account_netting/account_move_line_purchase_info/i18n/hr.po b/account_move_line_purchase_info/i18n/hr.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/hr.po rename to account_move_line_purchase_info/i18n/hr.po diff --git a/account_netting/account_move_line_purchase_info/i18n/hr_HR.po b/account_move_line_purchase_info/i18n/hr_HR.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/hr_HR.po rename to account_move_line_purchase_info/i18n/hr_HR.po diff --git a/account_netting/account_move_line_purchase_info/i18n/hu.po b/account_move_line_purchase_info/i18n/hu.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/hu.po rename to account_move_line_purchase_info/i18n/hu.po diff --git a/account_netting/account_move_line_purchase_info/i18n/id.po b/account_move_line_purchase_info/i18n/id.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/id.po rename to account_move_line_purchase_info/i18n/id.po diff --git a/account_netting/account_move_line_purchase_info/i18n/it.po b/account_move_line_purchase_info/i18n/it.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/it.po rename to account_move_line_purchase_info/i18n/it.po diff --git a/account_netting/account_move_line_purchase_info/i18n/ja.po b/account_move_line_purchase_info/i18n/ja.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/ja.po rename to account_move_line_purchase_info/i18n/ja.po diff --git a/account_netting/account_move_line_purchase_info/i18n/lt.po b/account_move_line_purchase_info/i18n/lt.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/lt.po rename to account_move_line_purchase_info/i18n/lt.po diff --git a/account_netting/account_move_line_purchase_info/i18n/mk.po b/account_move_line_purchase_info/i18n/mk.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/mk.po rename to account_move_line_purchase_info/i18n/mk.po diff --git a/account_netting/account_move_line_purchase_info/i18n/mn.po b/account_move_line_purchase_info/i18n/mn.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/mn.po rename to account_move_line_purchase_info/i18n/mn.po diff --git a/account_netting/account_move_line_purchase_info/i18n/nb.po b/account_move_line_purchase_info/i18n/nb.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/nb.po rename to account_move_line_purchase_info/i18n/nb.po diff --git a/account_netting/account_move_line_purchase_info/i18n/nb_NO.po b/account_move_line_purchase_info/i18n/nb_NO.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/nb_NO.po rename to account_move_line_purchase_info/i18n/nb_NO.po diff --git a/account_netting/account_move_line_purchase_info/i18n/nl.po b/account_move_line_purchase_info/i18n/nl.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/nl.po rename to account_move_line_purchase_info/i18n/nl.po diff --git a/account_netting/account_move_line_purchase_info/i18n/nl_BE.po b/account_move_line_purchase_info/i18n/nl_BE.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/nl_BE.po rename to account_move_line_purchase_info/i18n/nl_BE.po diff --git a/account_netting/account_move_line_purchase_info/i18n/pl.po b/account_move_line_purchase_info/i18n/pl.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/pl.po rename to account_move_line_purchase_info/i18n/pl.po diff --git a/account_netting/account_move_line_purchase_info/i18n/pt.po b/account_move_line_purchase_info/i18n/pt.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/pt.po rename to account_move_line_purchase_info/i18n/pt.po diff --git a/account_netting/account_move_line_purchase_info/i18n/pt_BR.po b/account_move_line_purchase_info/i18n/pt_BR.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/pt_BR.po rename to account_move_line_purchase_info/i18n/pt_BR.po diff --git a/account_netting/account_move_line_purchase_info/i18n/pt_PT.po b/account_move_line_purchase_info/i18n/pt_PT.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/pt_PT.po rename to account_move_line_purchase_info/i18n/pt_PT.po diff --git a/account_netting/account_move_line_purchase_info/i18n/ro.po b/account_move_line_purchase_info/i18n/ro.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/ro.po rename to account_move_line_purchase_info/i18n/ro.po diff --git a/account_netting/account_move_line_purchase_info/i18n/ru.po b/account_move_line_purchase_info/i18n/ru.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/ru.po rename to account_move_line_purchase_info/i18n/ru.po diff --git a/account_netting/account_move_line_purchase_info/i18n/sk_SK.po b/account_move_line_purchase_info/i18n/sk_SK.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/sk_SK.po rename to account_move_line_purchase_info/i18n/sk_SK.po diff --git a/account_netting/account_move_line_purchase_info/i18n/sl.po b/account_move_line_purchase_info/i18n/sl.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/sl.po rename to account_move_line_purchase_info/i18n/sl.po diff --git a/account_netting/account_move_line_purchase_info/i18n/sv.po b/account_move_line_purchase_info/i18n/sv.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/sv.po rename to account_move_line_purchase_info/i18n/sv.po diff --git a/account_netting/account_move_line_purchase_info/i18n/th.po b/account_move_line_purchase_info/i18n/th.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/th.po rename to account_move_line_purchase_info/i18n/th.po diff --git a/account_netting/account_move_line_purchase_info/i18n/tr.po b/account_move_line_purchase_info/i18n/tr.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/tr.po rename to account_move_line_purchase_info/i18n/tr.po diff --git a/account_netting/account_move_line_purchase_info/i18n/tr_TR.po b/account_move_line_purchase_info/i18n/tr_TR.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/tr_TR.po rename to account_move_line_purchase_info/i18n/tr_TR.po diff --git a/account_netting/account_move_line_purchase_info/i18n/zh_CN.po b/account_move_line_purchase_info/i18n/zh_CN.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/zh_CN.po rename to account_move_line_purchase_info/i18n/zh_CN.po diff --git a/account_netting/account_move_line_purchase_info/i18n/zh_TW.po b/account_move_line_purchase_info/i18n/zh_TW.po similarity index 100% rename from account_netting/account_move_line_purchase_info/i18n/zh_TW.po rename to account_move_line_purchase_info/i18n/zh_TW.po diff --git a/account_netting/account_move_line_purchase_info/migrations/13.0.1.1.0/post-migration.py b/account_move_line_purchase_info/migrations/13.0.1.1.0/post-migration.py similarity index 100% rename from account_netting/account_move_line_purchase_info/migrations/13.0.1.1.0/post-migration.py rename to account_move_line_purchase_info/migrations/13.0.1.1.0/post-migration.py diff --git a/account_netting/account_move_line_purchase_info/models/__init__.py b/account_move_line_purchase_info/models/__init__.py similarity index 100% rename from account_netting/account_move_line_purchase_info/models/__init__.py rename to account_move_line_purchase_info/models/__init__.py diff --git a/account_netting/account_move_line_purchase_info/models/account_move.py b/account_move_line_purchase_info/models/account_move.py similarity index 100% rename from account_netting/account_move_line_purchase_info/models/account_move.py rename to account_move_line_purchase_info/models/account_move.py diff --git a/account_netting/account_move_line_purchase_info/models/purchase_order_line.py b/account_move_line_purchase_info/models/purchase_order_line.py similarity index 100% rename from account_netting/account_move_line_purchase_info/models/purchase_order_line.py rename to account_move_line_purchase_info/models/purchase_order_line.py diff --git a/account_netting/account_move_line_purchase_info/models/stock_move.py b/account_move_line_purchase_info/models/stock_move.py similarity index 100% rename from account_netting/account_move_line_purchase_info/models/stock_move.py rename to account_move_line_purchase_info/models/stock_move.py diff --git a/account_netting/account_move_line_purchase_info/readme/CONTRIBUTORS.rst b/account_move_line_purchase_info/readme/CONTRIBUTORS.rst similarity index 100% rename from account_netting/account_move_line_purchase_info/readme/CONTRIBUTORS.rst rename to account_move_line_purchase_info/readme/CONTRIBUTORS.rst diff --git a/account_netting/account_move_line_purchase_info/readme/DESCRIPTION.rst b/account_move_line_purchase_info/readme/DESCRIPTION.rst similarity index 100% rename from account_netting/account_move_line_purchase_info/readme/DESCRIPTION.rst rename to account_move_line_purchase_info/readme/DESCRIPTION.rst diff --git a/account_netting/account_move_line_purchase_info/readme/USAGE.rst b/account_move_line_purchase_info/readme/USAGE.rst similarity index 100% rename from account_netting/account_move_line_purchase_info/readme/USAGE.rst rename to account_move_line_purchase_info/readme/USAGE.rst diff --git a/account_netting/account_move_line_purchase_info/security/account_security.xml b/account_move_line_purchase_info/security/account_security.xml similarity index 100% rename from account_netting/account_move_line_purchase_info/security/account_security.xml rename to account_move_line_purchase_info/security/account_security.xml diff --git a/account_document_reversal/static/description/icon.png b/account_move_line_purchase_info/static/description/icon.png similarity index 100% rename from account_document_reversal/static/description/icon.png rename to account_move_line_purchase_info/static/description/icon.png diff --git a/account_netting/account_move_line_purchase_info/static/description/index.html b/account_move_line_purchase_info/static/description/index.html similarity index 100% rename from account_netting/account_move_line_purchase_info/static/description/index.html rename to account_move_line_purchase_info/static/description/index.html diff --git a/account_netting/account_move_line_purchase_info/tests/__init__.py b/account_move_line_purchase_info/tests/__init__.py similarity index 100% rename from account_netting/account_move_line_purchase_info/tests/__init__.py rename to account_move_line_purchase_info/tests/__init__.py diff --git a/account_netting/account_move_line_purchase_info/tests/test_account_move_line_purchase_info.py b/account_move_line_purchase_info/tests/test_account_move_line_purchase_info.py similarity index 100% rename from account_netting/account_move_line_purchase_info/tests/test_account_move_line_purchase_info.py rename to account_move_line_purchase_info/tests/test_account_move_line_purchase_info.py diff --git a/account_netting/account_move_line_purchase_info/views/account_move_view.xml b/account_move_line_purchase_info/views/account_move_view.xml similarity index 100% rename from account_netting/account_move_line_purchase_info/views/account_move_view.xml rename to account_move_line_purchase_info/views/account_move_view.xml diff --git a/account_netting/account_move_line_purchase_info/static/description/icon.png b/account_netting/account_move_line_purchase_info/static/description/icon.png deleted file mode 100644 index 3a0328b516c4980e8e44cdb63fd945757ddd132d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*A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ov 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 diff --git a/setup/account_document_reversal/odoo/addons/account_document_reversal b/setup/account_document_reversal/odoo/addons/account_document_reversal deleted file mode 120000 index 319ce9b9e..000000000 --- a/setup/account_document_reversal/odoo/addons/account_document_reversal +++ /dev/null @@ -1 +0,0 @@ -../../../../account_document_reversal \ No newline at end of file diff --git a/setup/account_move_line_purchase_info/odoo/addons/account_move_line_purchase_info b/setup/account_move_line_purchase_info/odoo/addons/account_move_line_purchase_info new file mode 120000 index 000000000..7192e04d9 --- /dev/null +++ b/setup/account_move_line_purchase_info/odoo/addons/account_move_line_purchase_info @@ -0,0 +1 @@ +../../../../account_move_line_purchase_info \ No newline at end of file diff --git a/setup/account_document_reversal/setup.py b/setup/account_move_line_purchase_info/setup.py similarity index 100% rename from setup/account_document_reversal/setup.py rename to setup/account_move_line_purchase_info/setup.py