diff --git a/l10n_be_cooperator_national_number/README.rst b/l10n_be_cooperator_national_number/README.rst new file mode 100644 index 000000000..012a5f299 --- /dev/null +++ b/l10n_be_cooperator_national_number/README.rst @@ -0,0 +1,84 @@ +=================================== +Belgium: Cooperator National Number +=================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:630e1017f61be213540b60239befca6d9dc713c41118f2a603254d70f4b9ec7f + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fcooperative-lightgray.png?logo=github + :target: https://github.com/OCA/cooperative/tree/16.0/l10n_be_cooperator_national_number + :alt: OCA/cooperative +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-l10n_be_cooperator_national_number + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/cooperative&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Ask for Belgian National Number in Subscription Request. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +On the company, two new toggles 'Display National Number' and 'Require National +Number' are added. In order to expose the functionality of this module, you must +enable these toggles for every company that wishes to use it. 'Display' shows +the field and allows it to be filled in. 'Require' makes the field mandatory. + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Coop IT Easy SC + +Contributors +~~~~~~~~~~~~ + +* Coop IT Easy SC + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/cooperative `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_be_cooperator_national_number/__init__.py b/l10n_be_cooperator_national_number/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/l10n_be_cooperator_national_number/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_be_cooperator_national_number/__manifest__.py b/l10n_be_cooperator_national_number/__manifest__.py new file mode 100644 index 000000000..a0becdf0b --- /dev/null +++ b/l10n_be_cooperator_national_number/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright 2018 Coop IT Easy SC () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).# +{ + "name": "Belgium: Cooperator National Number", + "summary": "Ask for Belgian National Number in Cooperative Subscription Request.", + "version": "16.0.1.0.0", + "depends": ["cooperator", "l10n_be_partner_identification"], + "author": "Coop IT Easy SC, Odoo Community Association (OCA)", + "category": "Cooperative management", + "website": "https://github.com/OCA/cooperative", + "license": "AGPL-3", + "data": ["views/subscription_request_view.xml", "views/res_company_view.xml"], + "demo": [], +} diff --git a/l10n_be_cooperator_national_number/i18n/l10n_be_cooperator_national_number.pot b/l10n_be_cooperator_national_number/i18n/l10n_be_cooperator_national_number.pot new file mode 100644 index 000000000..bc0d4df5c --- /dev/null +++ b/l10n_be_cooperator_national_number/i18n/l10n_be_cooperator_national_number.pot @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_be_cooperator_national_number +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: l10n_be_cooperator_national_number +#: model:ir.model,name:l10n_be_cooperator_national_number.model_res_company +msgid "Companies" +msgstr "" + +#. module: l10n_be_cooperator_national_number +#: model:ir.model.fields,field_description:l10n_be_cooperator_national_number.field_subscription_request__display_national_number +msgid "Display National Number" +msgstr "" + +#. module: l10n_be_cooperator_national_number +#: model:ir.model.fields,field_description:l10n_be_cooperator_national_number.field_subscription_request__national_number +msgid "National Number" +msgstr "" + +#. module: l10n_be_cooperator_national_number +#: code:addons/l10n_be_cooperator_national_number/models/subscription_request.py:38 +#, python-format +msgid "National Number is required." +msgstr "" + +#. module: l10n_be_cooperator_national_number +#: model:ir.model.fields,field_description:l10n_be_cooperator_national_number.field_res_company__require_national_number +msgid "Require National Number" +msgstr "" + +#. module: l10n_be_cooperator_national_number +#: model:ir.model,name:l10n_be_cooperator_national_number.model_subscription_request +msgid "Subscription Request" +msgstr "" + diff --git a/l10n_be_cooperator_national_number/models/__init__.py b/l10n_be_cooperator_national_number/models/__init__.py new file mode 100644 index 000000000..40cf510c0 --- /dev/null +++ b/l10n_be_cooperator_national_number/models/__init__.py @@ -0,0 +1,3 @@ +from . import company +from . import subscription_request +from . import res_partner diff --git a/l10n_be_cooperator_national_number/models/company.py b/l10n_be_cooperator_national_number/models/company.py new file mode 100644 index 000000000..6068d57d2 --- /dev/null +++ b/l10n_be_cooperator_national_number/models/company.py @@ -0,0 +1,30 @@ +# Copyright 2019 Coop IT Easy SCRL fs +# Houssine Bakkali +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + + +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError + + +class ResCompany(models.Model): + _inherit = "res.company" + + display_national_number = fields.Boolean() + require_national_number = fields.Boolean() + + @api.constrains("display_national_number", "require_national_number") + def _check_national_number(self): + for company in self: + if company.require_national_number and not company.display_national_number: + raise ValidationError( + _( + 'If the "Require National Number" toggle is enabled,' + ' then so must the "Display National Number" toggle.' + ) + ) + + @api.onchange("display_national_number") + def _onchange_display_national_number(self): + if not self.display_national_number: + self.require_national_number = False diff --git a/l10n_be_cooperator_national_number/models/res_partner.py b/l10n_be_cooperator_national_number/models/res_partner.py new file mode 100644 index 000000000..fda7f1225 --- /dev/null +++ b/l10n_be_cooperator_national_number/models/res_partner.py @@ -0,0 +1,36 @@ +# SPDX-FileCopyrightText: 2023 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +from odoo import models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + def update_belgian_national_number(self, national_number): + self.ensure_one() + result = None + if national_number: + belgian_cat = self.env.ref( + "l10n_be_partner_identification.l10n_be_national_registry_number_category" + ) + existing = self.env["res.partner.id_number"].search( + [ + ("partner_id", "=", self.id), + ("category_id", "=", belgian_cat.id), + ] + ) + # Update + if existing: + existing.name = national_number + result = existing + # Create new + else: + values = { + "name": national_number, + "category_id": belgian_cat.id, + "partner_id": self.id, + } + result = self.env["res.partner.id_number"].create(values) + return result diff --git a/l10n_be_cooperator_national_number/models/subscription_request.py b/l10n_be_cooperator_national_number/models/subscription_request.py new file mode 100644 index 000000000..6db07d7ef --- /dev/null +++ b/l10n_be_cooperator_national_number/models/subscription_request.py @@ -0,0 +1,50 @@ +from odoo import _, api, fields, models +from odoo.exceptions import UserError + + +class SubscriptionRequest(models.Model): + _inherit = "subscription.request" + + national_number = fields.Char() + display_national_number = fields.Boolean( + compute="_compute_display_national_number", + ) + require_national_number = fields.Boolean( + compute="_compute_require_national_number", + ) + + @api.depends("is_company", "company_id", "company_id.display_national_number") + def _compute_display_national_number(self): + self.display_national_number = ( + self.company_id.display_national_number and not self.is_company + ) + + @api.depends("is_company", "company_id", "company_id.require_national_number") + def _compute_require_national_number(self): + self.require_national_number = ( + self.company_id.require_national_number and not self.is_company + ) + + def get_national_number_from_partner(self, partner): + national_number_id_category = self.env.ref( + "l10n_be_partner_identification.l10n_be_national_registry_number_category" + ).id + national_number = partner.id_numbers.filtered( + lambda rec: rec.category_id.id == national_number_id_category + ) + return national_number.name + + def validate_subscription_request(self): + self.ensure_one() + if self.require_national_number and not self.national_number: + raise UserError(_("National Number is required.")) + invoice = super().validate_subscription_request() + if not self.is_company: + partner = invoice.partner_id + partner.update_belgian_national_number(self.national_number) + return invoice + + def get_person_info(self, partner): + super().get_person_info(partner) + self.national_number = self.get_national_number_from_partner(partner) + return True diff --git a/l10n_be_cooperator_national_number/readme/CONTRIBUTORS.rst b/l10n_be_cooperator_national_number/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..8c568398a --- /dev/null +++ b/l10n_be_cooperator_national_number/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Coop IT Easy SC diff --git a/l10n_be_cooperator_national_number/readme/DESCRIPTION.rst b/l10n_be_cooperator_national_number/readme/DESCRIPTION.rst new file mode 100644 index 000000000..474b53cfb --- /dev/null +++ b/l10n_be_cooperator_national_number/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Ask for Belgian National Number in Subscription Request. diff --git a/l10n_be_cooperator_national_number/readme/USAGE.rst b/l10n_be_cooperator_national_number/readme/USAGE.rst new file mode 100644 index 000000000..bcd2f4655 --- /dev/null +++ b/l10n_be_cooperator_national_number/readme/USAGE.rst @@ -0,0 +1,4 @@ +On the company, two new toggles 'Display National Number' and 'Require National +Number' are added. In order to expose the functionality of this module, you must +enable these toggles for every company that wishes to use it. 'Display' shows +the field and allows it to be filled in. 'Require' makes the field mandatory. diff --git a/l10n_be_cooperator_national_number/static/description/icon.png b/l10n_be_cooperator_national_number/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/l10n_be_cooperator_national_number/static/description/icon.png differ diff --git a/l10n_be_cooperator_national_number/static/description/index.html b/l10n_be_cooperator_national_number/static/description/index.html new file mode 100644 index 000000000..ca0b9e96b --- /dev/null +++ b/l10n_be_cooperator_national_number/static/description/index.html @@ -0,0 +1,429 @@ + + + + + + +Belgium: Cooperator National Number + + + +
+

