From cda54e5681ad5336e847f17a4b46c8001f52a360 Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 1 Jul 2022 11:28:30 +0200 Subject: [PATCH 01/59] [ADD] 15.0 module base_factoring --- base_factoring/__init__.py | 1 + base_factoring/__manifest__.py | 24 +++++++++++++ base_factoring/i18n/base_factoring.pot | 42 ++++++++++++++++++++++ base_factoring/i18n/fr.po | 46 ++++++++++++++++++++++++ base_factoring/models/__init__.py | 1 + base_factoring/models/account_journal.py | 13 +++++++ base_factoring/views/account.xml | 22 ++++++++++++ base_factoring/views/company.xml | 17 +++++++++ base_factoring/views/config.xml | 14 ++++++++ base_factoring/views/partner.xml | 13 +++++++ 10 files changed, 193 insertions(+) create mode 100644 base_factoring/__init__.py create mode 100644 base_factoring/__manifest__.py create mode 100644 base_factoring/i18n/base_factoring.pot create mode 100644 base_factoring/i18n/fr.po create mode 100644 base_factoring/models/__init__.py create mode 100644 base_factoring/models/account_journal.py create mode 100644 base_factoring/views/account.xml create mode 100644 base_factoring/views/company.xml create mode 100644 base_factoring/views/config.xml create mode 100644 base_factoring/views/partner.xml diff --git a/base_factoring/__init__.py b/base_factoring/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/base_factoring/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/base_factoring/__manifest__.py b/base_factoring/__manifest__.py new file mode 100644 index 000000000..fff666db1 --- /dev/null +++ b/base_factoring/__manifest__.py @@ -0,0 +1,24 @@ +# © 2022 David BEAL @ Akretion +# © 2022 Alexis DE LATTRE @ Akretion + +{ + "name": "Base Factoring", + "version": "15.0.1.0.0", + "category": "Accounting", + "license": "AGPL-3", + "maintainers": [ + "bealdav", + "alexis-via", + ], + "depends": [ + "account", + ], + "data": [ + "views/account.xml", + "views/partner.xml", + "views/company.xml", + "views/config.xml", + ], + "demo": [ + ], +} diff --git a/base_factoring/i18n/base_factoring.pot b/base_factoring/i18n/base_factoring.pot new file mode 100644 index 000000000..a2920b9ad --- /dev/null +++ b/base_factoring/i18n/base_factoring.pot @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_factoring +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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: base_factoring +#: model_terms:ir.ui.view,arch_db:base_factoring.view_company_form +msgid "Configuration" +msgstr "" + +#. module: base_factoring +#: model:ir.model.fields,field_description:base_factoring.field_account_journal__factor_type +#: model_terms:ir.ui.view,arch_db:base_factoring.view_account_journal_form +#: model_terms:ir.ui.view,arch_db:base_factoring.view_company_form +msgid "Factor" +msgstr "" + +#. module: base_factoring +#: model:ir.ui.menu,name:base_factoring.factoring_menu +#: model_terms:ir.ui.view,arch_db:base_factoring.view_partner_property_form +msgid "Factoring" +msgstr "" + +#. module: base_factoring +#: model:ir.model,name:base_factoring.model_account_journal +msgid "Journal" +msgstr "" + +#. module: base_factoring +#: model_terms:ir.ui.view,arch_db:base_factoring.view_company_form +msgid "Run" +msgstr "" diff --git a/base_factoring/i18n/fr.po b/base_factoring/i18n/fr.po new file mode 100644 index 000000000..13931e556 --- /dev/null +++ b/base_factoring/i18n/fr.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_factoring +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: fr_FR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 3.0.1\n" + +#. module: base_factoring +#: model_terms:ir.ui.view,arch_db:base_factoring.view_company_form +msgid "Configuration" +msgstr "Configuration" + +#. module: base_factoring +#: model:ir.model.fields,field_description:base_factoring.field_account_journal__factor_type +#: model_terms:ir.ui.view,arch_db:base_factoring.view_account_journal_form +#: model_terms:ir.ui.view,arch_db:base_factoring.view_company_form +msgid "Factor" +msgstr "Factor" + +#. module: base_factoring +#: model:ir.ui.menu,name:base_factoring.factoring_menu +#: model_terms:ir.ui.view,arch_db:base_factoring.view_partner_property_form +msgid "Factoring" +msgstr "Factoring" + +#. module: base_factoring +#: model:ir.model,name:base_factoring.model_account_journal +msgid "Journal" +msgstr "" + +#. module: base_factoring +#: model_terms:ir.ui.view,arch_db:base_factoring.view_company_form +msgid "Run" +msgstr "Lancer" diff --git a/base_factoring/models/__init__.py b/base_factoring/models/__init__.py new file mode 100644 index 000000000..2388e1196 --- /dev/null +++ b/base_factoring/models/__init__.py @@ -0,0 +1 @@ +from . import account_journal diff --git a/base_factoring/models/account_journal.py b/base_factoring/models/account_journal.py new file mode 100644 index 000000000..94b923f70 --- /dev/null +++ b/base_factoring/models/account_journal.py @@ -0,0 +1,13 @@ +# © 2022 David BEAL @ Akretion +# © 2022 Alexis DE LATTRE @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models +from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DF +from odoo.tools.misc import formatLang, format_date as odoo_format_date, get_lang + + +class AccountJournal(models.Model): + _inherit = "account.journal" + + factor_type = fields.Selection(selection=[]) diff --git a/base_factoring/views/account.xml b/base_factoring/views/account.xml new file mode 100644 index 000000000..4adc52028 --- /dev/null +++ b/base_factoring/views/account.xml @@ -0,0 +1,22 @@ + + + + + + account.journal + + + + + + + + + + + + diff --git a/base_factoring/views/company.xml b/base_factoring/views/company.xml new file mode 100644 index 000000000..820736c81 --- /dev/null +++ b/base_factoring/views/company.xml @@ -0,0 +1,17 @@ + + + + res.company + + + + + + + + + + + + + diff --git a/base_factoring/views/config.xml b/base_factoring/views/config.xml new file mode 100644 index 000000000..b4e4cc676 --- /dev/null +++ b/base_factoring/views/config.xml @@ -0,0 +1,14 @@ + + + + res.config.settings + + + +

