-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] l10n_es_cooperator: Add VAT for partner in cooperator module
- Loading branch information
Showing
14 changed files
with
716 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import subscription_request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.