Belgium: Cooperator National Number

+ + +

Beta License: AGPL-3 OCA/cooperative Translate me on Weblate Try me on Runboat

+

Ask for Belgian National Number in Subscription Request.

+

Table of contents

+ +
+

Usage

+

On the company, two new toggles ‘Display National Number’ and ‘Require National +Number’ are added. In order to expose the functionality of this module, you must +enable these toggles for every company that wishes to use it. ‘Display’ shows +the field and allows it to be filled in. ‘Require’ makes the field mandatory.

+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Coop IT Easy SC
  • +
+
+
+

Contributors

+
    +
  • Coop IT Easy SC
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/cooperative project on GitHub.

+

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

+
+
+
+ + diff --git a/l10n_be_cooperator_national_number/tests/__init__.py b/l10n_be_cooperator_national_number/tests/__init__.py new file mode 100644 index 000000000..22fec90ed --- /dev/null +++ b/l10n_be_cooperator_national_number/tests/__init__.py @@ -0,0 +1 @@ +from . import test_cooperator_national_number diff --git a/l10n_be_cooperator_national_number/tests/test_cooperator_national_number.py b/l10n_be_cooperator_national_number/tests/test_cooperator_national_number.py new file mode 100644 index 000000000..0ca1d6b07 --- /dev/null +++ b/l10n_be_cooperator_national_number/tests/test_cooperator_national_number.py @@ -0,0 +1,87 @@ +# Copyright 2019 Coop IT Easy SCRL fs +# Robin Keunen +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo.exceptions import UserError, ValidationError +from odoo.tests.common import TransactionCase + +from odoo.addons.cooperator.tests.cooperator_test_mixin import CooperatorTestMixin + +NATIONAL_NUMBER = 90010100123 + + +class TestCooperatorNationalNumber(TransactionCase, CooperatorTestMixin): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.set_up_cooperator_test_data() + + def create_subscription_request(self): + vals = self.get_dummy_subscription_requests_vals() + return self.env["subscription.request"].create(vals) + + def set_national_number_required(self): + self.company.display_national_number = True + self.company.require_national_number = True + + def test_require_without_display(self): + """You cannot require a national number without also displaying it.""" + self.company.write( + { + "display_national_number": False, + "require_national_number": False, + } + ) + with self.assertRaises(ValidationError): + self.company.require_national_number = True + self.set_national_number_required() + with self.assertRaises(ValidationError): + self.company.display_national_number = False + + def test_company_not_required(self): + """Subscription requests for companies do not require a national number.""" + self.set_national_number_required() + vals = self.get_dummy_company_subscription_requests_vals() + subscription_request = self.env["subscription.request"].create(vals) + subscription_request.validate_subscription_request() + self.assertFalse(subscription_request.display_national_number) + self.assertFalse(subscription_request.require_national_number) + + def test_national_number_applied_to_partner(self): + self.set_national_number_required() + subscription_request = self.create_subscription_request() + subscription_request.national_number = NATIONAL_NUMBER + subscription_request.validate_subscription_request() + partner = subscription_request.partner_id + created_id_number = self.env["res.partner.id_number"].search( + [("name", "=", NATIONAL_NUMBER)] + ) + self.assertTrue(created_id_number) + self.assertEqual(created_id_number.partner_id, partner) + + def test_error_if_missing_and_required(self): + self.set_national_number_required() + subscription_request = self.create_subscription_request() + with self.assertRaises(UserError): + subscription_request.validate_subscription_request() + + def test_no_national_number_provided(self): + """Expect an error if no national number is given, but one is required.""" + self.set_national_number_required() + vals = self.get_dummy_subscription_requests_vals() + subscription_request = self.env["subscription.request"].create(vals) + with self.assertRaises(UserError): + subscription_request.validate_subscription_request() + + def test_national_number_provided_not_required(self): + """Expect no error when a number is given but not required.""" + vals = self.get_dummy_subscription_requests_vals() + subscription_request = self.env["subscription.request"].create(vals) + subscription_request.national_number = NATIONAL_NUMBER + subscription_request.validate_subscription_request() + + def test_no_national_number_provided_not_required(self): + """Expect no error when no number is given nor required.""" + vals = self.get_dummy_subscription_requests_vals() + subscription_request = self.env["subscription.request"].create(vals) + subscription_request.validate_subscription_request() diff --git a/l10n_be_cooperator_national_number/views/res_company_view.xml b/l10n_be_cooperator_national_number/views/res_company_view.xml new file mode 100644 index 000000000..6f223c666 --- /dev/null +++ b/l10n_be_cooperator_national_number/views/res_company_view.xml @@ -0,0 +1,17 @@ + + + + res.company.form.easymy.coop + + res.company + + + + + + + + diff --git a/l10n_be_cooperator_national_number/views/subscription_request_view.xml b/l10n_be_cooperator_national_number/views/subscription_request_view.xml new file mode 100644 index 000000000..8aafa4b98 --- /dev/null +++ b/l10n_be_cooperator_national_number/views/subscription_request_view.xml @@ -0,0 +1,21 @@ + + + + + + subscription.request.view.form + subscription.request + + + + + + + + + + diff --git a/l10n_be_cooperator_website_national_number/README.rst b/l10n_be_cooperator_website_national_number/README.rst new file mode 100644 index 000000000..c8cab006b --- /dev/null +++ b/l10n_be_cooperator_website_national_number/README.rst @@ -0,0 +1,82 @@ +=========================================== +Belgium: Cooperator Website National Number +=========================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:08a18ed5941fb03bde000006821e3876e949a81ea803d52388b0747b86ba48bc + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fcooperative-lightgray.png?logo=github + :target: https://github.com/OCA/cooperative/tree/16.0/l10n_be_cooperator_website_national_number + :alt: OCA/cooperative +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-l10n_be_cooperator_website_national_number + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/cooperative&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Ask for Belgian National Number in Cooperative Subscription Request Frontend Form. + +**Table of contents** + +.. contents:: + :local: + +Known issues / Roadmap +====================== + +- National number should be editable from the cooperator portal. Indeed, if the national number is required and was not provided on the first subscription, a cooperator will not be able to subscribe more shares from the website form. +- Note that since the check on the Belgian national number is enforced upon validation, it is possible to submit the request form with an invalid national number. + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Coop IT Easy SC + +Contributors +~~~~~~~~~~~~ + +* Coop IT Easy SC + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/cooperative `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_be_cooperator_website_national_number/__init__.py b/l10n_be_cooperator_website_national_number/__init__.py new file mode 100644 index 000000000..e046e49fb --- /dev/null +++ b/l10n_be_cooperator_website_national_number/__init__.py @@ -0,0 +1 @@ +from . import controllers diff --git a/l10n_be_cooperator_website_national_number/__manifest__.py b/l10n_be_cooperator_website_national_number/__manifest__.py new file mode 100644 index 000000000..5cb5be22c --- /dev/null +++ b/l10n_be_cooperator_website_national_number/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2018 Coop IT Easy SC () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).# +{ + "name": "Belgium: Cooperator Website National Number", + "summary": """ + Ask for Belgian National Number in Cooperative + Subscription Request Frontend Form. + """, + "version": "16.0.1.0.0", + "depends": [ + "l10n_be_cooperator_national_number", + "l10n_be_cooperator", + "cooperator_website", + ], + "author": "Coop IT Easy SC, Odoo Community Association (OCA)", + "category": "Cooperative management", + "website": "https://github.com/OCA/cooperative", + "license": "AGPL-3", + "data": ["views/subscription_template.xml"], + "demo": [], +} diff --git a/l10n_be_cooperator_website_national_number/controllers/__init__.py b/l10n_be_cooperator_website_national_number/controllers/__init__.py new file mode 100644 index 000000000..12a7e529b --- /dev/null +++ b/l10n_be_cooperator_website_national_number/controllers/__init__.py @@ -0,0 +1 @@ +from . import main diff --git a/l10n_be_cooperator_website_national_number/controllers/main.py b/l10n_be_cooperator_website_national_number/controllers/main.py new file mode 100644 index 000000000..fa740568b --- /dev/null +++ b/l10n_be_cooperator_website_national_number/controllers/main.py @@ -0,0 +1,26 @@ +from odoo.http import request + +from odoo.addons.cooperator_website.controllers.main import WebsiteSubscription + + +class WebsiteSubscription(WebsiteSubscription): + def get_values_from_user(self, values, is_company): + values = super().get_values_from_user(values, is_company) + if request.env.user.login != "public": + partner = request.env.user.partner_id + company = request.env.company + if not is_company and company.require_national_number: + national_number_id_category = request.env.ref( + "l10n_be_partner_identification.l10n_be_national_registry_number_category" + ).id + national_number = partner.id_numbers.filtered( + lambda id_num: id_num.category_id.id == national_number_id_category + ).name + values["national_number"] = national_number + return values + + def fill_values(self, values, is_company, logged, load_from_user=False): + values = super().fill_values(values, is_company, logged, load_from_user) + if not is_company and request.env.company.require_national_number: + values["national_number_required"] = True + return values diff --git a/l10n_be_cooperator_website_national_number/i18n/l10n_be_cooperator_national_number.pot b/l10n_be_cooperator_website_national_number/i18n/l10n_be_cooperator_national_number.pot new file mode 100644 index 000000000..8e8141448 --- /dev/null +++ b/l10n_be_cooperator_website_national_number/i18n/l10n_be_cooperator_national_number.pot @@ -0,0 +1,880 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_be_cooperator +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: l10n_be_cooperator +#: model:mail.template,body_html:l10n_be_cooperator.email_template_tax_shelter_certificate +msgid "\n" +"
\n" +"