Factor

+
+ + + + + diff --git a/base_factoring/views/partner.xml b/base_factoring/views/partner.xml new file mode 100644 index 000000000..eb72a8c97 --- /dev/null +++ b/base_factoring/views/partner.xml @@ -0,0 +1,13 @@ + + + + res.partner + + + + + + + + + From 6c2ac5900bf66a41c71438f3666d71caa26a558c Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 1 Jul 2022 11:28:52 +0200 Subject: [PATCH 02/59] [ADD] 15.0 module account_factoring_receivable_balance --- .../README.rst | 131 +++++ .../__init__.py | 1 + .../__manifest__.py | 26 + .../account_factoring_receivable_balance.pot | 455 +++++++++++++++++ .../i18n/fr.po | 461 +++++++++++++++++ .../models/__init__.py | 4 + .../models/account_journal.py | 34 ++ .../models/account_move.py | 17 + .../models/company.py | 58 +++ .../models/subrogation_receipt.py | 285 +++++++++++ .../readme/CONFIGURE.rst | 38 ++ .../readme/CONTRIBUTORS.rst | 3 + .../readme/DESCRIPTION.rst | 1 + .../readme/USAGE.rst | 1 + .../security/ir.model.access.csv | 3 + .../security/misc.xml | 7 + .../static/description/index.html | 467 ++++++++++++++++++ .../tests/__init__.py | 1 + .../tests/test_module.py | 3 + .../views/account_journal.xml | 43 ++ .../views/company.xml | 13 + .../views/company_demo.xml | 15 + .../views/subrogation_receipt.xml | 115 +++++ 23 files changed, 2182 insertions(+) create mode 100644 account_factoring_receivable_balance/README.rst create mode 100644 account_factoring_receivable_balance/__init__.py create mode 100644 account_factoring_receivable_balance/__manifest__.py create mode 100644 account_factoring_receivable_balance/i18n/account_factoring_receivable_balance.pot create mode 100644 account_factoring_receivable_balance/i18n/fr.po create mode 100644 account_factoring_receivable_balance/models/__init__.py create mode 100644 account_factoring_receivable_balance/models/account_journal.py create mode 100644 account_factoring_receivable_balance/models/account_move.py create mode 100644 account_factoring_receivable_balance/models/company.py create mode 100644 account_factoring_receivable_balance/models/subrogation_receipt.py create mode 100644 account_factoring_receivable_balance/readme/CONFIGURE.rst create mode 100644 account_factoring_receivable_balance/readme/CONTRIBUTORS.rst create mode 100644 account_factoring_receivable_balance/readme/DESCRIPTION.rst create mode 100644 account_factoring_receivable_balance/readme/USAGE.rst create mode 100644 account_factoring_receivable_balance/security/ir.model.access.csv create mode 100644 account_factoring_receivable_balance/security/misc.xml create mode 100644 account_factoring_receivable_balance/static/description/index.html create mode 100644 account_factoring_receivable_balance/tests/__init__.py create mode 100644 account_factoring_receivable_balance/tests/test_module.py create mode 100644 account_factoring_receivable_balance/views/account_journal.xml create mode 100644 account_factoring_receivable_balance/views/company.xml create mode 100644 account_factoring_receivable_balance/views/company_demo.xml create mode 100644 account_factoring_receivable_balance/views/subrogation_receipt.xml diff --git a/account_factoring_receivable_balance/README.rst b/account_factoring_receivable_balance/README.rst new file mode 100644 index 000000000..c10cea5af --- /dev/null +++ b/account_factoring_receivable_balance/README.rst @@ -0,0 +1,131 @@ +==================================== +Account Factoring Receivable Balance +==================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fodoo--factoring-lightgray.png?logo=github + :target: https://github.com/OCA/odoo-factoring/tree/15.0/account_factoring_receivable_balance + :alt: OCA/odoo-factoring +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/odoo-factoring-15-0/odoo-factoring-15-0-account_factoring_receivable_balance + :alt: Translate me on Weblate + +|badge1| |badge2| |badge3| |badge4| + +see account_factoring_receivable_balance_bpce module + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To implement your own factor connector, see account_factoring_receivable_balance_bpce module. + + +At the minimum, you have to define + + +.. code-block:: python + + class SubrogationReceipt(models.Model): + _inherit = "subrogation.receipt" + + def _prepare_factor_file_myownfactor(self): + self.ensure_one + name = "myown_file.txt" + return { + "name": name, + "res_id": self.id, + "res_model": self._name, + "datas": self._prepare_factor_file_data_myownfactor(), + } + + def _prepare_factor_file_myownfactor(self): + ... + return base64.b64encode(data) + + +Other settings in journal + + +.. code-block:: python + + class AccountJournal(models.Model): + _inherit = "account.journal" + + factor_type = fields.Selection( + selection_add=[("myownfactor", "MyOwnFactor")], ondelete={"myownfactor": "set null"} + ) + + +Usage +===== + +see account_factoring_receivable_balance_bpce module + +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 +~~~~~~~ + +* + +Contributors +~~~~~~~~~~~~ + +* Akretion: + - David BEAL + - Alexis DE LATTRE + + +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-bealdav| image:: https://github.com/bealdav.png?size=40px + :target: https://github.com/bealdav + :alt: bealdav +.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainers `__: + +|maintainer-bealdav| |maintainer-alexis-via| + +This module is part of the `OCA/odoo-factoring `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_factoring_receivable_balance/__init__.py b/account_factoring_receivable_balance/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/account_factoring_receivable_balance/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/account_factoring_receivable_balance/__manifest__.py b/account_factoring_receivable_balance/__manifest__.py new file mode 100644 index 000000000..b2d3b86c5 --- /dev/null +++ b/account_factoring_receivable_balance/__manifest__.py @@ -0,0 +1,26 @@ +# © 2022 David BEAL @ Akretion +# © 2022 Alexis DE LATTRE @ Akretion + +{ + "name": "Account Factoring Receivable Balance", + "version": "15.0.1.0.0", + "category": "Accounting", + "license": "AGPL-3", + "maintainers": [ + "bealdav", + "alexis-via", + ], + "depends": [ + "base_factoring", + ], + "data": [ + "security/ir.model.access.csv", + "security/misc.xml", + "views/subrogation_receipt.xml", + "views/account_journal.xml", + "views/company.xml", + ], + "demo": [ + "views/company_demo.xml", + ], +} diff --git a/account_factoring_receivable_balance/i18n/account_factoring_receivable_balance.pot b/account_factoring_receivable_balance/i18n/account_factoring_receivable_balance.pot new file mode 100644 index 000000000..9664884e7 --- /dev/null +++ b/account_factoring_receivable_balance/i18n/account_factoring_receivable_balance.pot @@ -0,0 +1,455 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_factoring_receivable_balance +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_needaction +msgid "Action Needed" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__active +msgid "Active" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_ids +msgid "Activities" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_exception_decoration +msgid "Activity Exception Decoration" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_state +msgid "Activity State" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_type_icon +msgid "Activity Type Icon" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.view_company_form_demo +msgid "Add data to send to factor" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Archived" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_attachment_count +msgid "Attachment Count" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields.selection,name:account_factoring_receivable_balance.selection__account_journal__factor_type__bpce +msgid "BPCE" +msgstr "" + +#. module: account_factoring_receivable_balance +#: code:addons/account_factoring_receivable_balance/models/subrogation_receipt.py:0 +#, python-format +msgid "" +"Check fields 'Holdabck Amount', 'Untaxed Amount', 'Tax Amount', they should " +"have a value" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model,name:account_factoring_receivable_balance.model_res_company +msgid "Companies" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__company_id +msgid "Company" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Confirm" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields.selection,name:account_factoring_receivable_balance.selection__subrogation_receipt__state__confirmed +msgid "Confirmed" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__date +msgid "Confirmed Date" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model,name:account_factoring_receivable_balance.model_subrogation_receipt +msgid "Contains data relative to sent balance to factoring" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__create_uid +msgid "Created by" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__create_date +msgid "Created on" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__currency_id +msgid "Currency" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_current_account_id +msgid "Current Account" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__statement_date +msgid "Date of the last bank statement taken account in accounting" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__display_name +msgid "Display Name" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields.selection,name:account_factoring_receivable_balance.selection__subrogation_receipt__state__draft +msgid "Draft" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_expense_account_id +msgid "Expense Account" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__expense_tax_amount +msgid "Expense Tax Amount" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__expense_untaxed_amount +msgid "Expense Untaxed Amount" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Expenses" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factor_type +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__factor_type +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.view_account_journal_search +msgid "Factor" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_res_company__factor_config_currency_id +msgid "Factor Config Currency" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.constraint,message:account_factoring_receivable_balance.constraint_account_journal_currency_factor_company_unique +msgid "Field currency must be unique by factor_type and company" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_follower_ids +msgid "Followers" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_partner_ids +msgid "Followers (Partners)" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__activity_type_icon +msgid "Font awesome icon e.g. fa-tasks" +msgstr "" + +#. module: account_factoring_receivable_balance +#: code:addons/account_factoring_receivable_balance/models/subrogation_receipt.py:0 +#, python-format +msgid "Generated Subrogation" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__has_message +msgid "Has Message" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_holdback_account_id +msgid "Holdback Account" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__holdback_amount +msgid "Holdback Amount" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__id +msgid "ID" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_exception_icon +msgid "Icon" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__activity_exception_icon +msgid "Icon to indicate an exception activity." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_needaction +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_unread +msgid "If checked, new messages require your attention." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_has_error +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_has_sms_error +msgid "If checked, some messages have a delivery error." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_is_follower +msgid "Is Follower" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model,name:account_factoring_receivable_balance.model_account_journal +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__factor_journal_id +msgid "Journal" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model,name:account_factoring_receivable_balance.model_account_move +msgid "Journal Entry" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__write_date +msgid "Last Updated on" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_main_attachment_id +msgid "Main Attachment" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_has_error +msgid "Message Delivery error" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_ids +msgid "Messages" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__move_ids +msgid "Move" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Moves" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__my_activity_date_deadline +msgid "My Activity Deadline" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_date_deadline +msgid "Next Activity Deadline" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_summary +msgid "Next Activity Summary" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_type_id +msgid "Next Activity Type" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_needaction_counter +msgid "Number of Actions" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_has_error_counter +msgid "Number of errors" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_needaction_counter +msgid "Number of messages which requires an action" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_has_error_counter +msgid "Number of messages with delivery error" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_unread_counter +msgid "Number of unread messages" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_pending_recharging_account_id +msgid "Pending Recharging Account" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Post" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields.selection,name:account_factoring_receivable_balance.selection__subrogation_receipt__state__posted +msgid "Posted" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_receivable_account_id +msgid "Receivable Account" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.view_account_journal_form +msgid "Receiveable Balance" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_user_id +msgid "Responsible User" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_has_sms_error +msgid "SMS Delivery error" +msgstr "" + +#. module: account_factoring_receivable_balance +#: code:addons/account_factoring_receivable_balance/models/subrogation_receipt.py:0 +#, python-format +msgid "See invoices and customers" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__state +msgid "State" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__statement_date +msgid "Statement Date" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__activity_state +msgid "" +"Status based on activities\n" +"Overdue: Due date is already passed\n" +"Today: Activity date is today\n" +"Planned: Future activities." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.actions.act_window,name:account_factoring_receivable_balance.subrogation_receipt_action +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_bank_statement_line__subrogation_id +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_move__subrogation_id +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_payment__subrogation_id +#: model:ir.ui.menu,name:account_factoring_receivable_balance.subrogation_receipt_menu +msgid "Subrogation Receipt" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Tax Amount" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__currency_id +msgid "The currency used to enter statement" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__activity_exception_decoration +msgid "Type of the exception activity on record." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_unread +msgid "Unread Messages" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_unread_counter +msgid "Unread Messages Counter" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Untaxed Amount" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__website_message_ids +msgid "Website Messages" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__website_message_ids +msgid "Website communication history" +msgstr "" + +#. module: account_factoring_receivable_balance +#: code:addons/account_factoring_receivable_balance/models/subrogation_receipt.py:0 +#, python-format +msgid "" +"You must configure journal according to factor and currency.\n" +"Click on 'Configure journals and accounts' in company page, 'Factor' tab" +msgstr "" diff --git a/account_factoring_receivable_balance/i18n/fr.po b/account_factoring_receivable_balance/i18n/fr.po new file mode 100644 index 000000000..0afe83efb --- /dev/null +++ b/account_factoring_receivable_balance/i18n/fr.po @@ -0,0 +1,461 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_factoring_receivable_balance +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: fr_FR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 3.0.1\n" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_needaction +msgid "Action Needed" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__active +msgid "Active" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_ids +msgid "Activities" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_exception_decoration +msgid "Activity Exception Decoration" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_state +msgid "Activity State" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_type_icon +msgid "Activity Type Icon" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.view_company_form_demo +msgid "Add data to send to factor" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Archived" +msgstr "Archivé" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_attachment_count +msgid "Attachment Count" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields.selection,name:account_factoring_receivable_balance.selection__account_journal__factor_type__bpce +msgid "BPCE" +msgstr "" + +#. module: account_factoring_receivable_balance +#: code:addons/account_factoring_receivable_balance/models/subrogation_receipt.py:0 +#, python-format +msgid "" +"Check fields 'Holdabck Amount', 'Untaxed Amount', 'Tax Amount', they should " +"have a value" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model,name:account_factoring_receivable_balance.model_res_company +msgid "Companies" +msgstr "Sociétés" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__company_id +msgid "Company" +msgstr "Société" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Confirm" +msgstr "Confirmer" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields.selection,name:account_factoring_receivable_balance.selection__subrogation_receipt__state__confirmed +msgid "Confirmed" +msgstr "Confirmé" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__date +msgid "Confirmed Date" +msgstr "Date de confirmation" + +#. module: account_factoring_receivable_balance +#: model:ir.model,name:account_factoring_receivable_balance.model_subrogation_receipt +msgid "Contains data relative to sent balance to factoring" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__create_uid +msgid "Created by" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__create_date +msgid "Created on" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__currency_id +msgid "Currency" +msgstr "Devise" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_current_account_id +msgid "Current Account" +msgstr "Compte courant" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__statement_date +msgid "Date of the last bank statement taken account in accounting" +msgstr "Date du dernier relevé bancaire pris en compte en comptabilité" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__display_name +msgid "Display Name" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields.selection,name:account_factoring_receivable_balance.selection__subrogation_receipt__state__draft +msgid "Draft" +msgstr "Brouillon" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_expense_account_id +msgid "Expense Account" +msgstr "Compte de dépense" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__expense_tax_amount +msgid "Expense Tax Amount" +msgstr "Montant de taxe de dépense" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__expense_untaxed_amount +msgid "Expense Untaxed Amount" +msgstr "Montant non taxé de dépense" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Expenses" +msgstr "Dépenses" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factor_type +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__factor_type +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.view_account_journal_search +#, fuzzy +#| msgid "Factor Type" +msgid "Factor" +msgstr "Type de factor" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_res_company__factor_config_currency_id +msgid "Factor Config Currency" +msgstr "Configuration de la devise du factor" + +#. module: account_factoring_receivable_balance +#: model:ir.model.constraint,message:account_factoring_receivable_balance.constraint_account_journal_currency_factor_company_unique +msgid "Field currency must be unique by factor_type and company" +msgstr "Le champ devise doit etre unique factor and société" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_follower_ids +msgid "Followers" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_partner_ids +msgid "Followers (Partners)" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__activity_type_icon +msgid "Font awesome icon e.g. fa-tasks" +msgstr "" + +#. module: account_factoring_receivable_balance +#: code:addons/account_factoring_receivable_balance/models/subrogation_receipt.py:0 +#, python-format +msgid "Generated Subrogation" +msgstr "Subrogation Générée" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__has_message +msgid "Has Message" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_holdback_account_id +msgid "Holdback Account" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__holdback_amount +msgid "Holdback Amount" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__id +msgid "ID" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_exception_icon +msgid "Icon" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__activity_exception_icon +msgid "Icon to indicate an exception activity." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_needaction +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_unread +msgid "If checked, new messages require your attention." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_has_error +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_has_sms_error +msgid "If checked, some messages have a delivery error." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_is_follower +msgid "Is Follower" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model,name:account_factoring_receivable_balance.model_account_journal +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__factor_journal_id +msgid "Journal" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model,name:account_factoring_receivable_balance.model_account_move +msgid "Journal Entry" +msgstr "Ecriture comptable" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt____last_update +msgid "Last Modified on" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__write_date +msgid "Last Updated on" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_main_attachment_id +msgid "Main Attachment" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_has_error +msgid "Message Delivery error" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_ids +msgid "Messages" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__move_ids +msgid "Move" +msgstr "Ecriture" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Moves" +msgstr "Ecritures" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__my_activity_date_deadline +msgid "My Activity Deadline" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_date_deadline +msgid "Next Activity Deadline" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_summary +msgid "Next Activity Summary" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_type_id +msgid "Next Activity Type" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_needaction_counter +msgid "Number of Actions" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_has_error_counter +msgid "Number of errors" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_needaction_counter +msgid "Number of messages which requires an action" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_has_error_counter +msgid "Number of messages with delivery error" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__message_unread_counter +msgid "Number of unread messages" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_pending_recharging_account_id +msgid "Pending Recharging Account" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Post" +msgstr "Comptabiliser" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields.selection,name:account_factoring_receivable_balance.selection__subrogation_receipt__state__posted +msgid "Posted" +msgstr "Comptabilisé" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_journal__factoring_receivable_account_id +msgid "Receivable Account" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.view_account_journal_form +msgid "Receiveable Balance" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__activity_user_id +msgid "Responsible User" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_has_sms_error +msgid "SMS Delivery error" +msgstr "" + +#. module: account_factoring_receivable_balance +#: code:addons/account_factoring_receivable_balance/models/subrogation_receipt.py:0 +#, python-format +msgid "See invoices and customers" +msgstr "Voir les factures et clients" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__state +msgid "State" +msgstr "Etat" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__statement_date +msgid "Statement Date" +msgstr "Date relevé" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__activity_state +msgid "" +"Status based on activities\n" +"Overdue: Due date is already passed\n" +"Today: Activity date is today\n" +"Planned: Future activities." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.actions.act_window,name:account_factoring_receivable_balance.subrogation_receipt_action +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_bank_statement_line__subrogation_id +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_move__subrogation_id +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_account_payment__subrogation_id +#: model:ir.ui.menu,name:account_factoring_receivable_balance.subrogation_receipt_menu +msgid "Subrogation Receipt" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Tax Amount" +msgstr "Montant de la taxe" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__currency_id +msgid "The currency used to enter statement" +msgstr "La devide utilisé pour le relevé" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__activity_exception_decoration +msgid "Type of the exception activity on record." +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_unread +msgid "Unread Messages" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__message_unread_counter +msgid "Unread Messages Counter" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.subrogation_receipt_form +msgid "Untaxed Amount" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,field_description:account_factoring_receivable_balance.field_subrogation_receipt__website_message_ids +msgid "Website Messages" +msgstr "" + +#. module: account_factoring_receivable_balance +#: model:ir.model.fields,help:account_factoring_receivable_balance.field_subrogation_receipt__website_message_ids +msgid "Website communication history" +msgstr "" + +#. module: account_factoring_receivable_balance +#: code:addons/account_factoring_receivable_balance/models/subrogation_receipt.py:0 +#, python-format +msgid "" +"You must configure journal according to factor and currency.\n" +"Click on 'Configure journals and accounts' in company page, 'Factor' tab" +msgstr "Vous devez configurer le journal selon le factor et la devise." diff --git a/account_factoring_receivable_balance/models/__init__.py b/account_factoring_receivable_balance/models/__init__.py new file mode 100644 index 000000000..84aacb09b --- /dev/null +++ b/account_factoring_receivable_balance/models/__init__.py @@ -0,0 +1,4 @@ +from . import company +from . import account_journal +from . import account_move +from . import subrogation_receipt diff --git a/account_factoring_receivable_balance/models/account_journal.py b/account_factoring_receivable_balance/models/account_journal.py new file mode 100644 index 000000000..742adee3c --- /dev/null +++ b/account_factoring_receivable_balance/models/account_journal.py @@ -0,0 +1,34 @@ +# © 2022 David BEAL @ Akretion +# © 2022 Alexis DE LATTRE @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class AccountJournal(models.Model): + _inherit = "account.journal" + + factor_type = fields.Selection(string="Factor", selection_add=[("", "")]) + factoring_receivable_account_id = fields.Many2one( + comodel_name="account.account", string="Receivable Account" + ) + factoring_current_account_id = fields.Many2one( + comodel_name="account.account", string="Current Account" + ) + factoring_holdback_account_id = fields.Many2one( + comodel_name="account.account", string="Holdback Account" + ) + factoring_pending_recharging_account_id = fields.Many2one( + comodel_name="account.account", string="Pending Recharging Account" + ) + factoring_expense_account_id = fields.Many2one( + comodel_name="account.account", string="Expense Account" + ) + + _sql_constraints = [ + ( + "currency_factor_curr_type_cpny_unique", + "UNIQUE(currency_id, factor_type, type, company_id)", + "Field Factor type must be unique by Currency, Journal type, and Company", + ) + ] diff --git a/account_factoring_receivable_balance/models/account_move.py b/account_factoring_receivable_balance/models/account_move.py new file mode 100644 index 000000000..c8504c139 --- /dev/null +++ b/account_factoring_receivable_balance/models/account_move.py @@ -0,0 +1,17 @@ +# © 2022 David BEAL @ Akretion +# © 2022 Alexis DE LATTRE @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models +from odoo.tools import DEFAULT_SERVER_DATE_FORMAT as DF +from odoo.tools.misc import formatLang, format_date as odoo_format_date, get_lang + + +class AccountMoveLine(models.Model): + _inherit = "account.move.line" + + subrogation_id = fields.Many2one( + comodel_name="subrogation.receipt", + string="Subrogation Receipt", + check_company=True, + ) diff --git a/account_factoring_receivable_balance/models/company.py b/account_factoring_receivable_balance/models/company.py new file mode 100644 index 000000000..f6fed0f48 --- /dev/null +++ b/account_factoring_receivable_balance/models/company.py @@ -0,0 +1,58 @@ +# © 2022 David BEAL @ Akretion +# © 2022 Alexis DE LATTRE @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models, Command +from odoo.exceptions import UserError +from odoo.tests.common import Form + + +class ResCompany(models.Model): + _inherit = "res.company" + + factor_config_currency_id = fields.Many2one( + comodel_name="res.currency", + string="Devise", + help="Use to configure account and journal", + ) + + @api.model + def _create_french_company(self, company_name=None): + "Can be called from Odoo Shell" + demo_cpny_name = "BPCE demo" + previous_cpny = self.search([("name", "=", demo_cpny_name)], limit=1) + previous_cpny.write({"name": "Company %s" % previous_cpny.id}) + company = self.create( + { + "name": company_name or demo_cpny_name, + "street": "42 rue du logiciel libre", + "zip": "69009", + "city": "Lyon", + "country_id": self.env.ref("base.fr").id, + "siret": "77788899100018", + "vat": "FR51777888991", + } + ) + self.env.ref("l10n_fr.l10n_fr_pcg_chart_template")._load(20.0, 20.0, company) + self.env.ref("base.user_admin").company_ids = [Command.link(company.id)] + return company + + def _prepare_data_for_factor(self, move_type="out_invoice"): + self.ensure_one() + raise UserError("Not yet implemented") + move_form = Form( + self.env["account.move"] + .with_company(self.env.company) + .with_context( + default_move_type=move_type, + account_predictive_bills_disable_prediction=True, + ) + ) + move_form.invoice_date = fields.Date.from_string("2022-10-03") + move_form.date = move_form.invoice_date + move_form.partner_id = self.env.ref("base.res_partner_2") + + def ui_populate_data_for_factor(self): + for rec in self: + raise UserError("Not yet implemented") + rec._prepare_data_for_factor() diff --git a/account_factoring_receivable_balance/models/subrogation_receipt.py b/account_factoring_receivable_balance/models/subrogation_receipt.py new file mode 100644 index 000000000..03119e0e7 --- /dev/null +++ b/account_factoring_receivable_balance/models/subrogation_receipt.py @@ -0,0 +1,285 @@ +# © 2022 David BEAL @ Akretion +# © 2022 Alexis DE LATTRE @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import _, api, fields, models +from odoo.exceptions import UserError, RedirectWarning + + +class SubrogationReceipt(models.Model): + _name = "subrogation.receipt" + _inherit = ["mail.thread", "mail.activity.mixin"] + _check_company_auto = True + _rec_name = "factor_type" + _description = "Contains data relative to sent balance to factoring" + + factor_journal_id = fields.Many2one( + comodel_name="account.journal", + string="Journal", + domain="[('factor_type', '!=', False)]", + check_company=True, + required=True, + ) + factor_type = fields.Selection(related="factor_journal_id.factor_type", store=True) + currency_id = fields.Many2one(related="factor_journal_id.currency_id", store=True) + display_name = fields.Char(compute="_compute_display_name") + date = fields.Date( + string="Confirmed Date", + readonly=True, + tracking=True, + ) + statement_date = fields.Date( + help="Date of the last bank statement taken account in accounting" + ) + active = fields.Boolean(default=True) + state = fields.Selection( + [ + ("draft", "Draft"), + ("confirmed", "Confirmed"), + ("posted", "Posted"), + ], + default="draft", + required=True, + tracking=True, + ) + expense_untaxed_amount = fields.Float(tracking=True, help="") + expense_tax_amount = fields.Float(tracking=True, help="") + holdback_amount = fields.Float(tracking=True, help="") + balance = fields.Monetary(currency_field="currency_id",readonly=True) + company_id = fields.Many2one( + comodel_name="res.company", string="Company", readonly=True, required=True + ) + line_ids = fields.One2many( + comodel_name="account.move.line", + inverse_name="subrogation_id", + readonly=True, + ) + + @api.depends("factor_journal_id", "date") + def _compute_display_name(self): + for rec in self: + rec.display_name = "%s %s %s" % ( + rec.factor_type, + rec.currency_id.name, + rec.date or rec._fields["state"].selection[0][1], + ) + + @api.model + def _get_domain_for_factor( + self, factor_type, partner_selection_field=None, currency=None + ): + """partner_selection_field is a field on partners to guess + which account data need to be retrieved. + You have to create it in your own fatcor module + """ + bank_journal = self._get_bank_journal(factor_type, currency=currency) + domain = [ + ("company_id", "=", self._get_company_id()), + ("parent_state", "=", "posted"), + ("subrogation_id", "=", False), + self._get_customer_accounts(), + ("full_reconcile_id", "=", False), + ( + "partner_id.commercial_partner_id.%s" % partner_selection_field, + "=", + True, + ), + "|", + ("move_id.partner_bank_id", "!=", bank_journal.bank_account_id.id), + ("move_id.partner_bank_id", "=", False), + ] + return domain + + @api.model + def _get_customer_accounts(self): + """We may also us: + res = self.env["res.partner"].default_get(['property_account_receivable_id']) + self.env["account.account"].browse(res["property_account_receivable_id"]) + + but we are not sure that the user default one is the same + """ + property_ = self.env["ir.property"].search( + [ + ("name", "=", "property_account_receivable_id"), + ("company_id", "=", self._get_company_id()), + ("res_id", "=", False), + ] + ) + id_ = property_.value_reference[property_.value_reference.find(",") + 1 :] + account = self.env["account.account"].browse(int(id_)) + return [ + "account_id.code", + "like", + "%s%s" % (account.code.replace("0", ""), "%"), + ] + + @api.model + def _create_or_update_subrogation_receipt(self, factor_type, partner_field=None): + journals = self.env["account.journal"].search( + [ + ("factor_type", "=", factor_type), + ("type", "=", "general"), + ("company_id", "=", self._get_company_id()), + ] + ) + if not journals: + raise UserError( + _( + "You must configure journal according to factor and currency.\n" + "Click on 'Configure journals and accounts' " + "in company page, 'Factor' tab" + ) + ) + subr_ids = [] + missing_journals = [] + for journal in journals: + self.search( + [ + ("factor_journal_id", "=", journal.id), + ("state", "=", "draft"), + ] + ).sudo().unlink() + domain = self._get_domain_for_factor( + factor_type, + partner_selection_field=partner_field, + currency=journal.currency_id, + ) + if not domain: + missing_journals.append(journal) + continue + lines = self.env["account.move.line"].search( + domain + [("move_id.currency_id", "=", journal.currency_id.id)] + ) + if not lines: + continue + subrog = self.sudo().create( + { + "factor_journal_id": journal.id, + "company_id": journal.company_id.id, + } + ) + subr_ids.append(subrog.id) + lines.write({"subrogation_id": subrog.id}) + if subr_ids: + action = { + "name": _("Generated Subrogation"), + "view_mode": "tree,form", + "res_model": "subrogation.receipt", + "type": "ir.actions.act_window", + "target": "current", + "views": [ + ( + self.env.ref( + "account_factoring_receivable_balance." + "subrogation_receipt_tree" + ).id, + "tree", + ) + ], + "domain": "[('id', 'in', %s)]" % subr_ids, + } + + action = self.env[action["type"]].create(action) + if missing_journals: + message = ( + "Missing bank journal for %s and currency %s to finish process" + % ( + factor_type, + missing_journals[0].currency_id.name, + ) + ) + raise RedirectWarning( + _(message), action.id, _("See created subrogations") + ) + return { + "type": "ir.actions.client", + "tag": "display_notification", + "params": { + "type": "success", + "title": "Subrogation Receipts", + "message": _( + "Subrogation Receipts have been created", + ), + "sticky": True, + "next": action.id, + }, + } + else: + message = ( + "No invoice needs to be linked to %s factor.\n" + "Check matching settings on: " + "\n - customers" + "\n - company \n\n\n domain\n%s" % (factor_type.upper(), domain) + ) + raise RedirectWarning( + _(message), + self.env.ref("account.action_move_out_invoice_type").id, + _("See invoices and customers"), + ) + + def _get_bank_journal(self, factor_type, currency=None): + """Get matching bank journal + You may override to have a dedicated mapping""" + domain = [("type", "=", "bank"), ("factor_type", "=", factor_type)] + if currency: + domain += [("currency_id", "=", currency.id)] + return self.env["account.journal"].search(domain, limit=1) + + def _prepare_factor_file(self, factor_type): + self.ensure_one + method = "_prepare_factor_file_%s" % factor_type + if hasattr(self, method): + return getattr(self, method)() + else: + pass + + def _sanitize_filepath(self, string): + "Helper to make safe filepath" + for elm in ["/", " ", ":", "<", ">", "\\", "|", "?", "*"]: + string = string.replace(elm, "_") + return string + + def action_confirm(self): + for rec in self: + if rec.state == "draft": + rec.state = "confirmed" + rec.date = fields.Date.today() + data = self._prepare_factor_file(rec.factor_type) + if data: + self.env["ir.attachment"].create(data) + + def action_post(self): + for rec in self: + if ( + rec.state == "confirmed" + and rec.holdback_amount > 0 + and rec.expense_untaxed_amount > 0 + and rec.expense_tax_amount > 0 + ): + rec.state = "posted" + else: + raise UserError( + _( + "Check fields 'Holdabck Amount', 'Untaxed Amount', " + "'Tax Amount', they should have a value" + ) + ) + + def action_goto_moves(self): + self.ensure_one() + return { + "name": _("Subrogation Receipt %s" % self.display_name), + "res_model": "account.move.line", + "view_mode": "tree,form", + "domain": "[('subrogation_id', '=', %s)]" % self.id, + "type": "ir.actions.act_window", + } + + def unlink(self): + for rec in self: + if rec.state != "draft": + raise UserError(_("Only subrogation in draft state can be deleted")) + return super().unlink() + + def _get_company_id(self): + return self.env.user.company_id.id diff --git a/account_factoring_receivable_balance/readme/CONFIGURE.rst b/account_factoring_receivable_balance/readme/CONFIGURE.rst new file mode 100644 index 000000000..d9ba276ac --- /dev/null +++ b/account_factoring_receivable_balance/readme/CONFIGURE.rst @@ -0,0 +1,38 @@ +To implement your own factor connector, see account_factoring_receivable_balance_bpce module. + + +At the minimum, you have to define + + +.. code-block:: python + + class SubrogationReceipt(models.Model): + _inherit = "subrogation.receipt" + + def _prepare_factor_file_myownfactor(self): + self.ensure_one + name = "myown_file.txt" + return { + "name": name, + "res_id": self.id, + "res_model": self._name, + "datas": self._prepare_factor_file_data_myownfactor(), + } + + def _prepare_factor_file_myownfactor(self): + ... + return base64.b64encode(data) + + +Other settings in journal + + +.. code-block:: python + + class AccountJournal(models.Model): + _inherit = "account.journal" + + factor_type = fields.Selection( + selection_add=[("myownfactor", "MyOwnFactor")], ondelete={"myownfactor": "set null"} + ) + diff --git a/account_factoring_receivable_balance/readme/CONTRIBUTORS.rst b/account_factoring_receivable_balance/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..56db2b6af --- /dev/null +++ b/account_factoring_receivable_balance/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Akretion: + - David BEAL + - Alexis DE LATTRE diff --git a/account_factoring_receivable_balance/readme/DESCRIPTION.rst b/account_factoring_receivable_balance/readme/DESCRIPTION.rst new file mode 100644 index 000000000..ff118be8f --- /dev/null +++ b/account_factoring_receivable_balance/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +see account_factoring_receivable_balance_bpce module \ No newline at end of file diff --git a/account_factoring_receivable_balance/readme/USAGE.rst b/account_factoring_receivable_balance/readme/USAGE.rst new file mode 100644 index 000000000..ff118be8f --- /dev/null +++ b/account_factoring_receivable_balance/readme/USAGE.rst @@ -0,0 +1 @@ +see account_factoring_receivable_balance_bpce module \ No newline at end of file diff --git a/account_factoring_receivable_balance/security/ir.model.access.csv b/account_factoring_receivable_balance/security/ir.model.access.csv new file mode 100644 index 000000000..fc9a82d13 --- /dev/null +++ b/account_factoring_receivable_balance/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +subrogation_receipt_user,subrogation_receipt_user,model_subrogation_receipt,account.group_account_manager,1,0,0,0 +subrogation_receipt_adviser,subrogation_receipt_adivser,model_subrogation_receipt,account.group_account_manager,1,1,0,1 diff --git a/account_factoring_receivable_balance/security/misc.xml b/account_factoring_receivable_balance/security/misc.xml new file mode 100644 index 000000000..2c9a7d676 --- /dev/null +++ b/account_factoring_receivable_balance/security/misc.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/account_factoring_receivable_balance/static/description/index.html b/account_factoring_receivable_balance/static/description/index.html new file mode 100644 index 000000000..1a9fedf59 --- /dev/null +++ b/account_factoring_receivable_balance/static/description/index.html @@ -0,0 +1,467 @@ + + + + + + +Account Factoring Receivable Balance + + + +
+

