Skip to content

Commit

Permalink
Merge PR #503 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by alexis-via
  • Loading branch information
OCA-git-bot committed Jan 19, 2024
2 parents e2ff0bc + a97b0be commit e6d5fea
Show file tree
Hide file tree
Showing 73 changed files with 6,536 additions and 0 deletions.
99 changes: 99 additions & 0 deletions l10n_fr_department/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
=================================
French Departments (Départements)
=================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:87c3accab52ee1779f6bd0293472005ef7f7be791e78a08dd4af6b3cfb38a3a0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/17.0/l10n_fr_department
: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-17-0/l10n-france-17-0-l10n_fr_department
: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=17.0
:alt: Try me on Runboat

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

This module creates a new model *res_country_department*, sub division
of the *res_country_state* and populate it with all the french
departments, but only the french departments of mainland. If you need
the overseas departments, please install the module
*l10n_fr_department_oversea*.

It also adds a computed many2one *country_department_id* field on the
*res_partner* object.

**Table of contents**

.. contents::
:local:

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_department%0Aversion:%2017.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
-------

* GRAP
* Akretion
* Nicolas JEUDY

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

- Sylvain LE GAL (`Twitter <https://twitter.com/legalsylvain>`__), GRAP
(Groupement Régional Alimentaire de Proximité)
- Alexis de Lattre <[email protected]>
- Nicolas JEUDY <https://github.com/njeudy>

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-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain
.. |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-legalsylvain| |maintainer-alexis-via|

This module is part of the `OCA/l10n-france <https://github.com/OCA/l10n-france/tree/17.0/l10n_fr_department>`_ 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_department/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import model
from .post_install import set_department_on_partner
31 changes: 31 additions & 0 deletions l10n_fr_department/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2013-2022 GRAP (Sylvain LE GAL https://twitter.com/legalsylvain)
# Copyright 2015-2022 Akretion France
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "French Departments (Départements)",
"summary": "Populate Database with French Departments (Départements)",
"version": "17.0.1.0.0",
"category": "French Localization",
"author": "GRAP, "
"Akretion, "
"Nicolas JEUDY, "
"Odoo Community Association (OCA)",
"maintainers": ["legalsylvain", "alexis-via"],
"website": "https://github.com/OCA/l10n-france",
"license": "AGPL-3",
"depends": [
"l10n_fr_state",
"contacts",
],
"data": [
"security/ir.model.access.csv",
"data/res_country_department.xml",
"view/res_country_department.xml",
"view/res_partner.xml",
],
"post_init_hook": "set_department_on_partner",
"images": ["static/src/img/screenshots/1.png"],
"installable": True,
}
Loading

0 comments on commit e6d5fea

Please sign in to comment.