-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: siren/siret fields are not displayed according to a boolean comp…
…uted field
- Loading branch information
1 parent
2635afb
commit 2a5033d
Showing
12 changed files
with
109 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,15 +32,15 @@ The **l10n_fr** module from the official addons adds a *SIRET* field on | |
partners, but it doesn't verify its validity. This module | ||
**l10n_fr_siret** adds several features: | ||
|
||
- the validity of the SIRET is checked using its checksum. | ||
- it adds **SIREN** and **NIC** fields (reminder: SIREN + NIC = SIRET). | ||
If you enter the SIRET, these 2 fields are automatically computed | ||
from SIRET. | ||
- multi-site companies have a single SIREN and one SIRET per site i.e. | ||
one NIC per site. This module allows to enter a specific NIC on child | ||
partners. | ||
- it adds a warning banner on the partner form view if another partner | ||
has the same SIREN. | ||
- the validity of the SIRET is checked using its checksum. | ||
- it adds **SIREN** and **NIC** fields (reminder: SIREN + NIC = SIRET). | ||
If you enter the SIRET, these 2 fields are automatically computed from | ||
SIRET. | ||
- multi-site companies have a single SIREN and one SIRET per site i.e. | ||
one NIC per site. This module allows to enter a specific NIC on child | ||
partners. | ||
- it adds a warning banner on the partner form view if another partner | ||
has the same SIREN. | ||
|
||
|image1| | ||
|
||
|
@@ -67,6 +67,10 @@ specific company: is in the same company or is not attached to a | |
specific company, - if the partner is not attached to a specific | ||
company: is in any company or not attached to a specific company. | ||
|
||
On the country form, users will be able to select if SIREN/SIRET fields | ||
have to be displayed or not on the partner's form when the country is | ||
selected. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
|
@@ -89,8 +93,8 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Lionel Sausin (Numérigraphe) <[email protected]> | ||
- Alexis de Lattre <[email protected]> | ||
- Lionel Sausin (Numérigraphe) <[email protected]> | ||
- Alexis de Lattre <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from . import res_partner | ||
from . import res_company | ||
from . import res_country |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright 2025 Foodles (https://www.foodles.co/). | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResCountry(models.Model): | ||
_inherit = "res.country" | ||
|
||
show_siret_fields = fields.Boolean(default=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ | |
|
||
/* | ||
:Author: David Goodger ([email protected]) | ||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ | ||
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ | ||
:Copyright: This stylesheet has been placed in the public domain. | ||
Default cascading style sheet for the HTML output of Docutils. | ||
Despite the name, some widely supported CSS2 features are used. | ||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to | ||
customize this style sheet. | ||
|
@@ -274,7 +275,7 @@ | |
margin-left: 2em ; | ||
margin-right: 2em } | ||
|
||
pre.code .ln { color: grey; } /* line numbers */ | ||
pre.code .ln { color: gray; } /* line numbers */ | ||
pre.code, code { background-color: #eeeeee } | ||
pre.code .comment, code .comment { color: #5C6576 } | ||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } | ||
|
@@ -300,7 +301,7 @@ | |
span.pre { | ||
white-space: pre } | ||
|
||
span.problematic { | ||
span.problematic, pre.problematic { | ||
color: red } | ||
|
||
span.section-subtitle { | ||
|
@@ -375,8 +376,8 @@ <h1 class="title">French company identity numbers SIRET/SIREN/NIC</h1> | |
<ul class="simple"> | ||
<li>the validity of the SIRET is checked using its checksum.</li> | ||
<li>it adds <strong>SIREN</strong> and <strong>NIC</strong> fields (reminder: SIREN + NIC = SIRET). | ||
If you enter the SIRET, these 2 fields are automatically computed | ||
from SIRET.</li> | ||
If you enter the SIRET, these 2 fields are automatically computed from | ||
SIRET.</li> | ||
<li>multi-site companies have a single SIREN and one SIRET per site i.e. | ||
one NIC per site. This module allows to enter a specific NIC on child | ||
partners.</li> | ||
|
@@ -409,6 +410,9 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1> | |
specific company: is in the same company or is not attached to a | ||
specific company, - if the partner is not attached to a specific | ||
company: is in any company or not attached to a specific company.</p> | ||
<p>On the country form, users will be able to select if SIREN/SIRET fields | ||
have to be displayed or not on the partner’s form when the country is | ||
selected.</p> | ||
</div> | ||
<div class="section" id="bug-tracker"> | ||
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1> | ||
|
@@ -437,7 +441,9 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2> | |
<div class="section" id="maintainers"> | ||
<h2><a class="toc-backref" href="#toc-entry-6">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> | ||
<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 | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright 2022-2025 Foodles (https://www.foodles.co/). | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
<record model="ir.ui.view" id="res_country_form_l10n_fr"> | ||
<field name="name">res.country.form.siret</field> | ||
<field name="model">res.country</field> | ||
<field name="inherit_id" ref="base.view_country_form" /> | ||
<field name="priority">100</field> | ||
<field name="arch" type="xml"> | ||
<field name="vat_label" position="after"> | ||
<field name="show_siret_fields" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters