diff --git a/addons/crm_claim/__init__.py b/addons/crm_claim/__init__.py new file mode 100644 index 00000000000..7395ea83fe5 --- /dev/null +++ b/addons/crm_claim/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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 . +# +############################################################################## + +import crm_claim +import report + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + diff --git a/addons/crm_claim/__openerp__.py b/addons/crm_claim/__openerp__.py new file mode 100644 index 00000000000..32a9319b75e --- /dev/null +++ b/addons/crm_claim/__openerp__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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 . +# +############################################################################## + + +{ + 'name': 'Customer & Supplier Relationship Management', + 'version': '1.0', + 'category': 'Generic Modules/CRM & SRM', + 'description': """claim""", + 'author': 'Tiny', + 'website': 'http://www.openerp.com', + 'depends': ['crm'], + 'init_xml': [ + 'crm_claim_data.xml', + ], + + 'update_xml': [ + 'crm_claim_view.xml', + 'crm_claim_menu.xml', + 'security/ir.model.access.csv', + 'report/crm_claim_report_view.xml', + ], + 'demo_xml': [ + 'crm_claim_demo.xml', + 'test/test_crm_claim.yml' + ], + 'installable': True, + 'active': False, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/crm/crm_claim.py b/addons/crm_claim/crm_claim.py similarity index 99% rename from addons/crm/crm_claim.py rename to addons/crm_claim/crm_claim.py index 43ec4fe9895..a2a2652ff23 100644 --- a/addons/crm/crm_claim.py +++ b/addons/crm_claim/crm_claim.py @@ -20,7 +20,7 @@ ############################################################################## from osv import fields, osv -import crm +from crm import crm class crm_claim(osv.osv): """ @@ -70,4 +70,4 @@ class crm_claim(osv.osv): crm_claim() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/crm/crm_claims_data.xml b/addons/crm_claim/crm_claim_data.xml similarity index 76% rename from addons/crm/crm_claims_data.xml rename to addons/crm_claim/crm_claim_data.xml index fc1b37e14be..a176b3aa8e0 100644 --- a/addons/crm/crm_claims_data.xml +++ b/addons/crm_claim/crm_claim_data.xml @@ -8,19 +8,19 @@ Factual Claims - + Value Claims - + Policy Claims - + @@ -30,13 +30,13 @@ Corrective - + Preventive - + @@ -46,33 +46,33 @@ Accepted as Claim - + Fixed - + Won't fix - + Invalid - + Awaiting Response - + - \ No newline at end of file + diff --git a/addons/crm/crm_claims_demo.xml b/addons/crm_claim/crm_claim_demo.xml similarity index 81% rename from addons/crm/crm_claims_demo.xml rename to addons/crm_claim/crm_claim_demo.xml index daa5914e167..db21223656e 100644 --- a/addons/crm/crm_claims_demo.xml +++ b/addons/crm_claim/crm_claim_demo.xml @@ -9,7 +9,7 @@ - + @@ -18,15 +18,15 @@ - - + + - + @@ -35,15 +35,15 @@ - - + + - + @@ -52,15 +52,15 @@ - - + + - + @@ -69,15 +69,15 @@ - - + + - + @@ -86,15 +86,15 @@ - - + + - + @@ -103,15 +103,15 @@ - - + + - + @@ -120,8 +120,8 @@ - - + + diff --git a/addons/crm/crm_claims_menu.xml b/addons/crm_claim/crm_claim_menu.xml similarity index 96% rename from addons/crm/crm_claims_menu.xml rename to addons/crm_claim/crm_claim_menu.xml index 16711036100..b0d17495dee 100644 --- a/addons/crm/crm_claims_menu.xml +++ b/addons/crm_claim/crm_claim_menu.xml @@ -15,7 +15,7 @@ tree,calendar,form,graph {"search_default_section_id":section_id,"search_default_current":1,"search_default_my_claims":1} - + diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml new file mode 100644 index 00000000000..ffd0c4943e0 --- /dev/null +++ b/addons/crm_claim/crm_claim_view.xml @@ -0,0 +1,294 @@ + + + + + + + + Claim Categories + crm.case.categ + form + + [('object_id.model', '=', 'crm.claim')] + {'object_id':'crm.claim'} + + + + + + + + Claim Stages + crm.case.stage + form + + [('object_id.model', '=', 'crm.claim')] + {'object_id':'crm.claim'} + + + + + + + + Claim Resource Type + crm.case.resource.type + form + + [('object_id.model', '=', 'crm.claim')] + {'object_id':'crm.claim'} + + + + + + + + CRM - Claims Tree + crm.claim + tree + + + + + + + + + + + + +