Account Factoring Receivable Balance

+ + +

Beta License: AGPL-3 OCA/odoo-factoring Translate me on Weblate

+

see account_factoring_receivable_balance_bpce module

+

Table of contents

+ +
+

Configuration

+

To implement your own factor connector, see account_factoring_receivable_balance_bpce module.

+

At the minimum, you have to define

+
+class SubrogationReceipt(models.Model):
+    _inherit = "subrogation.receipt"
+
+    def _prepare_factor_file_myownfactor(self):
+        self.ensure_one
+        name = "myown_file.txt"
+        return {
+            "name": name,
+            "res_id": self.id,
+            "res_model": self._name,
+            "datas": self._prepare_factor_file_data_myownfactor(),
+        }
+
+    def _prepare_factor_file_myownfactor(self):
+        ...
+        return base64.b64encode(data)
+
+

Other settings in journal

+
+class AccountJournal(models.Model):
+    _inherit = "account.journal"
+
+    factor_type = fields.Selection(
+        selection_add=[("myownfactor", "MyOwnFactor")], ondelete={"myownfactor": "set null"}
+    )
+
+
+
+

Usage

+

see account_factoring_receivable_balance_bpce module

+
+
+

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

+
    +
  • +
+
+
+

Contributors

+
    +
  • +
    Akretion:
    +
      +
    • David BEAL
    • +
    • Alexis DE LATTRE
    • +
    +
    +
    +
  • +
