Skip to content

Commit

Permalink
run precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Feb 13, 2024
1 parent 86c73d7 commit 8353caa
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 28 deletions.
22 changes: 21 additions & 1 deletion l10n_be_cooperator/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Cooperators Belgium
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dd06a84d22cd6d2a09020b50b7f63e85420bf4b1f43481fcbf1be917d45afdb3
!! source digest: sha256:9e3b23f0f8fb15ec19a68f1ea2ec4f2cc4e2b730d802a0c071dd221ae96640bc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -42,6 +42,26 @@ Features:
.. contents::
:local:

Known issues / Roadmap
======================

**Tax shelter :**

According to
`this <https://eservices.minfin.fgov.be/myminfin-web/pages/public/fisconet/document/7049b083-3ae7-4250-bb35-c00b9130fb02#_VI._Documents_justificatifs>`__
administration FAQ on tax shelter for scaleups (translated to english):

31. A royal decree (to be issued) will determine the manner in which
evidence is to be provided and that the proof that the company in
growth fulfills the criterion of growth of turnover or full-time
equivalents.

In the attestation template from the administration, there is currently
some information on annual sales and number of employee for the past two
years before the fiscal year. It’s a lot of information to add to the
declaration. Since the legal situation seems still uncertain, we might
wait before adding this information in the report.

Changelog
=========

Expand Down
12 changes: 9 additions & 3 deletions l10n_be_cooperator/data/mail_template_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ SPDX-License-Identifier: AGPL-3.0-or-later
You have subscribed to some shares of <t t-out="object.company_id.name" />
during the year <t t-out="object.declaration_id.fiscal_year" />.
You can benefit from the tax shelter, it means a tax reduction of
<span t-if="object.declaration_id.tax_shelter_report_type=='scale_up'">25%</span>
<span t-if="object.declaration_id.tax_shelter_report_type=='start_up_small'">30%</span>
<span t-if="object.declaration_id.tax_shelter_report_type=='start_up_micro'">45%</span>
<span
t-if="object.declaration_id.tax_shelter_report_type=='scale_up'"
>25%</span>
<span
t-if="object.declaration_id.tax_shelter_report_type=='start_up_small'"
>30%</span>
<span
t-if="object.declaration_id.tax_shelter_report_type=='start_up_micro'"
>45%</span>
percent on
the invested amount.
For this you will find in attachment the documents certifying that
Expand Down
13 changes: 4 additions & 9 deletions l10n_be_cooperator/models/tax_shelter_declaration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,20 @@ class TaxShelterDeclaration(models.Model):
_description = "Tax Shelter Declaration"

name = fields.Char(string="Declaration year", required=True)
fiscal_year = fields.Char(string="Fiscal year", required=True)
fiscal_year = fields.Char(required=True)
tax_shelter_certificates = fields.One2many(
"tax.shelter.certificate",
"declaration_id",
string="Tax shelter certificates",
readonly=True,
)
date_from = fields.Date(string="Date from", required=True)
date_to = fields.Date(string="Date to", required=True)
date_from = fields.Date(required=True)
date_to = fields.Date(required=True)
tax_shelter_report_type = fields.Selection(
[
("scale_up", _("25% - Scale-up")),
("start_up_small", _("30% - Start-up (petite société)")),
("start_up_micro", _("45% - Start-up (micro société)")),
],
string="Tax Shelter Report Type",
required=True,
)

Expand All @@ -53,15 +51,12 @@ class TaxShelterDeclaration(models.Model):
readonly=True,
default=lambda self: self.env.company,
)
tax_shelter_capital_limit = fields.Float(
string="Tax shelter capital limit", required=True
)
tax_shelter_capital_limit = fields.Float(required=True)
previously_subscribed_capital = fields.Float(
string="Capital previously subscribed", readonly=True
)
excluded_cooperator = fields.Many2many(
"res.partner",
string="Excluded cooperator",
domain=[("cooperator", "=", True)],
help="If these cooperator have"
" subscribed share during the time"
Expand Down
51 changes: 36 additions & 15 deletions l10n_be_cooperator/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Cooperators Belgium</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dd06a84d22cd6d2a09020b50b7f63e85420bf4b1f43481fcbf1be917d45afdb3
!! source digest: sha256:9e3b23f0f8fb15ec19a68f1ea2ec4f2cc4e2b730d802a0c071dd221ae96640bc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/cooperative/tree/16.0/l10n_be_cooperator"><img alt="OCA/cooperative" src="https://img.shields.io/badge/github-OCA%2Fcooperative-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-l10n_be_cooperator"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/cooperative&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This is the Belgian localization for the Cooperators module.</p>
Expand All @@ -381,23 +381,44 @@ <h1 class="title">Cooperators Belgium</h1>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#changelog" id="toc-entry-1">Changelog</a><ul>
<li><a class="reference internal" href="#section-1" id="toc-entry-2">16.0.1.0.0 (2023-12-04)</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-1">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#changelog" id="toc-entry-2">Changelog</a><ul>
<li><a class="reference internal" href="#section-1" id="toc-entry-3">16.0.1.0.0 (2023-12-04)</a></li>
</ul>
</li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-4">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-5">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-6">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-7">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-1">Known issues / Roadmap</a></h1>
<p><strong>Tax shelter :</strong></p>
<p>According to
<a class="reference external" href="https://eservices.minfin.fgov.be/myminfin-web/pages/public/fisconet/document/7049b083-3ae7-4250-bb35-c00b9130fb02#_VI._Documents_justificatifs">this</a>
administration FAQ on tax shelter for scaleups (translated to english):</p>
<blockquote>
<ol class="arabic simple" start="31">
<li>A royal decree (to be issued) will determine the manner in which
evidence is to be provided and that the proof that the company in
growth fulfills the criterion of growth of turnover or full-time
equivalents.</li>
</ol>
</blockquote>
<p>In the attestation template from the administration, there is currently
some information on annual sales and number of employee for the past two
years before the fiscal year. It’s a lot of information to add to the
declaration. Since the legal situation seems still uncertain, we might
wait before adding this information in the report.</p>
</div>
<div class="section" id="changelog">
<h1><a class="toc-backref" href="#toc-entry-1">Changelog</a></h1>
<h1><a class="toc-backref" href="#toc-entry-2">Changelog</a></h1>
<div class="section" id="section-1">
<h2><a class="toc-backref" href="#toc-entry-2">16.0.1.0.0 (2023-12-04)</a></h2>
<h2><a class="toc-backref" href="#toc-entry-3">16.0.1.0.0 (2023-12-04)</a></h2>
<p><strong>Features</strong></p>
<ul class="simple">
<li>Move classes to separate files and rename some files to improve consistency. (<a class="reference external" href="https://github.com/OCA/cooperative/issues/89">#89</a>)</li>
Expand All @@ -415,29 +436,29 @@ <h2><a class="toc-backref" href="#toc-entry-2">16.0.1.0.0 (2023-12-04)</a></h2>
</div>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/cooperative/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/cooperative/issues/new?body=module:%20l10n_be_cooperator%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<h1><a class="toc-backref" href="#toc-entry-5">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-6">Authors</a></h2>
<ul class="simple">
<li>Coop IT Easy SC</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
<ul class="simple">
<li>Coop IT Easy SC</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
Expand Down

0 comments on commit 8353caa

Please sign in to comment.