Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18.0 mig l10n fr siret lookup #579

Open
wants to merge 20 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 139 additions & 0 deletions l10n_fr_siret_lookup/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
============
SIRET Lookup
============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:03fba67efc8266229377bb6b509fc696ca15a5c46eef0db0a8d749d51c7d7cdd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fl10n--france-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-france/tree/18.0/l10n_fr_siret_lookup
:alt: OCA/l10n-france
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-france-18-0/l10n-france-18-0-l10n_fr_siret_lookup
: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/l10n-france&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This modules updates partner fields via the SIRENE database
<https://data.opendatasoft.com>. It uses the dataset
*economicref-france-sirene-v3* of opendatasoft
<https://public.opendatasoft.com/explore/dataset/economicref-france-sirene-v3/information/>.
It computes a theorical VAT number from the SIREN and then checks the
validity of the VAT number on
`VIES <https://ec.europa.eu/taxation_customs/vies/>`__ (if invalid, the
VAT number is discarded).

The module supports 2 scenarios:

- update of an existing partner via the menu *Action > SIREN Lookup*,
- creation of a new partner: start by setting the VAT number field, the
SIREN field or SIRET field and Odoo will set the other fields. For
usability purposes, it also work when you write the VAT number, SIREN
or SIRET in the company name field.

In the 2 scenarios, it will update the following fields:

- Company Name
- Street
- Postal Code
- City
- Country
- SIREN and NIC (i.e. SIRET)
- VAT Number
- Language (creation scenario only)

**Table of contents**

.. contents::
:local:

Usage
=====

To update an existing parter, go to the partner form view and click on
*Action > SIREN Lookup*.

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 *Lookup*.

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.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-france/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 <https://github.com/OCA/l10n-france/issues/new?body=module:%20l10n_fr_siret_lookup%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Le Filament
* Akretion

Contributors
------------

- Benjamin Rivier <benjamin-filament> (https://le-filament.com)
- Remi Cazenave <remi-filament> (https://le-filament.com)
- Alexis de Lattre <[email protected]>
- Frederic Grall <[email protected]>

Other credits
-------------

The development of this module has been financially supported by:

- Le Filament

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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

.. |maintainer-remi-filament| image:: https://github.com/remi-filament.png?size=40px
:target: https://github.com/remi-filament
:alt: remi-filament
.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-remi-filament| |maintainer-alexis-via|

This module is part of the `OCA/l10n-france <https://github.com/OCA/l10n-france/tree/18.0/l10n_fr_siret_lookup>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions l10n_fr_siret_lookup/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
24 changes: 24 additions & 0 deletions l10n_fr_siret_lookup/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2018-2022 Le Filament (<https://le-filament.com>)
# Copyright 2021-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "SIRET Lookup",
"summary": "Lookup partner via an API on the SIRENE directory",
"version": "18.0.1.0.0",
"category": "Partner",
"website": "https://github.com/OCA/l10n-france",
"author": "Le Filament, Akretion, Odoo Community Association (OCA)",
"maintainers": ["remi-filament", "alexis-via"],
"license": "AGPL-3",
"depends": [
"l10n_fr_siret",
],
"external_dependencies": {"python": ["requests", "python-stdnum"]},
"data": [
"wizard/fr_siret_lookup_view.xml",
"views/res_partner.xml",
"security/ir.model.access.csv",
],
"installable": True,
}
Loading
Loading