← Back to team overview

savoirfairelinux-openerp team mailing list archive

lp:~savoirfairelinux-openerp/openerp-mgmtsystem/7.0-fix-1101239 into lp:openerp-mgmtsystem

 

Virgil Dupras has proposed merging lp:~savoirfairelinux-openerp/openerp-mgmtsystem/7.0-fix-1101239 into lp:openerp-mgmtsystem.

Requested reviews:
  OpenERP Management System Core Editors (openerp-mgmtsystem-core-editors)
Related bugs:
  Bug #1101239 in OpenERP Management System: "Error when install module mgmtsystem_claim"
  https://bugs.launchpad.net/openerp-mgmtsystem/+bug/1101239

For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-mgmtsystem/7.0-fix-1101239/+merge/145412
-- 
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-mgmtsystem/7.0-fix-1101239/+merge/145412
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-mgmtsystem/7.0-fix-1101239.
=== modified file 'mgmtsystem_claim/mgmtsystem_claim.xml'
--- mgmtsystem_claim/mgmtsystem_claim.xml	2012-10-30 20:43:51 +0000
+++ mgmtsystem_claim/mgmtsystem_claim.xml	2013-01-29 15:43:22 +0000
@@ -6,7 +6,6 @@
 	<record model="ir.ui.view" id="mgmtsystem_claims_tree_view">
 		<field name="name">Management System Claims Tree</field>
 		<field name="model">mgmtsystem.claim</field>
-		<field name="type">tree</field>
 		<field name="arch" type="xml">
 			<tree string="Claims" colors="blue:state=='pending' and not(date_deadline and (date_deadline &lt; current_date));gray:state in ('close', 'cancel');red:date_deadline and (date_deadline &lt; current_date)">
 				<field name="reference"/>
@@ -34,105 +33,79 @@
 	<record model="ir.ui.view" id="mgmtsystem_claims_form_view">
 		<field name="name">Management System Claims Form</field>
 		<field name="model">mgmtsystem.claim</field>
-		<field name="type">form</field>
 		<field name="arch" type="xml">
-			<form string="Claims">
-				<group col="6" colspan="4">
-					<field name="name" colspan="2" />
-					<field name="date" colspan="2"/>
-					<field name="reference" colspan="2"/>
-				</group>
-
-				<group colspan="4" col="6">
-					<field name="user_id"/>
-					<field name="section_id" widget="selection" />
-					<group colspan="2" col="4">
-						<field name="stage_id" domain="[('type','=','claim')]"/>
-						<button name="stage_previous" string="" type="object" icon="gtk-go-back" />
-						<button icon="gtk-go-forward" string="" name="stage_next" type="object"/>
-					</group>
-					<newline />
-					<field name="priority"/>
-					<field name="date_deadline"/>
-				</group>
-
-				<group colspan="4" col="4">
-					<notebook>
-						<page string="Claim Description">
-							<group colspan="2" col="2">
-								<separator colspan="2" string="Claim Reporter"/>
-								<field name="partner_id" string="Partner"
-									on_change="onchange_partner_id(partner_id)" />
-								<field name="partner_address_id" string="Contact"
-									on_change="onchange_partner_address_id(partner_address_id, email_from)" />
-								<field name="partner_phone"/>
-								<field name="email_from"/>
-							</group>
-							<group colspan="2" col="2">
-								<separator colspan="2" string="Responsibilities"/>
-								<field name="user_fault"/>
-								<field name="categ_id" widget="selection"
-									domain="[('object_id.model', '=', 'crm.claim')]" />
-								<field name="ref"/>
-							</group>
-							<separator colspan="4" string="Claim/Action Description"/>
-							<field name="description" colspan="4" nolabel="1"/>
-							<separator colspan="4" string=""/>
-							<group col="8" colspan="4">
-								<field name="state" select="1"/>
-								<button name="case_cancel" string="Cancel"
-									states="draft,open,pending" type="object"
-									icon="gtk-cancel" />
-								<button name="case_pending" string="Pending"
-									states="draft,open" type="object"
-									icon="gtk-media-pause" />
-								<button name="case_open" string="Open"
-									states="draft,pending" type="object"
-									icon="gtk-go-forward" />
-								<button name="case_close" string="Done"
-									states="open,pending" type="object"
-									icon="gtk-jump-to" />
-								<button name="case_reset"
-									string="Reset to Draft" states="done,cancel"
-									type="object" icon="gtk-convert" />
-							</group>
-						</page>
-
-						<page string="Follow Up">
-							<group colspan="2" col="2">
-								<separator colspan="2" string="Actions"/>
-								<field name="date_action_next"/>
-								<field name="action_next"/>
-							</group>
-
-							<group colspan="2" col="2">
-								<separator colspan="2" string="Dates"/>
-								<field name="create_date"/>
-								<field name="date_closed"/>
-								<field name="write_date"/>
-							</group>
-
-							<group colspan="2" col="2">
-								<separator colspan="2" string="Root Causes"/>
-								<field name="cause" colspan="2" nolabel="1"/>
-							</group>
-
-							<group colspan="2" col="2">
-								<separator colspan="2" string="Resolution Actions"/>
-								<field name="type_action"/>
-								<field name="resolution" colspan="2" nolabel="1"/>
-							</group>
-						</page>
-
-						<page string="Communication &amp; History" groups="base.group_extended">
-							<group colspan="4">
-								<field colspan="4" name="email_cc" string="Global CC" widget="char"/>
-							</group>
-
-						</page>
-					</notebook>
-				</group>
-			</form>
+			<form string="Claim" version="7.0">
+                <header>
+                    <button name="case_close" string="Settle" type="object" class="oe_highlight"
+                            states="draft,open,pending" groups="base.group_user"/>
+                    <button name="case_cancel" string="Reject" type="object" groups="base.group_user"
+                            states="draft,open,pending"/>
+                    <field name="stage_id" widget="statusbar" clickable="True"/>
+                </header>
+                <sheet string="Claims">
+                    <group>
+                        <field name="name"/>
+                        <field name="date"/>
+                        <field name="reference"/>
+                    </group>
+                    <group colspan="4" col="4"  groups="base.group_user">
+                        <field name="user_id"/>
+                        <field name="priority"/>
+                        <field name="section_id"/>
+                        <field name="date_deadline"/>
+                        <field name="state" groups="base.group_no_one"/>
+                    </group>
+                    <group colspan="4" col="4">
+                        <notebook>
+                            <page string="Claim Description">
+                                <group colspan="2" col="2" groups="base.group_user">
+                                    <separator colspan="2" string="Claim Reporter"/>
+                                    <field name="partner_id" string="Partner"
+                                        on_change="onchange_partner_id(partner_id)"/>
+                                    <field name="partner_phone"/>
+                                    <field name="email_from" widget="email"/>
+                                </group>
+                                <group colspan="2" col="2" groups="base.group_user">
+                                    <separator colspan="2" string="Responsibilities"/>
+                                    <field name="user_fault"/>
+                                    <field name="categ_id" widget="selection"
+                                        domain="[('object_id.model', '=', 'crm.claim')]"/>
+                                    <field name="ref"/>
+                                </group>
+                                <separator colspan="4" string="Claim/Action Description" groups="base.group_user"/>
+                                <field name="description" colspan="4" nolabel="1"/>
+                            </page>
+                            <page string="Follow Up" groups="base.group_user">
+                                <group colspan="2" col="2">
+                                    <separator colspan="2" string="Actions"/>
+                                    <field name="date_action_next"/>
+                                    <field name="action_next"/>
+                                </group>
+                                <group colspan="2" col="2" groups="base.group_no_one">
+                                    <separator colspan="2" string="Dates"/>
+                                    <field name="create_date"/>
+                                    <field name="date_closed"/>
+                                    <field name="write_date"/>
+                                </group>
+
+                                <group colspan="2" col="2">
+                                    <separator colspan="2" string="Root Causes"/>
+                                    <field name="cause" colspan="2" nolabel="1"/>
+                                </group>
+                                <group colspan="2" col="2">
+                                    <separator colspan="2" string="Resolution Actions"/>
+                                    <field name="type_action"/>
+                                    <field name="resolution" colspan="2" nolabel="1"/>
+                                </group>
+                            </page>
+                        </notebook>
+                    </group>
+                </sheet>
+                <div class="oe_chatter">
+                    <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
+                    <field name="message_ids" widget="mail_thread" placeholder="Share a note..."/>
+                </div>
+            </form>
 		</field>
 	</record>
 
