From 1eb676989773e03474056919eb44c14652c82e77 Mon Sep 17 00:00:00 2001 From: Alfredo Date: Tue, 1 Oct 2024 09:43:20 +0200 Subject: [PATCH] [16.0][ADD] crm_claim_non_conformity: In crm claim type new field "Is Non Conformity?". --- crm_claim_non_conformity/README.rst | 28 +++++++++++++++++++ crm_claim_non_conformity/__init__.py | 1 + crm_claim_non_conformity/__manifest__.py | 17 +++++++++++ crm_claim_non_conformity/i18n/ca_ES.po | 26 +++++++++++++++++ .../i18n/crm_claim_non_conformity.pot | 26 +++++++++++++++++ crm_claim_non_conformity/i18n/en_GB.po | 26 +++++++++++++++++ crm_claim_non_conformity/i18n/es.po | 26 +++++++++++++++++ crm_claim_non_conformity/i18n/fr.po | 26 +++++++++++++++++ crm_claim_non_conformity/models/__init__.py | 1 + .../models/crm_claim_type.py | 9 ++++++ .../views/crm_claim_type_views.xml | 22 +++++++++++++++ .../odoo/addons/crm_claim_non_conformity | 1 + setup/crm_claim_non_conformity/setup.py | 6 ++++ 13 files changed, 215 insertions(+) create mode 100644 crm_claim_non_conformity/README.rst create mode 100644 crm_claim_non_conformity/__init__.py create mode 100644 crm_claim_non_conformity/__manifest__.py create mode 100644 crm_claim_non_conformity/i18n/ca_ES.po create mode 100644 crm_claim_non_conformity/i18n/crm_claim_non_conformity.pot create mode 100644 crm_claim_non_conformity/i18n/en_GB.po create mode 100644 crm_claim_non_conformity/i18n/es.po create mode 100644 crm_claim_non_conformity/i18n/fr.po create mode 100644 crm_claim_non_conformity/models/__init__.py create mode 100644 crm_claim_non_conformity/models/crm_claim_type.py create mode 100644 crm_claim_non_conformity/views/crm_claim_type_views.xml create mode 120000 setup/crm_claim_non_conformity/odoo/addons/crm_claim_non_conformity create mode 100644 setup/crm_claim_non_conformity/setup.py diff --git a/crm_claim_non_conformity/README.rst b/crm_claim_non_conformity/README.rst new file mode 100644 index 00000000..eddbe475 --- /dev/null +++ b/crm_claim_non_conformity/README.rst @@ -0,0 +1,28 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +======================== +Crm claim non conformity +======================== + +* In crm claim type new field "Is Non Conformity?". + +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 smash it by providing detailed and welcomed feedback. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Contributors +------------ + +* Ana Juaristi +* Alfredo de la Fuente diff --git a/crm_claim_non_conformity/__init__.py b/crm_claim_non_conformity/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/crm_claim_non_conformity/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/crm_claim_non_conformity/__manifest__.py b/crm_claim_non_conformity/__manifest__.py new file mode 100644 index 00000000..92673a41 --- /dev/null +++ b/crm_claim_non_conformity/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2024 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "CRM Claim Non Conformity", + "version": "16.0.1.0.0", + "category": "Customer Relationship Management", + "license": "AGPL-3", + "author": "AvanzOSC", + "website": "https://github.com/avanzosc/crm-addons", + "depends": [ + "crm_claim_type_sequence", + ], + "data": [ + "views/crm_claim_type_views.xml", + ], + "installable": True, +} diff --git a/crm_claim_non_conformity/i18n/ca_ES.po b/crm_claim_non_conformity/i18n/ca_ES.po new file mode 100644 index 00000000..9b5f68a6 --- /dev/null +++ b/crm_claim_non_conformity/i18n/ca_ES.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_claim_non_conformity +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-01 07:11+0000\n" +"PO-Revision-Date: 2024-10-01 07:11+0000\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: crm_claim_non_conformity +#: model:ir.model,name:crm_claim_non_conformity.model_crm_claim_type +msgid "Claim Type" +msgstr "Tipus de reclamació" + +#. module: crm_claim_non_conformity +#: model:ir.model.fields,field_description:crm_claim_non_conformity.field_crm_claim_type__non_conformity +msgid "Is Non Conformity?" +msgstr "" diff --git a/crm_claim_non_conformity/i18n/crm_claim_non_conformity.pot b/crm_claim_non_conformity/i18n/crm_claim_non_conformity.pot new file mode 100644 index 00000000..2d0dc4bd --- /dev/null +++ b/crm_claim_non_conformity/i18n/crm_claim_non_conformity.pot @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_claim_non_conformity +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-01 07:11+0000\n" +"PO-Revision-Date: 2024-10-01 07:11+0000\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: crm_claim_non_conformity +#: model:ir.model,name:crm_claim_non_conformity.model_crm_claim_type +msgid "Claim Type" +msgstr "" + +#. module: crm_claim_non_conformity +#: model:ir.model.fields,field_description:crm_claim_non_conformity.field_crm_claim_type__non_conformity +msgid "Is Non Conformity?" +msgstr "" diff --git a/crm_claim_non_conformity/i18n/en_GB.po b/crm_claim_non_conformity/i18n/en_GB.po new file mode 100644 index 00000000..2d0dc4bd --- /dev/null +++ b/crm_claim_non_conformity/i18n/en_GB.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_claim_non_conformity +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-01 07:11+0000\n" +"PO-Revision-Date: 2024-10-01 07:11+0000\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: crm_claim_non_conformity +#: model:ir.model,name:crm_claim_non_conformity.model_crm_claim_type +msgid "Claim Type" +msgstr "" + +#. module: crm_claim_non_conformity +#: model:ir.model.fields,field_description:crm_claim_non_conformity.field_crm_claim_type__non_conformity +msgid "Is Non Conformity?" +msgstr "" diff --git a/crm_claim_non_conformity/i18n/es.po b/crm_claim_non_conformity/i18n/es.po new file mode 100644 index 00000000..d3093659 --- /dev/null +++ b/crm_claim_non_conformity/i18n/es.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_claim_non_conformity +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-01 07:12+0000\n" +"PO-Revision-Date: 2024-10-01 07:12+0000\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: crm_claim_non_conformity +#: model:ir.model,name:crm_claim_non_conformity.model_crm_claim_type +msgid "Claim Type" +msgstr "Tipo de reclamación" + +#. module: crm_claim_non_conformity +#: model:ir.model.fields,field_description:crm_claim_non_conformity.field_crm_claim_type__non_conformity +msgid "Is Non Conformity?" +msgstr "¿Es no conformidad?" diff --git a/crm_claim_non_conformity/i18n/fr.po b/crm_claim_non_conformity/i18n/fr.po new file mode 100644 index 00000000..ce121a61 --- /dev/null +++ b/crm_claim_non_conformity/i18n/fr.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_claim_non_conformity +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-01 07:12+0000\n" +"PO-Revision-Date: 2024-10-01 07:12+0000\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: crm_claim_non_conformity +#: model:ir.model,name:crm_claim_non_conformity.model_crm_claim_type +msgid "Claim Type" +msgstr "" + +#. module: crm_claim_non_conformity +#: model:ir.model.fields,field_description:crm_claim_non_conformity.field_crm_claim_type__non_conformity +msgid "Is Non Conformity?" +msgstr "" diff --git a/crm_claim_non_conformity/models/__init__.py b/crm_claim_non_conformity/models/__init__.py new file mode 100644 index 00000000..dd91ae1c --- /dev/null +++ b/crm_claim_non_conformity/models/__init__.py @@ -0,0 +1 @@ +from . import crm_claim_type diff --git a/crm_claim_non_conformity/models/crm_claim_type.py b/crm_claim_non_conformity/models/crm_claim_type.py new file mode 100644 index 00000000..fbb704a6 --- /dev/null +++ b/crm_claim_non_conformity/models/crm_claim_type.py @@ -0,0 +1,9 @@ +# Copyright 2024 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class CrmClaimtype(models.Model): + _inherit = "crm.claim.type" + + non_conformity = fields.Boolean(string="Is Non Conformity?", default=False) diff --git a/crm_claim_non_conformity/views/crm_claim_type_views.xml b/crm_claim_non_conformity/views/crm_claim_type_views.xml new file mode 100644 index 00000000..06dc5a8b --- /dev/null +++ b/crm_claim_non_conformity/views/crm_claim_type_views.xml @@ -0,0 +1,22 @@ + + + + crm.claim.type + + + + + + + + + + crm.claim.type + + + + + + + + diff --git a/setup/crm_claim_non_conformity/odoo/addons/crm_claim_non_conformity b/setup/crm_claim_non_conformity/odoo/addons/crm_claim_non_conformity new file mode 120000 index 00000000..8b504131 --- /dev/null +++ b/setup/crm_claim_non_conformity/odoo/addons/crm_claim_non_conformity @@ -0,0 +1 @@ +../../../../crm_claim_non_conformity \ No newline at end of file diff --git a/setup/crm_claim_non_conformity/setup.py b/setup/crm_claim_non_conformity/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/crm_claim_non_conformity/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)