Merge lp:~savoirfairelinux-openerp/openerp-rma/7.0-port-merged into lp:~benoit-guillot-z/openerp-rma/trunk

Proposed by Joao Alfredo Gama Batista
Status: Merged
Merged at revision: 67
Proposed branch: lp:~savoirfairelinux-openerp/openerp-rma/7.0-port-merged
Merge into: lp:~benoit-guillot-z/openerp-rma/trunk
Diff against target: 317 lines (+19/-31)
13 files modified
crm_claim_rma/account_invoice_view.xml (+1/-2)
crm_claim_rma/crm_claim_rma.py (+2/-2)
crm_claim_rma/crm_claim_rma_data.xml (+2/-1)
crm_claim_rma/crm_claim_rma_view.xml (+11/-6)
crm_claim_rma/res_company.py (+1/-1)
crm_claim_rma/res_company_view.xml (+0/-1)
crm_claim_rma/stock_view.xml (+2/-6)
crm_claim_rma/wizard/claim_make_picking_from_picking_view.xml (+0/-1)
crm_claim_rma/wizard/claim_make_picking_view.xml (+0/-1)
crm_claim_rma/wizard/get_empty_serial_view.xml (+0/-1)
crm_claim_rma/wizard/returned_lines_from_invoice_wizard_view.xml (+0/-3)
crm_claim_rma/wizard/returned_lines_from_serial_wizard_view.xml (+0/-1)
product_warranty/product_warranty_view.xml (+0/-5)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openerp-rma/7.0-port-merged
Reviewer Review Type Date Requested Status
Virgil Dupras (community) Approve
Benoit Guillot - http://www.akretion.com code review and test Approve
Maxime Chambreuil (http://www.savoirfairelinux.com) (community) code review and test Approve
OpenERP Community Reviewer/Maintainer Pending
Review via email: mp+177975@code.launchpad.net

Description of the change

- Migrate views to version 7.0
- Comment views pointing to unexistants models (picking.follow)
- Change references to res.partner.addres to use res.partner
- Fix wrong reference to crm_claim.stage_claim5

To post a comment you must log in.
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

lgtm

review: Approve (code review and test)
Revision history for this message
Benoit Guillot - http://www.akretion.com (benoit-guillot-z) wrote :

Thanks for the port of the views !

The module is now instalable on the version 7.0.

review: Approve (code review and test)
Revision history for this message
Virgil Dupras (hsoft) wrote :

I reviewed the module in a summarily manner (not being familiar with the purpose of the module):

1. Re-produced the inability to install of the trunk branch under 7.0
2. Installed the MP successfully under 7.0
3. Created a claim with a Return line, which seemed to work without error.

I don't see the point in commenting code instead of removing it, but otherwise, the change looks clean.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'crm_claim_rma/account_invoice_view.xml'
2--- crm_claim_rma/account_invoice_view.xml 2012-06-11 10:23:57 +0000
3+++ crm_claim_rma/account_invoice_view.xml 2013-08-01 00:20:39 +0000
4@@ -14,10 +14,9 @@
5 <field name="model">account.invoice</field>
6 <field name="inherit_id" ref="account.invoice_form" />
7 <field eval="16" name="priority"/>
8- <field name="type">form</field>
9 <field name="arch" type="xml">
10 <data>
11- <xpath expr="/form/notebook/page[@string='Other Info']/field[@name='origin']" position="after">
12+ <xpath expr="/form/sheet/notebook/page[@string='Other Info']/group/group/field[@name='origin']" position="after">
13 <field name="claim_id" attrs="{'invisible':[('type','!=','out_refund')]}"/>
14 </xpath>
15 </data>
16
17=== modified file 'crm_claim_rma/crm_claim_rma.py'
18--- crm_claim_rma/crm_claim_rma.py 2012-10-05 13:12:51 +0000
19+++ crm_claim_rma/crm_claim_rma.py 2013-08-01 00:20:39 +0000
20@@ -88,7 +88,7 @@
21 'guarantee_limit': fields.date('Warranty limit', help="The warranty limit is computed as: invoice date + warranty defined on selected product.", readonly=True),
22 'warning': fields.char('Warranty', size=64, readonly=True,help="If warranty has expired"), #select=1,
23 'warranty_type': fields.char('Warranty type', size=64, readonly=True,help="from product form"),
24- "warranty_return_partner" : fields.many2one('res.partner.address', 'Warranty return',help="Where the customer has to send back the product(s)"),
25+ "warranty_return_partner" : fields.many2one('res.partner', 'Warranty return',help="Where the customer has to send back the product(s)"),
26 'claim_id': fields.many2one('crm.claim', 'Related claim',help="To link to the case.claim object"),
27 'state' : fields.selection([('draft','Draft'),
28 ('refused','Refused'),
29@@ -303,7 +303,7 @@
30 res = super(crm_claim, self).onchange_partner_address_id(cr, uid, ids, add, email=email)
31 if add:
32 if not res['value']['email_from'] or not res['value']['partner_phone']:
33- address = self.pool.get('res.partner.address').browse(cr, uid, add)
34+ address = self.pool.get('res.partner').browse(cr, uid, add)
35 for other_add in address.partner_id.address:
36 if other_add.email and not res['value']['email_from']:
37 res['value']['email_from'] = other_add.email
38
39=== modified file 'crm_claim_rma/crm_claim_rma_data.xml'
40--- crm_claim_rma/crm_claim_rma_data.xml 2013-02-11 14:26:42 +0000
41+++ crm_claim_rma/crm_claim_rma_data.xml 2013-08-01 00:20:39 +0000
42@@ -21,7 +21,8 @@
43 <record model="crm.case.section" id="section_after_sales_service">
44 <field name="name">After Sales Service</field>
45 <field name="code">ASV</field>
46- <field name="stage_ids" eval="[(4, ref('crm_claim.stage_claim1')), (4, ref('crm_claim.stage_claim2')), (4, ref('crm_claim.stage_claim3')), (4, ref('stage_claim5'))]"/>
47+ <field name="parent_id" ref="crm.section_sales_department"/>
48+ <!-- <field name="stage_ids" eval="[(4, ref('crm_claim.stage_claim1')), (4, ref('crm_claim.stage_claim2')), (4, ref('crm_claim.stage_claim3')), (4, ref('crm_claim.stage_claim5'))]"/> -->
49 </record>
50
51 <!--
52
53=== modified file 'crm_claim_rma/crm_claim_rma_view.xml'
54--- crm_claim_rma/crm_claim_rma_view.xml 2012-12-05 15:52:00 +0000
55+++ crm_claim_rma/crm_claim_rma_view.xml 2013-08-01 00:20:39 +0000
56@@ -28,7 +28,6 @@
57 <record id="view_crm_claim_lines_filter" model="ir.ui.view">
58 <field name="name">CRM - Claims Search</field>
59 <field name="model">claim.line</field>
60- <field name="type">search</field>
61 <field name="arch" type="xml">
62 <search string="Search Claims">
63 <filter icon="terp-check" string="Current" name="current"
64@@ -75,7 +74,6 @@
65 <record model="ir.ui.view" id="crm_claim_line_tree_view">
66 <field name="name">CRM - Claims Tree</field>
67 <field name="model">claim.line</field>
68- <field name="type">tree</field>
69 <field name="arch" type="xml">
70 <tree editable="top" string="Returned lines">
71 <field name="state"/>
72@@ -133,10 +131,10 @@
73
74 <!-- Picking follow -->
75 <!-- TREE -->
76+<!--
77 <record model="ir.ui.view" id="crm_picking_follow_tree_view">
78 <field name="name">CRM - Picking follow Tree</field>
79 <field name="model">picking.follow</field>
80- <field name="type">tree</field>
81 <field name="arch" type="xml">
82 <tree string="Picking follows">
83 <field name="picking_id"/>
84@@ -147,8 +145,9 @@
85 </tree>
86 </field>
87 </record>
88-
89+-->
90 <!-- FORM -->
91+<!--
92 <record model="ir.ui.view" id="crm_picking_follow_form_view">
93 <field name="name">CRM - Picking follow Form</field>
94 <field name="model">picking.follow</field>
95@@ -162,7 +161,7 @@
96 </form>
97 </field>
98 </record>
99-
100+-->
101 <!-- PRODUCT EXCHANGE -->
102 <!-- TREE -->
103 <!-- <record model="ir.ui.view" id="crm_product_exchange_tree_view">-->
104@@ -218,10 +217,16 @@
105 <field name="model">crm.claim</field>
106 <field name="inherit_id" ref="crm_claim.crm_case_claims_form_view"/>
107 <field name="arch" type="xml">
108+ <page string="Follow Up" position="after">
109+ <field name="invoice_ids" colspan="4" nolabel="1" readonly="1"/>
110+ <field name="picking_ids" colspan="4" nolabel="1" readonly="1"/>
111+ </page>
112+<!--
113 <xpath expr="/form/group/notebook/page[@string='Communication &amp; History']/field" position="after">
114 <field name="invoice_ids" colspan="4" nolabel="1" readonly="1"/>
115 <field name="picking_ids" colspan="4" nolabel="1" readonly="1"/>
116 </xpath>
117+-->
118 <field name="description" position="after">
119 <group name="Product Return" colspan="4">
120 <separator string="Product Return" colspan="4"/>
121@@ -343,7 +348,7 @@
122
123 <!-- Menu -->
124 <record model="ir.actions.act_window" id="crm_claim.crm_case_categ_claim0">
125- <field name="context">{'search_default_section_id': section_id, "search_default_user_id":uid, "stage_type":'claim'}</field>
126+ <field name="context">{"search_default_user_id":uid, "stage_type":'claim'}</field>
127 </record>
128
129
130
131=== modified file 'crm_claim_rma/res_company.py'
132--- crm_claim_rma/res_company.py 2012-09-12 09:29:21 +0000
133+++ crm_claim_rma/res_company.py 2013-08-01 00:20:39 +0000
134@@ -27,7 +27,7 @@
135 _inherit = "res.company"
136
137 _columns = {
138- 'crm_return_address_id': fields.many2one('res.partner.address', 'Crm return address', help="Default address where the customers has to send back the returned product in a crm claim. If empty the address is the company address"),
139+ 'crm_return_address_id': fields.many2one('res.partner', 'Crm return address', help="Default address where the customers has to send back the returned product in a crm claim. If empty the address is the company address"),
140 }
141
142 res_company()
143
144=== modified file 'crm_claim_rma/res_company_view.xml'
145--- crm_claim_rma/res_company_view.xml 2012-09-12 09:29:21 +0000
146+++ crm_claim_rma/res_company_view.xml 2013-08-01 00:20:39 +0000
147@@ -14,7 +14,6 @@
148 <field name="model">res.company</field>
149 <field name="inherit_id" ref="base.view_company_form" />
150 <field eval="16" name="priority"/>
151- <field name="type">form</field>
152 <field name="arch" type="xml">
153 <data>
154 <field name="company_registry" position="after">
155
156=== modified file 'crm_claim_rma/stock_view.xml'
157--- crm_claim_rma/stock_view.xml 2013-02-11 14:26:42 +0000
158+++ crm_claim_rma/stock_view.xml 2013-08-01 00:20:39 +0000
159@@ -14,7 +14,6 @@
160 <field name="model">stock.picking</field>
161 <field name="inherit_id" ref="stock.view_picking_in_form" />
162 <field eval="16" name="priority"/>
163- <field name="type">form</field>
164 <field name="arch" type="xml">
165 <data>
166 <xpath expr="/form/notebook/page[@string='Additional Info']/field[@name='type']" position="after">
167@@ -46,7 +45,6 @@
168 <field name="model">stock.picking</field>
169 <field name="inherit_id" ref="stock.view_picking_out_form" />
170 <field eval="16" name="priority"/>
171- <field name="type">form</field>
172 <field name="arch" type="xml">
173 <data>
174 <xpath expr="/form/notebook/page[@string='Additional info']/field[@name='type']" position="after">
175@@ -65,10 +63,9 @@
176 <field name="model">stock.warehouse</field>
177 <field name="inherit_id" ref="stock.view_warehouse" />
178 <field eval="16" name="priority"/>
179- <field name="type">form</field>
180 <field name="arch" type="xml">
181 <data>
182- <xpath expr="/form/field[@name='lot_output_id']" position="after">
183+ <xpath expr="/form/group/group/field[@name='lot_output_id']" position="after">
184 <field name="lot_rma_id"/>
185 <field name="lot_carrier_loss_id"/>
186 <field name="lot_breakage_loss_id"/>
187@@ -83,9 +80,8 @@
188 <field name="model">stock.picking</field>
189 <field name="inherit_id" ref="stock.view_picking_in_search" />
190 <field eval="16" name="priority"/>
191- <field name="type">form</field>
192 <field name="arch" type="xml">
193- <filter string="To invoice" position="after">
194+ <filter string="To Invoice" position="after">
195 <separator orientation="vertical"/>
196 <filter string="RMA" name="to_do" icon="terp-accessories-archiver-minus" domain="[('claim_picking', '=', 'False'), ('claim_id', '!=', 'False')]" />
197 </filter>
198
199=== modified file 'crm_claim_rma/wizard/claim_make_picking_from_picking_view.xml'
200--- crm_claim_rma/wizard/claim_make_picking_from_picking_view.xml 2012-09-17 14:54:41 +0000
201+++ crm_claim_rma/wizard/claim_make_picking_from_picking_view.xml 2013-08-01 00:20:39 +0000
202@@ -10,7 +10,6 @@
203 <record id="view_claim_picking_from_picking" model="ir.ui.view">
204 <field name="name">claim_picking</field>
205 <field name="model">claim_make_picking_from_picking.wizard</field>
206- <field name="type">form</field>
207 <field name="arch" type="xml">
208 <form string="Select lines to add in picking">
209 <separator string="Locations" colspan="4"/>
210
211=== modified file 'crm_claim_rma/wizard/claim_make_picking_view.xml'
212--- crm_claim_rma/wizard/claim_make_picking_view.xml 2012-09-17 14:54:41 +0000
213+++ crm_claim_rma/wizard/claim_make_picking_view.xml 2013-08-01 00:20:39 +0000
214@@ -10,7 +10,6 @@
215 <record id="view_claim_picking" model="ir.ui.view">
216 <field name="name">claim_picking</field>
217 <field name="model">claim_make_picking.wizard</field>
218- <field name="type">form</field>
219 <field name="arch" type="xml">
220 <form string="Select exchange lines to add in picking">
221 <separator string="Locations" colspan="4"/>
222
223=== modified file 'crm_claim_rma/wizard/get_empty_serial_view.xml'
224--- crm_claim_rma/wizard/get_empty_serial_view.xml 2012-09-03 12:19:17 +0000
225+++ crm_claim_rma/wizard/get_empty_serial_view.xml 2013-08-01 00:20:39 +0000
226@@ -27,7 +27,6 @@
227 <record id="view_get_empty_serial" model="ir.ui.view">
228 <field name="name">get_empty_serial</field>
229 <field name="model">get_empty_serial.wizard</field>
230- <field name="type">form</field>
231 <field name="arch" type="xml">
232 <form string="Select invoice">
233 <!-- field name="prodlot_ids"/ --> <!-- domain="[('partner_id','=',partner_id)]"/ -->
234
235=== modified file 'crm_claim_rma/wizard/returned_lines_from_invoice_wizard_view.xml'
236--- crm_claim_rma/wizard/returned_lines_from_invoice_wizard_view.xml 2012-09-12 09:29:21 +0000
237+++ crm_claim_rma/wizard/returned_lines_from_invoice_wizard_view.xml 2013-08-01 00:20:39 +0000
238@@ -27,7 +27,6 @@
239 <record id="view_create_return_invoice_form" model="ir.ui.view">
240 <field name="name">returned_lines_from_invoice_view</field>
241 <field name="model">returned_lines_from_invoice_invoice.wizard</field>
242- <field name="type">form</field>
243 <field name="arch" type="xml">
244 <form string="Select invoice">
245 <field name="invoice_id" domain="[('partner_id','=',partner_id)]"/>
246@@ -57,7 +56,6 @@
247 <record id="view_create_return_invoice_line_form" model="ir.ui.view">
248 <field name="name">returned_lines_from_invoice_line_wiew</field>
249 <field name="model">returned_lines_from_invoice_line.wizard</field>
250- <field name="type">form</field>
251 <field name="arch" type="xml">
252 <form string="Select return lines to create">
253 <separator string="Select return lines to create" colspan="4"/>
254@@ -74,7 +72,6 @@
255 <record model="ir.ui.view" id="temp_claim_line_tree_view">
256 <field name="name">temp_claim_line_Tree</field>
257 <field name="model">temp.claim.line</field>
258- <field name="type">tree</field>
259 <field name="arch" type="xml">
260 <tree string="Confirm return lines">
261 <field name="invoice_id"/>
262
263=== modified file 'crm_claim_rma/wizard/returned_lines_from_serial_wizard_view.xml'
264--- crm_claim_rma/wizard/returned_lines_from_serial_wizard_view.xml 2011-10-12 13:01:59 +0000
265+++ crm_claim_rma/wizard/returned_lines_from_serial_wizard_view.xml 2013-08-01 00:20:39 +0000
266@@ -27,7 +27,6 @@
267 <record id="view_create_return_serial_form" model="ir.ui.view">
268 <field name="name">returned_lines_from_serial_wiew</field>
269 <field name="model">returned_lines_from_serial.wizard</field>
270- <field name="type">form</field>
271 <field name="arch" type="xml">
272 <form string="Select serial numbers to create">
273 <group col="3" colspan="4">
274
275=== modified file 'product_warranty/product_warranty_view.xml'
276--- product_warranty/product_warranty_view.xml 2013-07-22 19:26:19 +0000
277+++ product_warranty/product_warranty_view.xml 2013-08-01 00:20:39 +0000
278@@ -26,7 +26,6 @@
279 <record model="ir.ui.view" id="product_return_instructions_tree_view">
280 <field name="name">product.return.instructions.tree</field>
281 <field name="model">return.instruction</field>
282- <field name="type">tree</field>
283 <field name="arch" type="xml">
284 <tree string="Return instructions">
285 <field name="name"/>
286@@ -40,7 +39,6 @@
287 <record model="ir.ui.view" id="product_return_instructions_form_view">
288 <field name="name">product.return.instructions.form</field>
289 <field name="model">return.instruction</field>
290- <field name="type">form</field>
291 <field name="arch" type="xml">
292 <form string="Return instructions">
293 <field name="name"/>
294@@ -53,7 +51,6 @@
295
296 <record id="product_return_instructions_action" model="ir.actions.act_window">
297 <field name="name">Products return instructions</field>
298- <field name="type">ir.actions.act_window</field>
299 <field name="res_model">return.instruction</field>
300 <field name="view_type">form</field>
301 <field name="view_mode">tree,form</field>
302@@ -70,7 +67,6 @@
303 <field name="name">product.supplierinfo.warranty.tree</field>
304 <field name="model">product.supplierinfo</field>
305 <field name="inherit_id" ref="product.product_supplierinfo_tree_view" />
306- <field name="type">tree</field>
307 <field name="arch" type="xml">
308 <field position="after" name="delay">
309 <field name="warranty_duration"/>
310@@ -87,7 +83,6 @@
311 <field name="name">product.supplierinfo.warranty.form</field>
312 <field name="model">product.supplierinfo</field>
313 <field name="inherit_id" ref="product.product_supplierinfo_form_view" />
314- <field name="type">form</field>
315 <field name="arch" type="xml">
316 <field position="after" name="delay">
317 <field name="warranty_duration"/>

Subscribers

People subscribed via source and target branches