Skip to content

Commit 7ac6173

Browse files
yajoremi-filament
authored andcommitted
[FIX] l10n_fr_siret[_lookup]: remove wrong dependency
Odoo 16 depends on both requests and python-stdnum, so there's no need to specify those dependencies. Besides, [python-stdnum is pinned to 1.16][1]. Thus, when applying OCA/oca-ci#66 locally, the constraint failed. OCA addons should work with the dependencies pinned upstream. [1]: https://github.com/odoo/odoo/blob/fe4d8e8014e50d4335e0a8b052b5098f3a79bcec/requirements.txt#L48 @moduon MT-4520
1 parent b21c08d commit 7ac6173

4 files changed

Lines changed: 36 additions & 23 deletions

File tree

l10n_fr_siret_lookup/README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SIRET Lookup
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:03fba67efc8266229377bb6b509fc696ca15a5c46eef0db0a8d749d51c7d7cdd
10+
!! source digest: sha256:70c4e94fae284e28a826b5355bb04f508aa26456a237485ffd5ff870dfa25832
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -51,6 +51,11 @@ In the 2 scenarios, it will update the following fields:
5151
.. contents::
5252
:local:
5353

54+
Installation
55+
============
56+
57+
It's recommended to install ``python-stdnum>=1.18`` for SIRET support.
58+
5459
Usage
5560
=====
5661

l10n_fr_siret_lookup/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "SIRET Lookup",
77
"summary": "Lookup partner via an API on the SIRENE directory",
8-
"version": "16.0.1.0.0",
8+
"version": "16.0.1.1.0",
99
"category": "Partner",
1010
"website": "https://github.com/OCA/l10n-france",
1111
"author": "Le Filament, Akretion, Odoo Community Association (OCA)",
@@ -14,7 +14,7 @@
1414
"depends": [
1515
"l10n_fr_siret",
1616
],
17-
"external_dependencies": {"python": ["requests", "python-stdnum>=1.18"]},
17+
"external_dependencies": {"python": ["requests", "python-stdnum"]},
1818
"data": [
1919
"wizard/fr_siret_lookup_view.xml",
2020
"views/res_partner.xml",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
It's recommended to install ``python-stdnum>=1.18`` for SIRET support.

l10n_fr_siret_lookup/static/description/index.html

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -367,7 +367,7 @@ <h1 class="title">SIRET Lookup</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:03fba67efc8266229377bb6b509fc696ca15a5c46eef0db0a8d749d51c7d7cdd
370+
!! source digest: sha256:70c4e94fae284e28a826b5355bb04f508aa26456a237485ffd5ff870dfa25832
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<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/l10n-france/tree/16.0/l10n_fr_siret_lookup"><img alt="OCA/l10n-france" src="https://img.shields.io/badge/github-OCA%2Fl10n--france-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_siret_lookup"><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/l10n-france&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This modules updates partner fields via the <cite>SIRENE database &lt;https://data.opendatasoft.com&gt;</cite>. It uses the dataset <em>economicref-france-sirene-v3</em> of <cite>opendatasoft &lt;https://public.opendatasoft.com/explore/dataset/economicref-france-sirene-v3/information/&gt;</cite>. It computes a theorical VAT number from the SIREN and then checks the validity of the VAT number on <a class="reference external" href="https://ec.europa.eu/taxation_customs/vies/">VIES</a> (if invalid, the VAT number is discarded).</p>
@@ -390,59 +390,66 @@ <h1 class="title">SIRET Lookup</h1>
390390
<p><strong>Table of contents</strong></p>
391391
<div class="contents local topic" id="contents">
392392
<ul class="simple">
393-
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
394-
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
395-
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
396-
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
397-
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
398-
<li><a class="reference internal" href="#other-credits" id="toc-entry-6">Other credits</a></li>
399-
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
393+
<li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li>
394+
<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
395+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
396+
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
397+
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
398+
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
399+
<li><a class="reference internal" href="#other-credits" id="toc-entry-7">Other credits</a></li>
400+
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
400401
</ul>
401402
</li>
402403
</ul>
403404
</div>
405+
<div class="section" id="installation">
406+
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
407+
<p>It’s recommended to install <tt class="docutils literal"><span class="pre">python-stdnum&gt;=1.18</span></tt> for SIRET support.</p>
408+
</div>
404409
<div class="section" id="usage">
405-
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
410+
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
406411
<p>To update an existing parter, go to the partner form view and click on <em>Action &gt; SIREN Lookup</em>.</p>
407412
<p>By default, the search field is filled with Company name. To get more accurate results, you may want to add the City name where the company is registered. Then click on <em>Lookup</em>.</p>
408413
<p>A list of company is displayed. You may want to click on one in order to see corresponding information or directly selecting company from tree view. Once a company is selected, the partner information is updated and a message is logged in the chatter.</p>
409414
</div>
410415
<div class="section" id="bug-tracker">
411-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
416+
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
412417
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-france/issues">GitHub Issues</a>.
413418
In case of trouble, please check there if your issue has already been reported.
414419
If you spotted it first, help us to smash it by providing a detailed and welcomed
415420
<a class="reference external" href="https://github.com/OCA/l10n-france/issues/new?body=module:%20l10n_fr_siret_lookup%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
416421
<p>Do not contact contributors directly about support or help with technical issues.</p>
417422
</div>
418423
<div class="section" id="credits">
419-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
424+
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
420425
<div class="section" id="authors">
421-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
426+
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
422427
<ul class="simple">
423428
<li>Le Filament</li>
424429
<li>Akretion</li>
425430
</ul>
426431
</div>
427432
<div class="section" id="contributors">
428-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
433+
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
429434
<ul class="simple">
430435
<li>Benjamin Rivier &lt;benjamin-filament&gt; (<a class="reference external" href="https://le-filament.com">https://le-filament.com</a>)</li>
431436
<li>Remi Cazenave &lt;remi-filament&gt; (<a class="reference external" href="https://le-filament.com">https://le-filament.com</a>)</li>
432437
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
433438
</ul>
434439
</div>
435440
<div class="section" id="other-credits">
436-
<h2><a class="toc-backref" href="#toc-entry-6">Other credits</a></h2>
441+
<h2><a class="toc-backref" href="#toc-entry-7">Other credits</a></h2>
437442
<p>The development of this module has been financially supported by:</p>
438443
<ul class="simple">
439444
<li>Le Filament</li>
440445
</ul>
441446
</div>
442447
<div class="section" id="maintainers">
443-
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
448+
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
444449
<p>This module is maintained by the OCA.</p>
445-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
450+
<a class="reference external image-reference" href="https://odoo-community.org">
451+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
452+
</a>
446453
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
447454
mission is to support the collaborative development of Odoo features and
448455
promote its widespread use.</p>

0 commit comments

Comments
 (0)