Skip to content

Commit

Permalink
Merge PR #399 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by alexis-via
  • Loading branch information
OCA-git-bot committed Dec 30, 2022
2 parents 4317fac + d8c8637 commit b05be29
Show file tree
Hide file tree
Showing 62 changed files with 5,748 additions and 0 deletions.
93 changes: 93 additions & 0 deletions l10n_fr_department/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
=================================
French Departments (Départements)
=================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/15.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-15-0/l10n-france-15-0-l10n_fr_department
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/121/15.0
:alt: Try me on Runbot

|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 *department_id* field on the
*res_partner* object (this field is not displayed in the partner form
view by default).

**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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-france/issues/new?body=module:%20l10n_fr_department%0Aversion:%2015.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 <alexis.delattre@akretion.com>
* 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

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

|maintainer-legalsylvain|

This module is part of the `OCA/l10n-france <https://github.com/OCA/l10n-france/tree/15.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 <alexis.delattre@akretion.com>
# 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": "16.0.1.0.0",
"category": "French Localization",
"author": "GRAP, "
"Akretion, "
"Nicolas JEUDY, "
"Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"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 b05be29

Please sign in to comment.