Hello ${object.partner_id.name},

\n" +"\n" +"

You have subscribed to some shares of ${object.company_id.name} on ${object.declaration_id.fiscal_year}.\n" +" You can benefit from the tax shelter, it means a tax reduction of ${object.declaration_id.tax_shelter_percentage} percent on the invested amount.\n" +" For this you will find in attachments the documents certifying that you've suscribed to ${object.company_id.name} shares

\n" +"

A dedicated FAQ is coming soon on ${object.company_id.website}.

\n" +"

For any additional questions, please contact ${object.company_id.coop_email_contact}

\n" +"

Sustainably yours,

\n" +"

${object.company_id.name}.

\n" +"\n" +" % if object.company_id.street:\n" +" ${object.company_id.street}\n" +" % endif\n" +" % if object.company_id.street2:\n" +" ${object.company_id.street2}
\n" +" % endif\n" +" % if object.company_id.city or object.company_id.zip:\n" +" ${object.company_id.zip} ${object.company_id.city}
\n" +" % endif\n" +" % if object.company_id.country_id:\n" +" ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}
\n" +" % endif\n" +" % if object.company_id.phone:\n" +" Phone:  ${object.company_id.phone}\n" +" % endif\n" +"\n" +" % if object.company_id.website:\n" +"
\n" +" Web : ${object.company_id.website}\n" +"
\n" +" %endif\n" +"\n" +"
\n" +" \n" +"
\n" +"
\n" +" " +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "(et avant" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +msgid ",\n" +" vous êtes devenu coopérateur de" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +msgid ",\n" +" vous êtes toujours en possession de parts de" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid ", connu aussi\n" +" comme normative Tax Shelter, donnent droit à une réduction\n" +" d'impôt à hauteur de" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:tax.shelter.declaration,tax_shelter_percentage:0 +msgid "30%" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:tax.shelter.declaration,tax_shelter_percentage:0 +msgid "45%" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Déclaration Tax Shelter" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +msgid "Déclaration Tax Shelter\n" +"
\n" +" \n" +" Attestation concernant une des quatre années suivant\n" +" l'acquisition de parts\n" +" " +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "ASBL" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__access_warning +msgid "Access warning" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Amount" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__amount_resold +msgid "Amount resold" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__amount_subscribed +msgid "Amount subscribed" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__amount_subscribed_eligible +msgid "Amount subscribed eligible" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__amount_transfered +msgid "Amount transfered" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Association" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.iban_template_be +msgid "BE4852308076712" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.iban_template_be +msgid "Bank Account Number" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Capital after" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__capital_after_sub +msgid "Capital after subscription" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Capital before" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__capital_before_sub +msgid "Capital before subscription" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__capital_limit +msgid "Capital limit" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__previously_subscribed_capital +msgid "Capital previously subscribed" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__lines +msgid "Certificate lines" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +msgid "Cette lettre confirme qu'en date du" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Cette lettre vaut donc comme certificat que" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Cher membre," +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__company_id +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__company_id +msgid "Company" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_subscription_request__company_type +msgid "Company type" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Company under public law" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:tax.shelter.declaration,state:0 +msgid "Computed" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model,name:l10n_be_cooperator.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Cooperative" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__partner_id +msgid "Cooperator" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__cooperator_number +msgid "Cooperator number" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Cooperator number:" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__create_uid +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__create_uid +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__create_uid +msgid "Created by" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__create_date +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__create_date +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__create_date +msgid "Created on" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,help:l10n_be_cooperator.field_tax_shelter_certificate__access_url +msgid "Customer Portal URL" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Date" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__date_from +msgid "Date from" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__date_to +msgid "Date to" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__declaration_id +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__declaration_id +#: model:ir.ui.menu,name:l10n_be_cooperator.main_declaration_menu +msgid "Declaration" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__name +msgid "Declaration year" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__display_name +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__display_name +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__display_name +msgid "Display Name" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:tax.shelter.certificate,state:0 +#: selection:tax.shelter.declaration,state:0 +msgid "Draft" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Durant l'année" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "EURL / Entreprise individuelle" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Eligible amount" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model,name:l10n_be_cooperator.model_mail_template +msgid "Email Templates" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__excluded_cooperator +msgid "Excluded cooperator" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_form +msgid "Excluded from Tax shelter" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__fiscal_year +msgid "Fiscal year" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Foundation" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__id +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__id +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__id +msgid "ID" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,help:l10n_be_cooperator.field_tax_shelter_declaration__excluded_cooperator +msgid "If these cooperator have subscribed share during the time frame of this Tax Shelter Declaration. They will be marked as non eligible" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Individual company" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:certificate.line,type:0 +msgid "Kept" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "L'Article 145/26, CIR 92 sur les revenus" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "L'apport de capitaux par le chef d'entreprise lui-même ou\n" +" par des administrateurs existants de la société ne permet\n" +" pas de bénéficier du tax shelter." +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line____last_update +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate____last_update +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration____last_update +msgid "Last Modified on" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__write_uid +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__write_uid +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__write_date +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__write_date +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__write_date +msgid "Last Updated on" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Le maintien de la réduction d'impôt n'est possible que si\n" +" l'investisseur conserve les parts de la coopérative pendant\n" +" 4 ans au minimum, sauf si la sortie est imposée par des\n" +" conditions extérieures (telles que la faillite, par\n" +" exemple). En cas de sortie volontaire avant la période de 4\n" +" ans, l'avantage fiscal devra être remboursé au prorata du\n" +" nombre de mois entre la sortie et les 4 ans. La coopérative\n" +" s'engage à fournir pour chacune des quatre années suivant\n" +" l'année d'acquisition une attestation certifiant que ces\n" +" parts sont toujours en possession du souscripteur." +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_res_partner__legal_form +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_res_users__legal_form +msgid "Legal form" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__month_from +msgid "Month from" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__month_to +msgid "Month to" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "No" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:tax.shelter.certificate,state:0 +msgid "No eligible" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__quantity +msgid "Number of shares" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +msgid "Numéro de coopérateur :" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Partnership" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__access_url +msgid "Portal Access URL" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Pour bénéficier de la réduction d'impôts, vous pouvez\n" +" joindre cette lettre à votre déclaration fiscale pour les\n" +" revenus" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Pour le Conseil d'administration de" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Pour toute information complémentaire, consultez le texte de\n" +" l'Arrêté Royal." +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__previously_subscribed_eligible_lines +msgid "Previously Subscribed eligible lines" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__previously_subscribed_lines +msgid "Previously Subscribed lines" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_view_form +msgid "Previously subscribed" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_view_form +msgid "Print Shares Certificate" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_view_form +msgid "Print Subscription Certificate" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_form +msgid "Process Declaration" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_form +msgid "Reset Declaration" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:certificate.line,type:0 +msgid "Resold" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "SA / SAS" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "SARL" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "SCRL" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "SPRL" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__access_token +msgid "Security Token" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_view_form +msgid "Sell back" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_view_form +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_form +msgid "Send Certificates" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:tax.shelter.certificate,state:0 +msgid "Sent" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__share_unit_price +msgid "Share price" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__share_type +msgid "Share type" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__share_short_name +msgid "Share type name" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__resold_lines +msgid "Shares resold" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__subscribed_lines +msgid "Shares subscribed" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__transfered_lines +msgid "Shares transfered" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__state +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__state +msgid "State" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:certificate.line,type:0 +msgid "Subscribed" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_view_form +msgid "Subscription" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model,name:l10n_be_cooperator.model_subscription_request +msgid "Subscription Request" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model,name:l10n_be_cooperator.model_tax_shelter_certificate +#: model:mail.template,subject:l10n_be_cooperator.email_template_tax_shelter_certificate +msgid "Tax Shelter Certificate" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model,name:l10n_be_cooperator.model_certificate_line +msgid "Tax Shelter Certificate Line" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.actions.act_window,name:l10n_be_cooperator.tax_shelter_certificate_action +#: model:ir.ui.menu,name:l10n_be_cooperator.tax_shelter_certificate_menu +msgid "Tax Shelter Certificates" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model,name:l10n_be_cooperator.model_tax_shelter_declaration +#: model:ir.ui.menu,name:l10n_be_cooperator.tax_shelter_declaration_menu +msgid "Tax Shelter Declaration" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.actions.act_window,name:l10n_be_cooperator.tax_shelter_declaration_action +msgid "Tax Shelter Declarations" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__tax_shelter_percentage +msgid "Tax Shelter percentage" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__tax_shelter_capital_limit +msgid "Tax shelter capital limit" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__tax_shelter_certificate +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_view_form +msgid "Tax shelter certificate" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_declaration__tax_shelter_certificates +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_tree +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_form +msgid "Tax shelter certificates" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_form +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_tree +msgid "Tax shelter declaration" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__tax_shelter +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Tax shelter eligible" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.actions.server,name:l10n_be_cooperator.ir_cron_mail_tax_shelter_action_ir_actions_server +#: model:ir.cron,cron_name:l10n_be_cooperator.ir_cron_mail_tax_shelter_action +#: model:ir.cron,name:l10n_be_cooperator.ir_cron_mail_tax_shelter_action +msgid "Tax shelter mail batch mail" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.actions.report,name:l10n_be_cooperator.action_tax_shelter_shares_report +msgid "Tax shelter shares report" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.actions.report,name:l10n_be_cooperator.action_tax_shelter_subscription_report +msgid "Tax shelter subscription report" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__total_amount +msgid "Total" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_form +msgid "Total amount" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__total_amount_eligible +msgid "Total amount eligible To Tax shelter" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__total_amount_eligible_previously_subscribed +msgid "Total eligible previously subscribed" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__total_amount_previously_subscribed +msgid "Total previously subscribed" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__total_amount_resold +msgid "Total resold" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__total_amount_subscribed +msgid "Total subscribed" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_tax_shelter_certificate__total_amount_transfered +msgid "Total transfered" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__transaction_date +msgid "Transaction date" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:certificate.line,type:0 +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_certificate_view_form +msgid "Transfered" +msgstr "" + +#. module: l10n_be_cooperator +#: model:ir.model.fields,field_description:l10n_be_cooperator.field_certificate_line__type +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Type" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_declaration_view_form +msgid "Validate Declaration" +msgstr "" + +#. module: l10n_be_cooperator +#: selection:tax.shelter.certificate,state:0 +#: selection:tax.shelter.declaration,state:0 +msgid "Validated" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "Yes" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "du montant de la valeur des parts souscrites depuis" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +msgid "euros et que la condition prévue à l'article 145(26), §3,\n" +" alinéa 2, CIR92 est remplie." +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "euros.\n" +"
" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "euros.\n" +"
\n" +" Le montant éligible pour le Tax shelter est de" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "la moyenne des travailleurs occupés pendant l'année\n" +" est inférieure ou égale à 10." +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "le chiffre d'affaires, hors taxe sur la valeur\n" +" ajoutée, est inférieur ou égal à 700.000 euros ;" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "le total du bilan est inférieur ou égal à 350.000\n" +" euros ;" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "pour la déclaration des revenus" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "pour un montant total de" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "remplit en effet tous les critères permettant un tel\n" +" avantage fiscal. Dans les grandes lignes il faut être une\n" +" micro-entreprise n'ayant encore jamais distribué de\n" +" dividende et qui n'est pas issue d'une fusion ou scission de\n" +" sociétés et qui répond à au moins deux des trois critères\n" +" suivants :" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_subscription_document +msgid "vous avez souscrit des parts de" +msgstr "" + +#. module: l10n_be_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator.tax_shelter_report_shares_document +msgid "À la date du" +msgstr "" + diff --git a/l10n_be_cooperator_website_national_number/i18n/l10n_be_cooperator_website_national_number.pot b/l10n_be_cooperator_website_national_number/i18n/l10n_be_cooperator_website_national_number.pot new file mode 100644 index 000000000..90fa1e4f1 --- /dev/null +++ b/l10n_be_cooperator_website_national_number/i18n/l10n_be_cooperator_website_national_number.pot @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_be_cooperator_website_national_number +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: l10n_be_cooperator_website_national_number +#: model_terms:ir.ui.view,arch_db:l10n_be_cooperator_website_national_number.national_number_template +msgid "National Number" +msgstr "" + diff --git a/l10n_be_cooperator_website_national_number/readme/CONTRIBUTORS.rst b/l10n_be_cooperator_website_national_number/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..8c568398a --- /dev/null +++ b/l10n_be_cooperator_website_national_number/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Coop IT Easy SC diff --git a/l10n_be_cooperator_website_national_number/readme/DESCRIPTION.rst b/l10n_be_cooperator_website_national_number/readme/DESCRIPTION.rst new file mode 100644 index 000000000..cd56da0cc --- /dev/null +++ b/l10n_be_cooperator_website_national_number/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Ask for Belgian National Number in Cooperative Subscription Request Frontend Form. diff --git a/l10n_be_cooperator_website_national_number/readme/ROADMAP.rst b/l10n_be_cooperator_website_national_number/readme/ROADMAP.rst new file mode 100644 index 000000000..ecc876135 --- /dev/null +++ b/l10n_be_cooperator_website_national_number/readme/ROADMAP.rst @@ -0,0 +1,2 @@ +- National number should be editable from the cooperator portal. Indeed, if the national number is required and was not provided on the first subscription, a cooperator will not be able to subscribe more shares from the website form. +- Note that since the check on the Belgian national number is enforced upon validation, it is possible to submit the request form with an invalid national number. diff --git a/l10n_be_cooperator_website_national_number/static/description/icon.png b/l10n_be_cooperator_website_national_number/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/l10n_be_cooperator_website_national_number/static/description/icon.png differ diff --git a/l10n_be_cooperator_website_national_number/static/description/index.html b/l10n_be_cooperator_website_national_number/static/description/index.html new file mode 100644 index 000000000..f7e77479b --- /dev/null +++ b/l10n_be_cooperator_website_national_number/static/description/index.html @@ -0,0 +1,429 @@ + + + + + + +Belgium: Cooperator Website National Number + + + +
+

Belgium: Cooperator Website National Number

+ + +

Beta License: AGPL-3 OCA/cooperative Translate me on Weblate Try me on Runboat

+

Ask for Belgian National Number in Cooperative Subscription Request Frontend Form.

+

Table of contents

+ +
+

Known issues / Roadmap

+
    +
  • National number should be editable from the cooperator portal. Indeed, if the national number is required and was not provided on the first subscription, a cooperator will not be able to subscribe more shares from the website form.
  • +
  • Note that since the check on the Belgian national number is enforced upon validation, it is possible to submit the request form with an invalid national number.
  • +
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Coop IT Easy SC
  • +
+
+
+

Contributors

+
    +
  • Coop IT Easy SC
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/cooperative project on GitHub.

+

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

+
+
+
+ + diff --git a/l10n_be_cooperator_website_national_number/views/subscription_template.xml b/l10n_be_cooperator_website_national_number/views/subscription_template.xml new file mode 100644 index 000000000..9640de764 --- /dev/null +++ b/l10n_be_cooperator_website_national_number/views/subscription_template.xml @@ -0,0 +1,37 @@ + + + + + + + diff --git a/setup/l10n_be_cooperator_national_number/odoo/addons/l10n_be_cooperator_national_number b/setup/l10n_be_cooperator_national_number/odoo/addons/l10n_be_cooperator_national_number new file mode 120000 index 000000000..92ca75108 --- /dev/null +++ b/setup/l10n_be_cooperator_national_number/odoo/addons/l10n_be_cooperator_national_number @@ -0,0 +1 @@ +../../../../l10n_be_cooperator_national_number \ No newline at end of file diff --git a/setup/l10n_be_cooperator_national_number/setup.py b/setup/l10n_be_cooperator_national_number/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/l10n_be_cooperator_national_number/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/setup/l10n_be_cooperator_website_national_number/odoo/addons/l10n_be_cooperator_website_national_number b/setup/l10n_be_cooperator_website_national_number/odoo/addons/l10n_be_cooperator_website_national_number new file mode 120000 index 000000000..87698cb0d --- /dev/null +++ b/setup/l10n_be_cooperator_website_national_number/odoo/addons/l10n_be_cooperator_website_national_number @@ -0,0 +1 @@ +../../../../l10n_be_cooperator_website_national_number \ No newline at end of file diff --git a/setup/l10n_be_cooperator_website_national_number/setup.py b/setup/l10n_be_cooperator_website_national_number/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/l10n_be_cooperator_website_national_number/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)