Merge lp:~serpent-consulting-services/openerp-rma/1009940-SerpentCS into lp:~openerprma/openerp-rma/6.1

Proposed by Serpent Consulting Services
Status: Rejected
Rejected by: Joël Grand-Guillaume @ camptocamp
Proposed branch: lp:~serpent-consulting-services/openerp-rma/1009940-SerpentCS
Merge into: lp:~openerprma/openerp-rma/6.1
Diff against target: 108 lines (+18/-17)
6 files modified
crm_claim_rma/security/ir.model.access.csv (+10/-10)
crm_claim_rma/wizard/exchange_from_returned_lines.py (+1/-1)
crm_claim_rma/wizard/picking_from_exchange_lines.py (+1/-1)
crm_claim_rma/wizard/picking_from_returned_lines.py (+2/-2)
crm_claim_rma/wizard/refund_from_returned_lines.py (+3/-2)
crm_claim_rma/wizard/returned_lines_from_invoice.py (+1/-1)
To merge this branch: bzr merge lp:~serpent-consulting-services/openerp-rma/1009940-SerpentCS
Reviewer Review Type Date Requested Status
esamyn Disapprove
Review via email: mp+109163@code.launchpad.net
To post a comment you must log in.
Revision history for this message
esamyn (esamyn) wrote :

Hi,

Thank you for your corrections. I don't merge your proposal because the original M2M syntaxe is a new simpliest way to do this in 6.1 and works fine (unless you had trouble with it ?)

But I updated the security CSV FIX you made in the trunk

Thank you again

Manu

review: Disapprove
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Manu,

Thanks for reviewing.

You see this fix because this was filed against 6.0.

If I am not wrong, it would be nicer to get this module working in 6.0 too just for the sake of backward-compatibility.

Thanks for considering CSV ones.

Best Regards,
SerpentCS.

Unmerged revisions

23. By Serpent Consulting Services

