From 4433cbc96deb968972b0fb60cad52e8d6b4f4030 Mon Sep 17 00:00:00 2001 From: enricostano Date: Fri, 6 Mar 2020 22:17:27 +0100 Subject: [PATCH] Add localization for Spain --- easy_my_coop_es/README.rst | 52 +++ easy_my_coop_es/__init__.py | 1 + easy_my_coop_es/__manifest__.py | 17 + easy_my_coop_es/models/__init__.py | 1 + easy_my_coop_es/models/coop.py | 23 + easy_my_coop_es/readme/DESCRIPTION.rst | 1 + easy_my_coop_es/static/description/index.html | 407 ++++++++++++++++++ .../views/subscription_request_view.xml | 16 + 8 files changed, 518 insertions(+) create mode 100644 easy_my_coop_es/README.rst create mode 100644 easy_my_coop_es/__init__.py create mode 100644 easy_my_coop_es/__manifest__.py create mode 100644 easy_my_coop_es/models/__init__.py create mode 100644 easy_my_coop_es/models/coop.py create mode 100644 easy_my_coop_es/readme/DESCRIPTION.rst create mode 100644 easy_my_coop_es/static/description/index.html create mode 100644 easy_my_coop_es/views/subscription_request_view.xml diff --git a/easy_my_coop_es/README.rst b/easy_my_coop_es/README.rst new file mode 100644 index 0000000..b24244a --- /dev/null +++ b/easy_my_coop_es/README.rst @@ -0,0 +1,52 @@ +================== +Easy My Coop Spain +================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/easy_my_coop_es + :alt: coopiteasy/vertical-cooperative + +|badge1| |badge2| |badge3| + +This addon implements Spanish localization for Easy My Coop + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Coopdevs Treball SCCL + +Maintainers +~~~~~~~~~~~ + +This module is part of the `coopiteasy/vertical-cooperative `_ project on GitHub. + +You are welcome to contribute. diff --git a/easy_my_coop_es/__init__.py b/easy_my_coop_es/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/easy_my_coop_es/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/easy_my_coop_es/__manifest__.py b/easy_my_coop_es/__manifest__.py new file mode 100644 index 0000000..a2f36bf --- /dev/null +++ b/easy_my_coop_es/__manifest__.py @@ -0,0 +1,17 @@ +{ + 'name': "Easy My Coop Spain", + 'version': '12.0.0.0.13', + 'depends': ['easy_my_coop'], + 'author': "Coop IT Easy SCRLfs, " + "Coopdevs Treball SCCL", + 'mantainer': "Coopdevs Treball SCCL", + 'category': "Cooperative management", + 'description': """ + Easy My Coop localization for Spain + """, + "license": "AGPL-3", + 'data': [ + "views/subscription_request_view.xml", + ], + 'installable': True, +} diff --git a/easy_my_coop_es/models/__init__.py b/easy_my_coop_es/models/__init__.py new file mode 100644 index 0000000..eaae709 --- /dev/null +++ b/easy_my_coop_es/models/__init__.py @@ -0,0 +1 @@ +from . import coop diff --git a/easy_my_coop_es/models/coop.py b/easy_my_coop_es/models/coop.py new file mode 100644 index 0000000..c885f51 --- /dev/null +++ b/easy_my_coop_es/models/coop.py @@ -0,0 +1,23 @@ +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." + """ + ) + voluntary_contribution = fields.Monetary( + string='Voluntary contribution', + currency_field="company_currency_id", + help="Voluntary contribution made by the cooperator while buying a share." + ) + + def get_partner_vals(self): + vals = super(SubscriptionRequest, self).get_partner_vals() + vals['vat'] = self.vat + return vals diff --git a/easy_my_coop_es/readme/DESCRIPTION.rst b/easy_my_coop_es/readme/DESCRIPTION.rst new file mode 100644 index 0000000..8e9d5bc --- /dev/null +++ b/easy_my_coop_es/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This addon implements Spanish localization for Easy My Coop diff --git a/easy_my_coop_es/static/description/index.html b/easy_my_coop_es/static/description/index.html new file mode 100644 index 0000000..38ef647 --- /dev/null +++ b/easy_my_coop_es/static/description/index.html @@ -0,0 +1,407 @@ + + + + + + +Easy My Coop Spain + + + +
+

Easy My Coop Spain

+ + +

Beta License: AGPL-3 coopiteasy/vertical-cooperative

+

This addon implements Spanish localization for Easy My Coop

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Coopdevs Treball SCCL
  • +
+
+
+

Maintainers

+

This module is part of the coopiteasy/vertical-cooperative project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/easy_my_coop_es/views/subscription_request_view.xml b/easy_my_coop_es/views/subscription_request_view.xml new file mode 100644 index 0000000..55a4e58 --- /dev/null +++ b/easy_my_coop_es/views/subscription_request_view.xml @@ -0,0 +1,16 @@ + + + + subscription.request.form + subscription.request + + + + + + + + + + +