@@ -209,15 +182,15 @@
 	</record>
 
 	<record model="ir.actions.act_window" id="mgmtsystem_claim_action">
-		<field name="name">Claims</field>
-		<field name="res_model">mgmtsystem.claim</field>
-		<field name="view_type">form</field>
-		<field name="view_mode">tree,calendar,form</field>
-		<field name="view_id" ref="mgmtsystem_claims_tree_view"/>
-		<field name="context">{'search_default_section_id': section_id, "search_default_current":1,"search_default_user_id":uid, "stage_type":'claim'}</field>
-		<field name="search_view_id" ref="view_mgmtsystem_claims_filter"/>
-		<field name="help">Record and track your external parties' claims. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.</field>
-	</record>
+        <field name="name">Claims</field>
+        <field name="res_model">mgmtsystem.claim</field>
+        <field name="view_type">form</field>
+        <field name="view_mode">tree,calendar,form</field>
+        <field name="view_id" ref="mgmtsystem_claims_tree_view"/>
+        <field name="context">{"search_default_user_id":uid, "stage_type":'claim'}</field>
+        <field name="search_view_id" ref="view_mgmtsystem_claims_filter"/>
+        <field name="help">Record and track your customers' claims. Claims may be linked to a sales order or a lot. You can send emails with attachments and keep the full history for a claim (emails sent, intervention type and so on). Claims may automatically be linked to an email address using the mail gateway module.</field>
+    </record>
 
 	<menuitem 
 		id="menu_mgmtsystem_claims"
@@ -230,22 +203,9 @@
 	<menuitem 
 		id="menu_config_claim" 
 		name="Claims"
-		groups="base.group_extended"
 		parent="mgmtsystem.menu_mgmtsystem_configuration" 
 		sequence="20" />
 
-	<menuitem 
-		id="menu_crm_case_claim-act" 
-		name="Categories"
-		parent="menu_config_claim"
-		action="crm_claim.crm_claim_categ_action" /> 
-
-	<menuitem 
-		id="menu_crm_claim_stage_act" 
-		name="Stages"
-		parent="menu_config_claim"
-		action="crm_claim.crm_claim_stage_act" />
-
         <!-- audittrail rule -->
 
         <record id="mgmtsystem_claim_audit_rule" model="audittrail.rule">


Follow ups