Skip to content

Commit

Permalink
[16.0][ADD] crm_claim_non_conformity: In crm claim type new field "Is…
Browse files Browse the repository at this point in the history
… Non Conformity?".
  • Loading branch information
alfredoavanzosc committed Oct 2, 2024
1 parent af87518 commit 1eb6769
Show file tree
Hide file tree
Showing 13 changed files with 215 additions and 0 deletions.
28 changes: 28 additions & 0 deletions crm_claim_non_conformity/README.rst
Original file line number Diff line number Diff line change
@@ -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
<https://github.com/avanzosc/crm-addons/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 <anajuaristi@avanzosc.es>
* Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
1 change: 1 addition & 0 deletions crm_claim_non_conformity/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions crm_claim_non_conformity/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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,
}
26 changes: 26 additions & 0 deletions crm_claim_non_conformity/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -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 ""
26 changes: 26 additions & 0 deletions crm_claim_non_conformity/i18n/crm_claim_non_conformity.pot
Original file line number Diff line number Diff line change
@@ -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 ""
26 changes: 26 additions & 0 deletions crm_claim_non_conformity/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -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 ""
26 changes: 26 additions & 0 deletions crm_claim_non_conformity/i18n/es.po
Original file line number Diff line number Diff line change
@@ -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?"
26 changes: 26 additions & 0 deletions crm_claim_non_conformity/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -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 ""
1 change: 1 addition & 0 deletions crm_claim_non_conformity/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import crm_claim_type
9 changes: 9 additions & 0 deletions crm_claim_non_conformity/models/crm_claim_type.py
Original file line number Diff line number Diff line change
@@ -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)
22 changes: 22 additions & 0 deletions crm_claim_non_conformity/views/crm_claim_type_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record model="ir.ui.view" id="crm_claim_type_tree">
<field name="model">crm.claim.type</field>
<field name="inherit_id" ref="crm_claim_type.crm_claim_type_tree" />
<field name="arch" type="xml">
<field name="name" position="after">
<field name="non_conformity" optional="show" />
</field>
</field>
</record>

<record model="ir.ui.view" id="crm_claim_type_form">
<field name="model">crm.claim.type</field>
<field name="inherit_id" ref="crm_claim_type.crm_claim_type_form" />
<field name="arch" type="xml">
<field name="description" position="after">
<field name="non_conformity" />
</field>
</field>
</record>
</odoo>
6 changes: 6 additions & 0 deletions setup/crm_claim_non_conformity/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 1eb6769

Please sign in to comment.