Merge pull request #85 from cyrilgdn/9.0-crm_claim_rma_code

crm_claim_rma_code: migration V9
This commit is contained in:
Alexandre Fayolle
2016-06-08 14:00:15 +02:00
8 changed files with 72 additions and 168 deletions

View File

@@ -27,7 +27,7 @@ To use this module, you need to create new claims based on the configuration set
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/145/8.0
:target: https://runbot.odoo-community.org/runbot/145/9.0
For further information, please visit:
@@ -40,7 +40,6 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/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/rma/issues/new?body=module:%20crm_claim_rma_code%0Aversion:%208.0.1.0.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======

View File

@@ -1,22 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright 2015 Vauxoo
# Author: Osval Reyes, Yanina Aular
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import models

View File

@@ -1,27 +1,10 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright 2015 Vauxoo
# Author: Osval Reyes, Yanina Aular
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# © 2015 Vauxoo
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'CRM Claim RMA Code',
'version': '8.0.1.0.0',
'version': '9.0.1.0.0',
'category': 'Generic Modules/CRM & SRM',
'author': 'Vauxoo,Odoo Community Association (OCA)',
'website': 'http://www.vauxoo.com/',
@@ -34,6 +17,5 @@
'data/ir_sequence_type.xml',
'views/crm_claim_type.xml',
],
'active': True,
'installable': False,
'installable': True,
}

View File

@@ -1,69 +1,47 @@
<?xml version="1.0"?>
<openerp>
<data noupdate="1">
<!-- Claims Sequence n° -->
<record id="seq_type_claim_supplier" model="ir.sequence.type">
<field name="name">CRM Claim Supplier</field>
<field name="code">crm.claim.rma.supplier</field>
</record>
<odoo noupdate="1">
<!-- Claims Sequence n° -->
<record id="seq_claim_supplier" model="ir.sequence">
<field name="name">CRM Claim Supplier</field>
<field name="code">crm.claim.rma.supplier</field>
<field name="padding">5</field>
<field name="prefix">RMA-V/%(year)s/</field>
</record>
<record id="seq_claim_supplier" model="ir.sequence">
<field name="name">CRM Claim Supplier</field>
<field name="code">crm.claim.rma.supplier</field>
<field name="padding">5</field>
<field name="prefix">RMA-V/%(year)s/</field>
</record>
<record id="seq_claim_customer" model="ir.sequence">
<field name="name">CRM Claim Client</field>
<field name="code">crm.claim.rma.customer</field>
<field name="padding">5</field>
<field name="prefix">RMA-C/%(year)s/</field>
</record>
<record id="seq_type_claim_customer" model="ir.sequence.type">
<field name="name">CRM Claim Client</field>
<field name="code">crm.claim.rma.customer</field>
</record>
<record id="seq_claim_basic" model="ir.sequence">
<field name="name">CRM Claim</field>
<field name="code">crm.claim.rma.basic</field>
<field name="padding">5</field>
<field name="prefix">RMA/%(year)s/</field>
</record>
<record id="seq_claim_customer" model="ir.sequence">
<field name="name">CRM Claim Client</field>
<field name="code">crm.claim.rma.customer</field>
<field name="padding">5</field>
<field name="prefix">RMA-C/%(year)s/</field>
</record>
<record id="seq_claim_line" model="ir.sequence">
<field name="name">Claim Line</field>
<field name="code">claim.line</field>
<field eval="5" name="padding"/>
<field name="implementation">no_gap</field>
<field name="prefix">RMA-R/</field>
</record>
<record id="seq_type_claim_basic" model="ir.sequence.type">
<field name="name">CRM Claim</field>
<field name="code">crm.claim.rma.basic</field>
</record>
<!-- Claims Type -->
<record id="crm_claim_type.crm_claim_type_supplier" model="crm.claim.type">
<field name="ir_sequence_id"
search="[('code', '=', 'crm.claim.rma.supplier')]"
model="ir.sequence"
/>
</record>
<record id="seq_claim_basic" model="ir.sequence">
<field name="name">CRM Claim</field>
<field name="code">crm.claim.rma.basic</field>
<field name="padding">5</field>
<field name="prefix">RMA/%(year)s/</field>
</record>
<record id="seq_type_claim_line" model="ir.sequence.type">
<field name="name">Claim Line</field>
<field name="code">claim.line</field>
</record>
<record id="seq_claim_line" model="ir.sequence">
<field name="name">Claim Line</field>
<field name="code">claim.line</field>
<field eval="5" name="padding"/>
<field name="implementation">no_gap</field>
<field name="prefix">RMA-R/</field>
</record>
<!-- Claims Type -->
<record id="crm_claim_type.crm_claim_type_supplier" model="crm.claim.type">
<field name="ir_sequence_id"
search="[('code', '=', 'crm.claim.rma.supplier')]"
model="ir.sequence"
/>
</record>
<record id="crm_claim_type.crm_claim_type_customer" model="crm.claim.type">
<field name="ir_sequence_id"
search="[('code', '=', 'crm.claim.rma.customer')]"
model="ir.sequence"
/>
</record>
</data>
</openerp>
<record id="crm_claim_type.crm_claim_type_customer" model="crm.claim.type">
<field name="ir_sequence_id"
search="[('code', '=', 'crm.claim.rma.customer')]"
model="ir.sequence"
/>
</record>
</odoo>

View File

@@ -1,22 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright 2015 Vauxoo
# Author: Osval Reyes, Yanina Aular
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import crm_claim_type

View File

@@ -1,23 +1,7 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright 2015 Vauxoo
# Author: Osval Reyes, Yanina Aular
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# © 2015 Vauxoo
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import fields, models

View File

@@ -1,25 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="crm_claim_type_form_sequence" model="ir.ui.view">
<field name="name">crm.claim.type.form</field>
<field name="model">crm.claim.type</field>
<field name="inherit_id" ref="crm_claim_type.crm_claim_type_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='active']" position="before">
<field name="ir_sequence_id" attrs="{'required': True}"/>
</xpath>
</field>
</record>
<record id="crm_claim_type_tree_sequence" model="ir.ui.view">
<field name="name">crm.claim.type.tree</field>
<field name="model">crm.claim.type</field>
<field name="inherit_id" ref="crm_claim_type.crm_claim_type_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='active']" position="before">
<field name="ir_sequence_id"/>
</xpath>
</field>
</record>
</data>
</openerp>
<odoo>
<record id="crm_claim_type_form_sequence" model="ir.ui.view">
<field name="name">crm.claim.type.form</field>
<field name="model">crm.claim.type</field>
<field name="inherit_id" ref="crm_claim_type.crm_claim_type_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='active']" position="before">
<field name="ir_sequence_id" attrs="{'required': True}"/>
</xpath>
</field>
</record>
<record id="crm_claim_type_tree_sequence" model="ir.ui.view">
<field name="name">crm.claim.type.tree</field>
<field name="model">crm.claim.type</field>
<field name="inherit_id" ref="crm_claim_type.crm_claim_type_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='active']" position="before">
<field name="ir_sequence_id"/>
</xpath>
</field>
</record>
</odoo>

1
oca_dependencies.txt Normal file
View File

@@ -0,0 +1 @@
crm