[FIX] crm_claim_rma : Corrected the many2many field definition and CSV

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'crm_claim_rma/security/ir.model.access.csv'
2--- crm_claim_rma/security/ir.model.access.csv 2011-10-31 14:58:09 +0000
3+++ crm_claim_rma/security/ir.model.access.csv 2012-06-07 14:55:22 +0000
4@@ -1,10 +1,10 @@
5-"id","name","model_id","group_id","perm_read","perm_write","perm_create","perm_unlink"
6-"access_substate_user","substate.substate.user","substate.substate","Sales / User - All Leads","True","True","True",
7-"access_return_line_user","return.line.user","return.line","Sales / User - All Leads","True","True","True",
8-"access_exchange_user","product.exchange.user","product.exchange","Sales / User - All Leads","True","True","True",
9-"access_substate_manager","substate.substate.manager","substate.substate","Sales / Manager","True","True","True","True"
10-"access_return_line_manager","return.line.manager","return.line","Sales / Manager","True","True","True","True"
11-"access_exchange_manager","product.exchange.manager","product.exchange","Sales / Manager","True","True","True","True"
12-"access_substate_user","substate.substate.user","substate.substate","Sales / User - Own Leads Only","True","True","True",
13-"access_return_line_user","return.line.user","return.line","Sales / User - Own Leads Only","True","True","True",
14-"access_exchange_user","product.exchange.user","product.exchange","Sales / User - Own Leads Only","True","True","True",
15+"id","name","model_id","group_id/id","perm_read","perm_write","perm_create","perm_unlink"
16+"access_substate_user","substate.substate.user","substate.substate","base.group_sale_salesman_all_leads","True","True","True",
17+"access_return_line_user","return.line.user","return.line","base.group_sale_salesman_all_leads","True","True","True",
18+"access_exchange_user","product.exchange.user","product.exchange","base.group_sale_salesman_all_leads","True","True","True",
19+"access_substate_manager","substate.substate.manager","substate.substate","base.group_sale_manager","True","True","True","True"
20+"access_return_line_manager","return.line.manager","return.line","base.group_sale_manager","True","True","True","True"
21+"access_exchange_manager","product.exchange.manager","product.exchange","base.group_sale_manager","True","True","True","True"
22+"access_substate_user","substate.substate.user","substate.substate","base.group_sale_salesman","True","True","True",
23+"access_return_line_user","return.line.user","return.line","base.group_sale_salesman","True","True","True",
24+"access_exchange_user","product.exchange.user","product.exchange","base.group_sale_salesman","True","True","True",
25
26=== modified file 'crm_claim_rma/wizard/exchange_from_returned_lines.py'
27--- crm_claim_rma/wizard/exchange_from_returned_lines.py 2011-10-31 14:58:09 +0000
28+++ crm_claim_rma/wizard/exchange_from_returned_lines.py 2012-06-07 14:55:22 +0000
29@@ -29,7 +29,7 @@
30 _name='exchange_from_returned_lines.wizard'
31 _description='Wizard to create an exchange from selected return lines'
32 _columns = {
33- 'exchange_line_ids' : fields.many2many('temp.exchange.line', string='Selected exchange lines'),
34+ 'exchange_line_ids' : fields.many2many('temp.exchange.line','exchange_return_line_exchange_line_rel','exchange_return_line_id','temp_exchange_line_id','Selected exchange lines'),
35 }
36
37 # Get selected lines to add to exchange
38
39=== modified file 'crm_claim_rma/wizard/picking_from_exchange_lines.py'
40--- crm_claim_rma/wizard/picking_from_exchange_lines.py 2011-10-31 14:58:09 +0000
41+++ crm_claim_rma/wizard/picking_from_exchange_lines.py 2012-06-07 14:55:22 +0000
42@@ -29,7 +29,7 @@
43 _name='picking_out_from_exchange_lines.wizard'
44 _description='Wizard to create a picking out from selected exchange lines'
45 _columns = {
46- 'exchange_line_ids' : fields.many2many('temp.exchange.line', string='Selected exchange lines'),
47+ 'exchange_line_ids' : fields.many2many('temp.exchange.line', 'picking_out_exchange_line_rel','picking_out_from_exchange_line_id','exchange_line_id','Selected exchange lines'),
48 }
49
50 # Get selected lines to add to picking in
51
52=== modified file 'crm_claim_rma/wizard/picking_from_returned_lines.py'
53--- crm_claim_rma/wizard/picking_from_returned_lines.py 2011-10-31 14:58:09 +0000
54+++ crm_claim_rma/wizard/picking_from_returned_lines.py 2012-06-07 14:55:22 +0000
55@@ -30,7 +30,7 @@
56 _description='Wizard to create a picking in from selected return lines'
57 _columns = {
58 'return_line_location' : fields.many2one('stock.location', 'Dest. Location',help="Location where the system will stock the returned products.", select=True),
59- 'return_line_ids' : fields.many2many('temp.return.line',string='Selected return lines'),
60+ 'return_line_ids' : fields.many2many('temp.return.line','pickin_in_return_line_rel','picking_in_from_returned_line_id','return_line_id','Selected return lines'),
61 }
62
63 # Get selected lines to add to picking in
64@@ -130,7 +130,7 @@
65 _name='picking_out_from_returned_lines.wizard'
66 _description='Wizard to create a picking out from selected return lines'
67 _columns = {
68- 'return_line_ids' : fields.many2many('temp.return.line', string='Selected return lines'),
69+ 'return_line_ids' : fields.many2many('temp.return.line', 'picking_out_return_line_rel','picking_out_from_returned_line_id','return_line_id','Selected return lines'),
70 }
71
72 # Get selected lines to add to picking in
73
74=== modified file 'crm_claim_rma/wizard/refund_from_returned_lines.py'
75--- crm_claim_rma/wizard/refund_from_returned_lines.py 2011-11-01 14:55:12 +0000
76+++ crm_claim_rma/wizard/refund_from_returned_lines.py 2012-06-07 14:55:22 +0000
77@@ -29,7 +29,7 @@
78 _description='Wizard to create an refund for selected product return lines'
79 _columns = {
80 'refund_journal' : fields.many2one('account.journal', 'Refund journal', select=True),
81- 'return_line_ids' : fields.many2many('temp.return.line', string='Selected return lines'),
82+ 'return_line_ids' : fields.many2many('temp.return.line', 'refund_from_return_lines_wizard_return_line_rel','refund_from_return_line_id','return_line_rel','Selected return lines'),
83 }
84
85 # Get selected lines to add to picking in
86@@ -53,7 +53,8 @@
87 def _get_journal(self, cr, uid,context):
88 #('company_id','=',claim_id.company_id.id)
89 # ,('refund_journal','=','True')
90- return self.pool.get('account.journal').search(cr, uid, [('type','=','sale_refund')],limit=1)[0]
91+ sale_refund_journal = self.pool.get('account.journal').search(cr, uid, [('type','=','sale_refund')],limit=1)
92+ return sale_refund_journal and sale_refund_journal[0] or False
93
94 _defaults = {
95 'return_line_ids': _get_selected_lines,
96
97=== modified file 'crm_claim_rma/wizard/returned_lines_from_invoice.py'
98--- crm_claim_rma/wizard/returned_lines_from_invoice.py 2011-10-31 14:58:09 +0000
99+++ crm_claim_rma/wizard/returned_lines_from_invoice.py 2012-06-07 14:55:22 +0000
100@@ -98,7 +98,7 @@
101 _name='returned_lines_from_invoice_line.wizard'
102 _description='Wizard to create product return lines from invoice'
103 _columns = {
104- 'return_line_ids' : fields.many2many('temp.return.line', string='Return lines'),
105+ 'return_line_ids' : fields.many2many('temp.return.line', 'returned_lines_from_invoice_line_return_line_rel','returned_lines_from_invoice_line_id','temp_return_line_id','Return lines'),
106 }
107
108 # Get possible returns from invoice

Subscribers

People subscribed via source and target branches