diff --git a/deltatech_business_process_documentation/README.rst b/deltatech_business_process_documentation/README.rst index b71c3eff08..e013327d06 100644 --- a/deltatech_business_process_documentation/README.rst +++ b/deltatech_business_process_documentation/README.rst @@ -23,7 +23,8 @@ Business process documentation |badge1| |badge2| |badge3| Features: ---------- + +- **Table of contents** diff --git a/deltatech_business_process_documentation/static/description/index.html b/deltatech_business_process_documentation/static/description/index.html index a9330ca412..8c3aae5a62 100644 --- a/deltatech_business_process_documentation/static/description/index.html +++ b/deltatech_business_process_documentation/static/description/index.html @@ -370,27 +370,32 @@

Business process documentation

!! source digest: sha256:e746bfee1fbe1c212af1a2c575931bae51e31786f9af2f5869323a09a75d8d05 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: OPL-1 dhongu/deltatech

-
-

Features:

+

Features:

+

Table of contents

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on Terrabit Issues. In case of trouble, please check there if your issue has already been reported.

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

-

Credits

-
-
+

Credits

-

Authors

+

Authors

-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

Current maintainer:

dhongu

This module is part of the dhongu/deltatech project on GitHub.

You are welcome to contribute.

+ diff --git a/deltatech_payment_report/README.rst b/deltatech_payment_report/README.rst new file mode 100644 index 0000000000..bdb4cecf8a --- /dev/null +++ b/deltatech_payment_report/README.rst @@ -0,0 +1,69 @@ +======================== +Deltatech Payment Report +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:fe3e36e1ad0345f814a657b1135d7f0d9f9bcc7dddb6cb5840e8e61073906521 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-OPL--1-blue.png + :target: https://www.odoo.com/documentation/master/legal/licenses.html + :alt: License: OPL-1 +.. |badge3| image:: https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github + :target: https://github.com/dhongu/deltatech/tree/17.0/deltatech_payment_report + :alt: dhongu/deltatech + +|badge1| |badge2| |badge3| + +Features: + +- adds in the menu Accounting / Accounting / Payment +- when selection this menu you will see a form to select the period for + the report and the type of payments that should be included in the + report +- the report will generate a pivot view of all the payments in the + window of time selected + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `Terrabit Issues `_. +In case of trouble, please check there if your issue has already been reported. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Terrabit +* Dorin Hongu + +Maintainers +----------- + +.. |maintainer-dhongu| image:: https://github.com/dhongu.png?size=40px + :target: https://github.com/dhongu + :alt: dhongu + +Current maintainer: + +|maintainer-dhongu| + +This module is part of the `dhongu/deltatech `_ project on GitHub. + +You are welcome to contribute. diff --git a/deltatech_payment_report/__init__.py b/deltatech_payment_report/__init__.py new file mode 100644 index 0000000000..acbbbb05fd --- /dev/null +++ b/deltatech_payment_report/__init__.py @@ -0,0 +1,9 @@ +# © 2008-2021 Deltatech +# Dorin Hongu " +msgstr "" +"" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_order_form +msgid "Sale from store with fiscal receipt only" +msgstr "Vânzare din magazin doar cu bon fiscal" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_order_form +msgid "Sale from store" +msgstr "Vânzare din magazin cu factură și bon fiscal" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_order_form +msgid "Sale from warehouse" +msgstr "Vânzare din depozit" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__amount +msgid "Amount" +msgstr "Valoare" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_move_form +msgid "Are you sure you want to print the fiscal receipt?" +msgstr "Ești sigur că dorești să tipărești bonul fiscal?" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_sale_store_form +msgid "Cancel" +msgstr "Renunță" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_bank_statement_import_journal_creation__cod_ecr +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_journal__cod_ecr +msgid "Cod ECR" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_res_company +msgid "Companies" +msgstr "Companii" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__company_id +msgid "Company" +msgstr "Companie" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_res_config_settings +msgid "Config Settings" +msgstr "Setări de configurare" + +#. module: deltatech_sale_store +#: model:ir.actions.act_window,name:deltatech_sale_store.action_sale_store +msgid "Confirm sale" +msgstr "Confirmă vanzarea" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__create_uid +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__create_uid +msgid "Created by" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__create_date +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__create_date +msgid "Created on" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__currency_id +msgid "Currency" +msgstr "Moneda" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__display_name +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__display_name +msgid "Display Name" +msgstr "Nume afișat" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_export_datecs_form +msgid "Export" +msgstr "" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_export_datecs_form +msgid "Export BF" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_account_invoice_export_bf +msgid "Export File to ECR" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__data_file +msgid "File" +msgstr "Fișier" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_export_datecs_form +msgid "File BF:" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__name +msgid "File Name" +msgstr "Nume fișier" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/models/account_invoice.py:0 +#, python-format +msgid "File receipt %s has been generated" +msgstr "Fișierul %s de bon fiscal a fost generat" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_res_company__journal_invoice_with_receipt_id +msgid "Fiscal Invoice Receipt" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_res_company__journal_fiscal_receipt_id +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.journal_bf_form +msgid "Fiscal Receipt" +msgstr "Bon fiscal" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_bank_statement_import_journal_creation__fiscal_receipt +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_journal__fiscal_receipt +msgid "Fiscal Receipts Journal" +msgstr "Jurnal bon fiscal" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__id +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__id +msgid "ID" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__invoice_id +msgid "Invoice" +msgstr "Factura" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/wizard/account_invoice_export_bf.py:0 +#, python-format +msgid "Invoice %s is not paid" +msgstr "Factura %s nu este plătită" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_account_journal +msgid "Journal" +msgstr "Jurnal" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_account_move +msgid "Journal Entries" +msgstr "Note contabile" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_res_config_settings__journal_invoice_with_receipt_id +msgid "Journal Fiscal Invoice Receipt" +msgstr "Jurnal Facturi cu bon fiscal" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_res_config_settings__journal_fiscal_receipt_id +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.res_config_settings_view_form_sale +msgid "Journal Fiscal Receipt" +msgstr "Jurnal bon fiscal" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.res_config_settings_view_form_sale +msgid "Journal Invoice with Fiscal Receipt" +msgstr "Jurnal facturi cu bon fiscal" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf____last_update +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store____last_update +msgid "Last Modified on" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__write_uid +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__write_date +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__write_date +msgid "Last Updated on" +msgstr "" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/wizard/sale_store.py:0 +#, python-format +msgid "Not all products are available." +msgstr "Nu sunt toate produsele disponibile" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/wizard/account_invoice_export_bf.py:0 +#, python-format +msgid "Nu se poate emite bon cu valoare negativa!!!" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_move__only_fiscal_receipt +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__only_fiscal_receipt +msgid "Only Fiscal Receipt" +msgstr "Numai bon fiscal" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__order_id +msgid "Order" +msgstr "Comanda" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__payment_date +msgid "Payment Date" +msgstr "Dată încasare" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_store__payment_journal_id +msgid "Payment Journal" +msgstr "Jurnal încasare" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/models/sale.py:0 +#, python-format +msgid "Please define Journal Invoice Fiscal Receipt" +msgstr "" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/models/sale.py:0 +#, python-format +msgid "Please define Journal for Fiscal Receipt" +msgstr "" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/wizard/account_invoice_export_bf.py:0 +#, python-format +msgid "Please select Customer Invoice %s" +msgstr "Slectați vă rog o facrură de vânzare %s" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/wizard/sale_store.py:0 +#, python-format +msgid "Please select a sale order" +msgstr "Vă rog să selectați o comandă de vânzare" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_sale_store_form +msgid "Print" +msgstr "Tipărire" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_move_form +msgid "Print Fiscal Receipt" +msgstr "Tipărire bon fiscal" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_move__receipt_print +msgid "Receipt Print" +msgstr "Tipărire bon" + +#. module: deltatech_sale_store +#: code:addons/deltatech_sale_store/wizard/account_invoice_export_bf.py:0 +#, python-format +msgid "Ref:" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.actions.act_window,name:deltatech_sale_store.action_sale_fiscal_receipt +msgid "Sale Fiscal Receipt" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.actions.act_window,name:deltatech_sale_store.action_sale_generic_fiscal_receipt +msgid "Sale Generic Fiscal Receipt" +msgstr "Vânzare generică" + +#. module: deltatech_sale_store +#: model:ir.ui.menu,name:deltatech_sale_store.menu_sale_generic_fiscal_receipt +msgid "Sale Generic Receipt" +msgstr "Vânzare generic bon" + +#. module: deltatech_sale_store +#: model:ir.ui.menu,name:deltatech_sale_store.menu_sale_fiscal_receipt +msgid "Sale Receipt" +msgstr "Vânzare cu bon" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_sale_store +msgid "Sale Store" +msgstr "Vânzare magazin" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.res_config_settings_view_form_sale +msgid "Sale from Store" +msgstr "Vânzare din magazin" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_move__sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_order__sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_stock_picking__sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_order_form +msgid "Sale from store" +msgstr "Vânzare din magazin" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_sale_order__only_fiscal_receipt +msgid "Sale without invoice" +msgstr "Vânzare fără factură" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_sale_advance_payment_inv +msgid "Sales Advance Payment Invoice" +msgstr "Factura Vânzare cu Plată în Avans" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_sale_order +msgid "Sales Order" +msgstr "Comandă de vânzare" + +#. module: deltatech_sale_store +#: model:ir.model.fields,field_description:deltatech_sale_store.field_account_invoice_export_bf__text_data +msgid "Text" +msgstr "" + +#. module: deltatech_sale_store +#: model:ir.model,name:deltatech_sale_store.model_stock_picking +msgid "Transfer" +msgstr "" + +#. module: deltatech_sale_store +#: model_terms:ir.ui.view,arch_db:deltatech_sale_store.view_export_datecs_form +msgid "_Close" +msgstr "" diff --git a/deltatech_payment_report/models/__init__.py b/deltatech_payment_report/models/__init__.py new file mode 100644 index 0000000000..422d6d4615 --- /dev/null +++ b/deltatech_payment_report/models/__init__.py @@ -0,0 +1,5 @@ +# © 2008-2021 Deltatech +# Dorin Hongu + + + + +Deltatech Payment Report + + + +
+

