Skip to content

Commit

Permalink
Merge PR #1255 into 13.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 31, 2020
2 parents ab78f66 + a89c76a commit 948ea9e
Show file tree
Hide file tree
Showing 51 changed files with 11,053 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .isort.cfg
Expand Up @@ -9,4 +9,4 @@ line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
known_third_party=
known_third_party=setuptools
125 changes: 125 additions & 0 deletions l10n_es_partner/README.rst
@@ -0,0 +1,125 @@
============================================================
Adaptación de los clientes, proveedores y bancos para España
============================================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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--spain-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-spain/tree/13.0/l10n_es_partner
:alt: OCA/l10n-spain
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-spain-13-0/l10n-spain-13-0-l10n_es_partner
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/189/13.0
:alt: Try me on Runbot

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

Incluye la siguiente funcionalidad:

* Añade el campo *Nombre comercial* a las empresas y permite buscar por él.
* Permite definir un patrón del nombre a mostrar a partir del nombre y el
nombre comercial de la empresa.
* Convierte el NIF a mayúsculas.
* Añade los campos nombre largo, NIF y web a los bancos.
* Añade los datos de los bancos españoles extraídos del registro oficial del
Banco de España (http://goo.gl/mtx6ic). El asistente realiza la descarga
automática de Internet, pero si por cualquier razón hay algún problema,
existe una copia local cuya última actualización fue el 26/10/2017.

**Table of contents**

.. contents::
:local:

Installation
============

Este módulo depende de *base_bank_from_iban* que se encuentra en el repositorio
https://github.com/OCA/community-data-files

Configuration
=============

Para añadir cuentas bancarias a la compañía, el mejor camino es ir a
Contabilidad > Configuración > Contabilidad > Cuentas bancarias.

Para añadir cuentas bancarias a los clientes/proveedores, hay que ir a la
lista de empresas desde cualquiera de los accesos, y pulsar sobre el enlace
"n Cuenta(s) bancaria(s)" que hay en la pestaña "Ventas y compras".

Para definir el patrón del nombre a mostrar en empresas, hay que ir a
Configuración > Técnico > Parámetros > Parámetros del sistema
Seleccionar la clave l10n_es_partner.name_pattern
Definir el patron utilizando las etiquetas *%(name)s* para nombre y
*%(comercial_name)s* para nombre comercial.

Known issues / Roadmap
======================

* Take BICs from https://github.com/PeterNotenboom/SwiftCodes.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-spain/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-spain/issues/new?body=module:%20l10n_es_partner%0Aversion:%2013.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
~~~~~~~

* ZikZak
* Acysos
* Tecnativa

Contributors
~~~~~~~~~~~~

* Jordi Esteve <jesteve@zikzakmedia.com>
* Ignacio Ibeas <ignacio@acysos.com>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Sergio Teruel <sergio@incaser.es>
* Ismael Calvo <ismael.calvo@factorlibre.com>
* Carlos Dauden <carlos.dauden@tecnativa.com>

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

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

|maintainer-pedrobaeza|

This module is part of the `OCA/l10n-spain <https://github.com/OCA/l10n-spain/tree/13.0/l10n_es_partner>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions l10n_es_partner/__init__.py
@@ -0,0 +1,5 @@
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html

from . import models
from . import wizard
from . import gen_src
26 changes: 26 additions & 0 deletions l10n_es_partner/__manifest__.py
@@ -0,0 +1,26 @@
# Copyright 2009 Jordi Esteve <jesteve@zikzakmedia.com>
# Copyright 2013 Ignacio Ibeas <ignacio@acysos.com>
# Copyright 2015 Tecnativa - Sergio Teruel
# Copyright 2016 Tecnativa - Carlos Dauden
# Copyright 2013-2018 Tecnativa - Pedro M. Baeza
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Adaptación de los clientes, proveedores y bancos para España",
"version": "13.0.1.0.0",
"author": "ZikZak," "Acysos," "Tecnativa," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-spain",
"category": "Localisation/Europe",
"license": "AGPL-3",
"development_status": "Mature",
"maintainers": ["pedrobaeza"],
"external_dependencies": {"python": ["requests"]},
"depends": ["account", "base_bank_from_iban", "base_vat"],
"data": [
"data/l10n_es_partner_data.xml",
"views/res_bank_view.xml",
"views/res_partner_view.xml",
"wizard/l10n_es_partner_wizard.xml",
],
"installable": True,
}
9 changes: 9 additions & 0 deletions l10n_es_partner/data/l10n_es_partner_data.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3). -->
<odoo noupdate="1">
<record id="comercial_name_pattern" model="ir.config_parameter">
<field name="key">l10n_es_partner.name_pattern</field>
<field name="value">(%(comercial_name)s) %(name)s</field>
</record>
</odoo>
18 changes: 18 additions & 0 deletions l10n_es_partner/gen_src/README.rst
@@ -0,0 +1,18 @@
Utilidad para generar el archivo de bancos a partir de la información del Banco de España
=========================================================================================

**NOTA**: Necesita la librería python 'xlrd'

1. Descargar el excel de las 'Entidades con establecimiento' de la web del
Banco de España. Hay que tener cuidado que ponen el mismo archivo con
extensión en mayúsculas o minúsculas y hay que ver cuál es el actualizado:

http://www.bde.es/f/webbde/IFI/servicio/regis/ficheros/es/REGBANESP_CONESTAB_A.XLS
http://www.bde.es/f/webbde/IFI/servicio/regis/ficheros/es/REGBANESP_CONESTAB_A.xls

2. Mover el archivo descargado 'REGBANESP_CONESTAB_A.XLS' a la carpeta gen_src
3. Ejecutar:

python gen_data_banks.py
4. Se generará un archivo data_banks.xml en la carpeta wizard que sustituirá el
anterior
3 changes: 3 additions & 0 deletions l10n_es_partner/gen_src/__init__.py
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import gen_data_banks
Binary file added l10n_es_partner/gen_src/bics.xls
Binary file not shown.

0 comments on commit 948ea9e

Please sign in to comment.