Skip to content

Commit

Permalink
[MIG] crm_claim_code: Migration to 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cubells committed Sep 5, 2017
1 parent 9c475a1 commit 5b050c8
Show file tree
Hide file tree
Showing 22 changed files with 117 additions and 505 deletions.
28 changes: 21 additions & 7 deletions crm_claim_code/README.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
:target: http://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

==========================
Sequential code for claims
==========================

* This module adds a sequential code for claims.

Usage
=====

To use this module, you need to:

* Go to menu **CRM > After Sale > Services > Claims** and create a new claim.
* Enter claim subject and Save. You must see a new number for this claim.


.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/111/10.0

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/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
`here <https://github.com/OCA/crm/issues/new?body=module:%20crm_claim_code%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/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.

Credits
=======
Expand All @@ -27,6 +40,7 @@ Contributors
* Iker Coranti <ikercoranti@avanzosc.com>
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
* Vicent Cubells <vicent.cubells@tecnativa.com>

Maintainer
----------
Expand All @@ -41,4 +55,4 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
To contribute to this module, please visit https://odoo-community.org.
8 changes: 3 additions & 5 deletions crm_claim_code/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from . import models
from openerp.api import Environment
from openerp import SUPERUSER_ID
from odoo.api import Environment
from odoo import SUPERUSER_ID


new_field_code_added = False
Expand Down
18 changes: 6 additions & 12 deletions crm_claim_code/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,27 @@
# -*- coding: utf-8 -*-
# © 2015 Serv. Tec. Avanzados - Pedro M. Baeza (http://www.serviciosbaeza.com)
# © 2015 AvanzOsc (http://www.avanzosc.es)
# Copyright 2015 Serv. Tec. Avanzados - Pedro M. Baeza (http://www.serviciosbaeza.com)
# Copyright 2015 AvanzOsc (http://www.avanzosc.es)
# Copyright 2017 Tecnativa - Vicent Cubells <vicent.cubells@tecnativa.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Sequential Code for Claims",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"category": "Customer Relationship Management",
"author": "OdooMRP team, "
"AvanzOSC, "
"Tecnativa, "
"Odoo Community Association (OCA)",
"website": "http://www.avanzosc.es",
"license": "AGPL-3",
"contributors": [
"Pedro M. Baeza <pedro.baeza@tecnativa.com>",
"Ana Juaristi <ajuaristo@gmail.com>",
"Iker Coranti <ikercoranti@avanzosc.com>",
"Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>",
"Alfredo de la Fuente <alfredodelafuente@avanzosc.es>",
"Cyril Gaudin <cyril.gaudin@camptocamp.com>",
],
"depends": [
"crm_claim",
],
"data": [
"views/crm_claim_view.xml",
"data/claim_sequence.xml",
],
'installable': False,
'installable': True,
"pre_init_hook": "create_code_equal_to_id",
"post_init_hook": "assign_old_sequences",
}
20 changes: 10 additions & 10 deletions crm_claim_code/data/claim_sequence.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data noupdate="1">
<record id="sequence_claim" model="ir.sequence">
<field name="name">Claim Code</field>
<field name="code">crm.claim</field>
<field eval="4" name="padding" />
<field name="prefix">CLM</field>
</record>
</data>
</openerp>
<odoo noupdate="1">

<record id="sequence_claim" model="ir.sequence">
<field name="name">Claim Code</field>
<field name="code">crm.claim</field>
<field eval="4" name="padding" />
<field name="prefix">CLM</field>
</record>

</odoo>
34 changes: 0 additions & 34 deletions crm_claim_code/i18n/bg.po

This file was deleted.

32 changes: 0 additions & 32 deletions crm_claim_code/i18n/crm_claim_code.pot

This file was deleted.

33 changes: 0 additions & 33 deletions crm_claim_code/i18n/de.po

This file was deleted.

19 changes: 9 additions & 10 deletions crm_claim_code/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_claim_code
#
# Translators:
# * crm_claim_code
#
msgid ""
msgstr ""
"Project-Id-Version: crm (9.0)\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-20 02:44+0000\n"
"PO-Revision-Date: 2016-05-19 09:45+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-crm-9-0/language/es/)\n"
"POT-Creation-Date: 2017-09-05 16:00+0000\n"
"PO-Revision-Date: 2017-09-05 16:00+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"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Plural-Forms: \n"

#. module: crm_claim_code
#: model:ir.model,name:crm_claim_code.model_crm_claim
Expand All @@ -31,3 +29,4 @@ msgstr "Número de reclamación"
#: sql_constraint:crm.claim:0
msgid "The code must be unique!"
msgstr "¡El número debe de ser único!"

33 changes: 0 additions & 33 deletions crm_claim_code/i18n/es_MX.po

This file was deleted.

33 changes: 0 additions & 33 deletions crm_claim_code/i18n/es_VE.po

This file was deleted.

33 changes: 0 additions & 33 deletions crm_claim_code/i18n/fr.po

This file was deleted.

Loading

0 comments on commit 5b050c8

Please sign in to comment.