Deltatech Payment Report

+ + +

Beta License: OPL-1 dhongu/deltatech

+

Features:

+
    +
  • adds in the menu Accounting / Accounting / Payment
  • +
  • when selection this menu you will see a form to select the period for +the report and the type of payments that should be included in the +report
  • +
  • the report will generate a pivot view of all the payments in the +window of time selected
  • +
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on Terrabit Issues. +In case of trouble, please check there if your issue has already been reported.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Terrabit
  • +
  • Dorin Hongu
  • +
+
+
+

Maintainers

+

Current maintainer:

+

dhongu

+

This module is part of the dhongu/deltatech project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/deltatech_payment_report/static/description/logo-terrabit.png b/deltatech_payment_report/static/description/logo-terrabit.png new file mode 100644 index 0000000000..8b23ccdd37 Binary files /dev/null and b/deltatech_payment_report/static/description/logo-terrabit.png differ diff --git a/deltatech_payment_report/static/description/main_screenshot.png b/deltatech_payment_report/static/description/main_screenshot.png new file mode 100644 index 0000000000..4513ca1d39 Binary files /dev/null and b/deltatech_payment_report/static/description/main_screenshot.png differ diff --git a/deltatech_payment_report/wizard/__init__.py b/deltatech_payment_report/wizard/__init__.py new file mode 100644 index 0000000000..f0c5501d40 --- /dev/null +++ b/deltatech_payment_report/wizard/__init__.py @@ -0,0 +1,5 @@ +# © 2008-2021 Deltatech +# Dorin Hongu =", self.date_from), + ("date", "<=", self.date_to), + ("payment_type", "=", "inbound"), + ("partner_type", "=", "customer"), + ("state", "in", ["posted", "reconciled"]), + ("journal_id", "in", self.journal_payment_ids.ids), + ] + ) + + lines = [] + for payment in all_payments: + values = { + "report_id": self.id, + "payment_date": payment.date, + "partner_id": payment.partner_id.id, + "amount": payment.amount, + "currency_id": payment.currency_id.id, + "payment_journal_id": payment.journal_id.id, + "payment_method_id": payment.payment_method_id.id, + } + for invoice in payment.reconciled_invoice_ids: + values["invoice_journal_id"] = invoice.journal_id.id + lines += [values] + + self.env["account.payment.report.line"].create(lines) + + def button_show_report(self): + self.do_compute() + action = self.env.ref("deltatech_payment_report.action_account_payment_report_line").read()[0] + action["display_name"] = "{} ({}-{})".format( + action["name"], + self.date_from, + self.date_to, + ) + action["domain"] = [("report_id", "=", self.id)] + action["context"] = { + "active_id": self.id, + # "general_buttons": self.env["account.payment.report.line"].get_general_buttons(), + } + action["target"] = "main" + return action + + def print_pdf(self): + action_report = self.env.ref("deltatech_payment_report.action_account_payment_report_line") + return action_report.report_action(self, config=False) + + +class PaymentReportLine(models.TransientModel): + _name = "account.payment.report.line" + _description = "PaymentReportLine" + + report_id = fields.Many2one("account.payment.report") + payment_date = fields.Date(string="Date") + partner_id = fields.Many2one("res.partner", string="Customer") + amount = fields.Monetary(string="Amount") + currency_id = fields.Many2one("res.currency") + payment_journal_id = fields.Many2one("account.journal") + payment_journal_type = fields.Selection(related="payment_journal_id.type", store=True) + invoice_journal_id = fields.Many2one("account.journal") + payment_method_id = fields.Many2one("account.payment.method", string="Payment Method") + + def get_general_buttons(self): + return [ + { + "action": "print_pdf", + "name": _("Print Preview"), + "model": "account.payment.report", + } + ] diff --git a/deltatech_payment_report/wizard/payment_report_view.xml b/deltatech_payment_report/wizard/payment_report_view.xml new file mode 100644 index 0000000000..54f53cace2 --- /dev/null +++ b/deltatech_payment_report/wizard/payment_report_view.xml @@ -0,0 +1,113 @@ + + + + account.payment.report.form + account.payment.report + +
+ + + + + + + + +
+
+
+
+
+ + stock.sheet.stock.report.line + account.payment.report.line + + + + + + + + + + + + + account.payment.report.line + account.payment.report.line + +
+ + + + + + + + + + + + + + +
+
+
+ + + account.payment.report.line.pivot + account.payment.report.line + + + + + + + + + + + account.payment.report.line + account.payment.report.line + + + + + + + + + + Account Payment Report + account.payment.report + form + + new + + + + + Payment Report + account.payment.report.line + pivot,tree,form + [('report_id','=',active_id)] + {'general_buttons':'get_general_buttons'} + + +