+
+
+

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 maintainers:

+

bealdav alexis-via

+

This module is part of the OCA/odoo-factoring project on GitHub.

+

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

+
+
+
+ + diff --git a/account_factoring_receivable_balance/tests/__init__.py b/account_factoring_receivable_balance/tests/__init__.py new file mode 100644 index 000000000..d9b96c4fa --- /dev/null +++ b/account_factoring_receivable_balance/tests/__init__.py @@ -0,0 +1 @@ +from . import test_module diff --git a/account_factoring_receivable_balance/tests/test_module.py b/account_factoring_receivable_balance/tests/test_module.py new file mode 100644 index 000000000..6e4c0bc0f --- /dev/null +++ b/account_factoring_receivable_balance/tests/test_module.py @@ -0,0 +1,3 @@ +# © 2022 David BEAL @ Akretion +# © 2022 Alexis DE LATTRE @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/account_factoring_receivable_balance/views/account_journal.xml b/account_factoring_receivable_balance/views/account_journal.xml new file mode 100644 index 000000000..996d54b0e --- /dev/null +++ b/account_factoring_receivable_balance/views/account_journal.xml @@ -0,0 +1,43 @@ + + + + account.journal + + + + + + + + + + + + + + + + + + + + account.journal + + + + + + + + + + account.journal + + + + + + + + + diff --git a/account_factoring_receivable_balance/views/company.xml b/account_factoring_receivable_balance/views/company.xml new file mode 100644 index 000000000..384814ad5 --- /dev/null +++ b/account_factoring_receivable_balance/views/company.xml @@ -0,0 +1,13 @@ + + + + res.company + + + + + + + + + diff --git a/account_factoring_receivable_balance/views/company_demo.xml b/account_factoring_receivable_balance/views/company_demo.xml new file mode 100644 index 000000000..e288645ca --- /dev/null +++ b/account_factoring_receivable_balance/views/company_demo.xml @@ -0,0 +1,15 @@ + + + + res.company + + + + +
- + @@ -70,62 +70,62 @@ - - + + + name="journal_id" + options="{"no_open":True}" + /> + name="tax_ids" + widget="many2many_tags" + width="0.5" + optional="hide" + /> + name="amount_currency" + groups="base.group_multi_currency" + optional="show" + string="In currency" + /> + name="account_id" + optional="hide" + groups="account.group_account_readonly" + /> + name="currency_id" + readonly="1" + groups="base.group_multi_currency" + optional="hide" + string="Original Currency" + /> + name="tax_tag_ids" + widget="many2many_tags" + width="0.5" + optional="hide" + /> - +
From 1bea495f463521c74235fc632625ab71242511c6 Mon Sep 17 00:00:00 2001 From: Nikul-OSI Date: Mon, 10 Jun 2024 19:17:02 +0530 Subject: [PATCH 31/59] [IMP] Improved code based on Factoring Integration (T-36844) --- .../models/subrogation_receipt.py | 4 +- .../views/subrogation_receipt.xml | 11 +- .../models/subrogation_receipt.py | 225 ++++++++++++------ 3 files changed, 170 insertions(+), 70 deletions(-) diff --git a/account_factoring_receivable_balance/models/subrogation_receipt.py b/account_factoring_receivable_balance/models/subrogation_receipt.py index dc1892836..46c9727c4 100644 --- a/account_factoring_receivable_balance/models/subrogation_receipt.py +++ b/account_factoring_receivable_balance/models/subrogation_receipt.py @@ -126,7 +126,7 @@ def _get_domain_for_factor(self, factor_type, factor_journal, currency=None): self._get_customer_accounts(), ("full_reconcile_id", "=", False), ( - "partner_id.commercial_partner_id.factor_journal_id" "=", + "partner_id.commercial_partner_id.factor_journal_id", "=", factor_journal.id, ), "|", @@ -134,7 +134,7 @@ def _get_domain_for_factor(self, factor_type, factor_journal, currency=None): ("move_id.partner_bank_id", "=", False), ] if factor_journal.factor_start_date: - domain.append([("date", ">=", factor_journal.factor_start_date)]) + domain.append(("date", ">=", factor_journal.factor_start_date)) return domain @api.model diff --git a/account_factoring_receivable_balance/views/subrogation_receipt.xml b/account_factoring_receivable_balance/views/subrogation_receipt.xml index 24f161f4d..b1d6bd26f 100644 --- a/account_factoring_receivable_balance/views/subrogation_receipt.xml +++ b/account_factoring_receivable_balance/views/subrogation_receipt.xml @@ -34,6 +34,15 @@ +
+ +