Skip to content

Commit

Permalink
[ADD] l10n_es_cooperator: Add VAT for partner in cooperator module
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarlr committed Jan 31, 2023
1 parent 2adb201 commit 727e5bb
Show file tree
Hide file tree
Showing 14 changed files with 716 additions and 0 deletions.
74 changes: 74 additions & 0 deletions l10n_es_cooperator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
=============================
Cooperator Spain Localisation
=============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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-coopiteasy%2Fvertical--cooperative-lightgray.png?logo=github
:target: https://github.com/coopiteasy/vertical-cooperative/tree/12.0/l10n_es_cooperator
:alt: coopiteasy/vertical-cooperative

|badge1| |badge2| |badge3|

This addon implements Spanish localization for Cooperator Module

Features:

- Add Tax identification on subscription request
- Add Tax identification on subscription request website form

**Table of contents**

.. contents::
:local:

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

Move this feature to cooperator module
- Change property_cooperator_account to not accept deprecated account

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

Bugs are tracked on `GitHub Issues <https://github.com/coopiteasy/vertical-cooperative/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/coopiteasy/vertical-cooperative/issues/new?body=module:%20l10n_es_cooperator%0Aversion:%2012.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
~~~~~~~

* Coop IT Easy SC
* Coopdevs Treball SCCL

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

* Coopdevs Treball SCCL

* Enrico Stano
* César López Ramírez
* Daniel Palomar
* Eugeni Chafer

Maintainers
~~~~~~~~~~~

This module is part of the `coopiteasy/vertical-cooperative <https://github.com/coopiteasy/vertical-cooperative/tree/12.0/l10n_es_cooperator>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions l10n_es_cooperator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions l10n_es_cooperator/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Cooperator Spain Localisation",
"version": "12.0.0.1.0",
"depends": ["cooperator", "cooperator_website", "l10n_es"],
"author": [
"Coop IT Easy SC", "Coopdevs Treball SCCL",
"Odoo Community Association (OCA)"
]
"mantainer": "Coopdevs Treball SCCL",
"website": "https://github.com/OCA/cooperative",
"category": "Cooperative management",
"summary": """
Cooperator localization for Spain
""",
"license": "AGPL-3",
"data": [
"views/subscription_request_view.xml",
"views/subscription_templates.xml",
],
"installable": True,
"auto-install": True,
}
53 changes: 53 additions & 0 deletions l10n_es_cooperator/i18n/l10n_es_cooperator.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_es_cooperator
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_es_cooperator
#: model:ir.model.fields,help:l10n_es_cooperator.field_subscription_request__vat
msgid "\n"
" The Tax Identification Number. Complete it if the contact is subjected to\n"
" government taxes. Used in some legal statements.\"\n"
" "
msgstr ""

#. module: l10n_es_cooperator
#: model_terms:ir.ui.view,arch_db:l10n_es_cooperator.iban_template_es
msgid "Bank Account Number"
msgstr ""

#. module: l10n_es_cooperator
#: model_terms:ir.ui.view,arch_db:l10n_es_cooperator.iban_template_es
msgid "ES9000246912501234567891"
msgstr ""

#. module: l10n_es_cooperator
#: model:ir.model,name:l10n_es_cooperator.model_subscription_request
msgid "Subscription Request"
msgstr ""

#. module: l10n_es_cooperator
#: model:ir.model.fields,field_description:l10n_es_cooperator.field_subscription_request__vat
msgid "Tax ID"
msgstr ""

#. module: l10n_es_cooperator
#: model_terms:ir.ui.view,arch_db:l10n_es_cooperator.iban_template_es
msgid "VAT"
msgstr ""

#. module: l10n_es_cooperator
#: model_terms:ir.ui.view,arch_db:l10n_es_cooperator.iban_template_es
msgid "Y5643925S"
msgstr ""

1 change: 1 addition & 0 deletions l10n_es_cooperator/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import subscription_request
30 changes: 30 additions & 0 deletions l10n_es_cooperator/models/subscription_request.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from odoo import fields, models


class SubscriptionRequest(models.Model):
_inherit = "subscription.request"

vat = fields.Char(
string="Tax ID",
help="""
The Tax Identification Number. Complete it if the contact is subjected to
government taxes. Used in some legal statements."
""",
)

def get_partner_vals(self):
vals = super(SubscriptionRequest, self).get_partner_vals()
vals["vat"] = self.vat
return vals

def get_required_field(self):
req_fields = super(SubscriptionRequest, self).get_required_field()[:]
req_fields.append("vat")

return req_fields

def _get_partner_domain(self):
if self.vat:
return [("vat", "=", self.vat)]
else:
return None
6 changes: 6 additions & 0 deletions l10n_es_cooperator/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* Coopdevs Treball SCCL

* Enrico Stano
* César López Ramírez
* Daniel Palomar
* Eugeni Chafer
6 changes: 6 additions & 0 deletions l10n_es_cooperator/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This addon implements Spanish localization for Cooperator Module

Features:

- Add Tax identification on subscription request
- Add Tax identification on subscription request website form
2 changes: 2 additions & 0 deletions l10n_es_cooperator/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Move this feature to cooperator module
- Change property_cooperator_account to not accept deprecated account
Loading

0 comments on commit 727e5bb

Please sign in to comment.