Merge lp:~camptocamp/openerp-rma/7.0-updates into lp:~savoirfairelinux-openerp/openerp-rma/7.0-fix-reference-to-res-partner-address

Proposed by Romain Deheele - Camptocamp
Status: Merged
Merged at revision: 69
Proposed branch: lp:~camptocamp/openerp-rma/7.0-updates
Merge into: lp:~savoirfairelinux-openerp/openerp-rma/7.0-fix-reference-to-res-partner-address
Diff against target: 331 lines (+45/-44)
6 files modified
crm_claim_rma/crm_claim_rma_view.xml (+5/-3)
crm_claim_rma/wizard/claim_make_picking.py (+2/-3)
crm_claim_rma/wizard/claim_make_picking_from_picking.py (+2/-2)
crm_claim_rma/wizard/picking_from_exchange_lines.py (+10/-10)
crm_claim_rma/wizard/picking_from_returned_lines.py (+13/-13)
crm_claim_rma/wizard/refund_from_returned_lines.py (+13/-13)
To merge this branch: bzr merge lp:~camptocamp/openerp-rma/7.0-updates
Reviewer Review Type Date Requested Status
Maxime Chambreuil (http://www.savoirfairelinux.com) Approve
Review via email: mp+180854@code.launchpad.net

Description of the change

Hello Maxime,

I see your branch with v7 port updates.
I find other v7 port needs about res.partner.address in wizard.
I propose you to merge it in your branch.

Best regards,

Romain

To post a comment you must log in.
Revision history for this message
Romain Deheele - Camptocamp (romaindeheele) wrote :

+ some fixes about views links.

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'crm_claim_rma/crm_claim_rma_view.xml'
--- crm_claim_rma/crm_claim_rma_view.xml 2013-05-01 20:32:16 +0000
+++ crm_claim_rma/crm_claim_rma_view.xml 2013-08-19 12:18:10 +0000
@@ -323,15 +323,17 @@
323 res_model="account.invoice" 323 res_model="account.invoice"
324 src_model="crm.claim"/> 324 src_model="crm.claim"/>
325<!-- Right side link to picking in --> 325<!-- Right side link to picking in -->
326 <act_window 326 <act_window
327 domain="[('type', '=', 'in'),('partner_id', 'in', [partner_id])]"327 context="{'search_default_partner_id': [partner_id]}"
328 domain="[('type', '=', 'in')]"
328 id="act_crm_claim_rma_picking_in" 329 id="act_crm_claim_rma_picking_in"
329 name="Partner picking IN" 330 name="Partner picking IN"
330 res_model="stock.picking" 331 res_model="stock.picking"
331 src_model="crm.claim"/> 332 src_model="crm.claim"/>
332<!-- Right side link to picking out -->333<!-- Right side link to picking out -->
333 <act_window 334 <act_window
334 domain="[('type', '=', 'out'),('partner_id', 'in', [partner_id])]"335 context="{'search_default_partner_id': [partner_id]}"
336 domain="[('type', '=', 'out')]"
335 id="act_crm_claim_rma_picking_out" 337 id="act_crm_claim_rma_picking_out"
336 name="Partner picking OUT" 338 name="Partner picking OUT"
337 res_model="stock.picking" 339 res_model="stock.picking"
338340
=== modified file 'crm_claim_rma/wizard/claim_make_picking.py'
--- crm_claim_rma/wizard/claim_make_picking.py 2012-10-11 18:31:50 +0000
+++ crm_claim_rma/wizard/claim_make_picking.py 2013-08-19 12:18:10 +0000
@@ -116,7 +116,6 @@
116 view_name = 'stock.picking.in.form'116 view_name = 'stock.picking.in.form'
117 view_id = view_obj.search(cr, uid, [117 view_id = view_obj.search(cr, uid, [
118 ('xml_id', '=', view_xml_id),118 ('xml_id', '=', view_xml_id),
119 ('model', '=', 'stock.picking'),
120 ('type', '=', 'form'),119 ('type', '=', 'form'),
121 ('name', '=', view_name)120 ('name', '=', view_name)
122 ], context=context)[0]121 ], context=context)[0]
@@ -130,7 +129,7 @@
130 'move_type': 'one', # direct129 'move_type': 'one', # direct
131 'state': 'draft',130 'state': 'draft',
132 'date': time.strftime(DEFAULT_SERVER_DATETIME_FORMAT),131 'date': time.strftime(DEFAULT_SERVER_DATETIME_FORMAT),
133 'address_id': claim.partner_address_id.id,132 'partner_id': claim.partner_id.id,
134 'invoice_state': "none",133 'invoice_state': "none",
135 'company_id': claim.company_id.id,134 'company_id': claim.company_id.id,
136 'location_id': wizard.claim_line_source_location.id,135 'location_id': wizard.claim_line_source_location.id,
@@ -150,7 +149,7 @@
150 'product_id': wizard_claim_line.product_id.id,149 'product_id': wizard_claim_line.product_id.id,
151 'product_qty': wizard_claim_line.product_returned_quantity,150 'product_qty': wizard_claim_line.product_returned_quantity,
152 'product_uom': wizard_claim_line.product_id.uom_id.id,151 'product_uom': wizard_claim_line.product_id.uom_id.id,
153 'address_id': claim.partner_address_id.id,152 'partner_id': claim.partner_id.id,
154 'prodlot_id': wizard_claim_line.prodlot_id.id,153 'prodlot_id': wizard_claim_line.prodlot_id.id,
155 # 'tracking_id':154 # 'tracking_id':
156 'picking_id': picking_id,155 'picking_id': picking_id,
157156
=== modified file 'crm_claim_rma/wizard/claim_make_picking_from_picking.py'
--- crm_claim_rma/wizard/claim_make_picking_from_picking.py 2012-09-19 16:25:16 +0000
+++ crm_claim_rma/wizard/claim_make_picking_from_picking.py 2013-08-19 12:18:10 +0000
@@ -93,7 +93,7 @@
93 'move_type': 'one', # direct93 'move_type': 'one', # direct
94 'state': 'draft',94 'state': 'draft',
95 'date': time.strftime(DEFAULT_SERVER_DATETIME_FORMAT),95 'date': time.strftime(DEFAULT_SERVER_DATETIME_FORMAT),
96 'address_id': prev_picking.address_id.id,96 'partner_id': prev_picking.partner_id.id,
97 'invoice_state': "none",97 'invoice_state': "none",
98 'company_id': prev_picking.company_id.id,98 'company_id': prev_picking.company_id.id,
99 'location_id': wizard.picking_line_source_location.id,99 'location_id': wizard.picking_line_source_location.id,
@@ -112,7 +112,7 @@
112 'product_id': wizard_picking_line.product_id.id,112 'product_id': wizard_picking_line.product_id.id,
113 'product_qty': wizard_picking_line.product_qty,113 'product_qty': wizard_picking_line.product_qty,
114 'product_uom': wizard_picking_line.product_uom.id,114 'product_uom': wizard_picking_line.product_uom.id,
115 'address_id': prev_picking.address_id.id,115 'partner_id': prev_picking.partner_id.id,
116 'prodlot_id': wizard_picking_line.prodlot_id.id,116 'prodlot_id': wizard_picking_line.prodlot_id.id,
117 # 'tracking_id':117 # 'tracking_id':
118 'picking_id': picking_id,118 'picking_id': picking_id,
119119
=== modified file 'crm_claim_rma/wizard/picking_from_exchange_lines.py'
--- crm_claim_rma/wizard/picking_from_exchange_lines.py 2012-08-28 12:57:05 +0000
+++ crm_claim_rma/wizard/picking_from_exchange_lines.py 2013-08-19 12:18:10 +0000
@@ -31,7 +31,7 @@
31 _columns = {31 _columns = {
32 'exchange_line_ids' : fields.many2many('temp.exchange.line', string='Selected exchange lines'),32 'exchange_line_ids' : fields.many2many('temp.exchange.line', string='Selected exchange lines'),
33 }33 }
34 34
35 # Get selected lines to add to picking in35 # Get selected lines to add to picking in
36 def _get_selected_lines(self, cr, uid,context):36 def _get_selected_lines(self, cr, uid,context):
37 exchange_line_ids = self.pool.get('crm.claim').read(cr, uid, context['active_id'], ['product_exchange_ids'])['product_exchange_ids'] 37 exchange_line_ids = self.pool.get('crm.claim').read(cr, uid, context['active_id'], ['product_exchange_ids'])['product_exchange_ids']
@@ -46,13 +46,13 @@
46 'returned_prodlot_id' : line.returned_product_serial.id,46 'returned_prodlot_id' : line.returned_product_serial.id,
47 'replacement_product_id': line.replacement_product.id,47 'replacement_product_id': line.replacement_product.id,
48 'replacement_product_quantity' : line.replacement_product_qty,48 'replacement_product_quantity' : line.replacement_product_qty,
49 'replacement_prodlot_id': line.replacement_product_serial.id, 49 'replacement_prodlot_id': line.replacement_product_serial.id,
50 }))50 }))
51 return M2M 51 return M2M
52 52
53 _defaults = {53 _defaults = {
54 'exchange_line_ids': _get_selected_lines,54 'exchange_line_ids': _get_selected_lines,
55 } 55 }
5656
57 # If "Cancel" button pressed57 # If "Cancel" button pressed
58 def action_cancel(self,cr,uid,ids,conect=None):58 def action_cancel(self,cr,uid,ids,conect=None):
@@ -70,13 +70,13 @@
70 'move_type': 'one', # direct70 'move_type': 'one', # direct
71 'state': 'draft',71 'state': 'draft',
72 'date': time.strftime('%Y-%m-%d %H:%M:%S'),72 'date': time.strftime('%Y-%m-%d %H:%M:%S'),
73 'address_id': claim_id.partner_address_id.id,73 'partner_id': claim_id.partner_id.id,
74 'invoice_state': "none",74 'invoice_state': "none",
75 'company_id': claim_id.company_id.id,75 'company_id': claim_id.company_id.id,
76 # 'stock_journal_id': fields.many2one('stock.journal','Stock Journal', select=True),76 # 'stock_journal_id': fields.many2one('stock.journal','Stock Journal', select=True),
77 'location_id': self.pool.get('stock.warehouse').read(cr, uid, [1],['lot_input_id'])[0]['lot_input_id'][0],77 'location_id': self.pool.get('stock.warehouse').read(cr, uid, [1],['lot_input_id'])[0]['lot_input_id'][0],
78 'location_dest_id': claim_id.partner_id.property_stock_customer.id,78 'location_dest_id': claim_id.partner_id.property_stock_customer.id,
79 'note' : 'RMA picking in', 79 'note' : 'RMA picking in',
80 })80 })
81 # Create picking lines81 # Create picking lines
82 for exchange_line in exchange_lines.exchange_line_ids:82 for exchange_line in exchange_lines.exchange_line_ids:
@@ -89,7 +89,7 @@
89 'product_id': exchange_line.replacement_product_id.id,89 'product_id': exchange_line.replacement_product_id.id,
90 'product_qty': exchange_line.replacement_product_quantity,90 'product_qty': exchange_line.replacement_product_quantity,
91 'product_uom': exchange_line.replacement_product_id.uom_id.id,91 'product_uom': exchange_line.replacement_product_id.uom_id.id,
92 'address_id': claim_id.partner_address_id.id,92 'partner_id': claim_id.partner_id.id,
93 'prodlot_id': exchange_line.replacement_prodlot_id,93 'prodlot_id': exchange_line.replacement_prodlot_id,
94 # 'tracking_id': 94 # 'tracking_id':
95 'picking_id': picking_id,95 'picking_id': picking_id,
@@ -99,7 +99,7 @@
99 'company_id': claim_id.company_id.id,99 'company_id': claim_id.company_id.id,
100 'location_id': self.pool.get('stock.warehouse').read(cr, uid, [1],['lot_input_id'])[0]['lot_input_id'][0],100 'location_id': self.pool.get('stock.warehouse').read(cr, uid, [1],['lot_input_id'])[0]['lot_input_id'][0],
101 'location_dest_id': claim_id.partner_id.property_stock_customer.id,101 'location_dest_id': claim_id.partner_id.property_stock_customer.id,
102 'note': 'RMA Refound', 102 'note': 'RMA Refound',
103 })103 })
104 view = {104 view = {
105 'name': 'Customer Picking OUT',105 'name': 'Customer Picking OUT',
@@ -110,7 +110,7 @@
110 'type': 'ir.actions.act_window',110 'type': 'ir.actions.act_window',
111 }111 }
112 return view112 return view
113 113
114picking_out_from_exchange_lines()114picking_out_from_exchange_lines()
115115
116# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:116# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
117117
=== modified file 'crm_claim_rma/wizard/picking_from_returned_lines.py'
--- crm_claim_rma/wizard/picking_from_returned_lines.py 2012-09-12 09:29:21 +0000
+++ crm_claim_rma/wizard/picking_from_returned_lines.py 2013-08-19 12:18:10 +0000
@@ -32,7 +32,7 @@
32 'claim_line_location' : fields.many2one('stock.location', 'Dest. Location',help="Location where the system will stock the returned products.", select=True),32 'claim_line_location' : fields.many2one('stock.location', 'Dest. Location',help="Location where the system will stock the returned products.", select=True),
33 'claim_line_ids' : fields.many2many('temp.claim.line',string='Selected return lines'),33 'claim_line_ids' : fields.many2many('temp.claim.line',string='Selected return lines'),
34 }34 }
35 35
36 # Get selected lines to add to picking in36 # Get selected lines to add to picking in
37 def _get_selected_lines(self, cr, uid,context):37 def _get_selected_lines(self, cr, uid,context):
38 returned_line_ids = self.pool.get('crm.claim').read(cr, uid, context['active_id'], ['claim_line_ids'])['claim_line_ids'] 38 returned_line_ids = self.pool.get('crm.claim').read(cr, uid, context['active_id'], ['claim_line_ids'])['claim_line_ids']
@@ -53,12 +53,12 @@
53 # Get default destination location53 # Get default destination location
54 def _get_dest_loc(self, cr, uid,context):54 def _get_dest_loc(self, cr, uid,context):
55 return self.pool.get('stock.warehouse').read(cr, uid, [1],['lot_input_id'])[0]['lot_input_id'][0] 55 return self.pool.get('stock.warehouse').read(cr, uid, [1],['lot_input_id'])[0]['lot_input_id'][0]
56 56
57 _defaults = {57 _defaults = {
58 'claim_line_ids': _get_selected_lines,58 'claim_line_ids': _get_selected_lines,
59 'claim_line_location' : _get_dest_loc,59 'claim_line_location' : _get_dest_loc,
60 } 60 }
61 61
62 # If "Cancel" button pressed62 # If "Cancel" button pressed
63 def action_cancel(self,cr,uid,ids,conect=None):63 def action_cancel(self,cr,uid,ids,conect=None):
64 return {'type': 'ir.actions.act_window_close',}64 return {'type': 'ir.actions.act_window_close',}
@@ -84,7 +84,7 @@
84 'move_type': 'one', # direct84 'move_type': 'one', # direct
85 'state': 'draft',85 'state': 'draft',
86 'date': time.strftime('%Y-%m-%d %H:%M:%S'),86 'date': time.strftime('%Y-%m-%d %H:%M:%S'),
87 'address_id': claim_id.partner_address_id.id,87 'partner_id': claim_id.partner_id.id,
88 'invoice_state': "none",88 'invoice_state': "none",
89 'company_id': claim_id.company_id.id,89 'company_id': claim_id.company_id.id,
90 'location_id': location,90 'location_id': location,
@@ -103,7 +103,7 @@
103 'product_id': picking_line.product_id.id,103 'product_id': picking_line.product_id.id,
104 'product_qty': picking_line.product_returned_quantity,104 'product_qty': picking_line.product_returned_quantity,
105 'product_uom': picking_line.product_id.uom_id.id,105 'product_uom': picking_line.product_id.uom_id.id,
106 'address_id': claim_id.partner_address_id.id,106 'partner_id': claim_id.partner_id.id,
107 'prodlot_id': picking_line.prodlot_id.id,107 'prodlot_id': picking_line.prodlot_id.id,
108 # 'tracking_id': 108 # 'tracking_id':
109 'picking_id': picking_id,109 'picking_id': picking_id,
@@ -125,7 +125,7 @@
125 'res_model': 'stock.picking',125 'res_model': 'stock.picking',
126 'type': 'ir.actions.act_window',126 'type': 'ir.actions.act_window',
127 }127 }
128 128
129picking_in_from_returned_lines()129picking_in_from_returned_lines()
130130
131# Class to create a picking out from selected return lines131# Class to create a picking out from selected return lines
@@ -135,7 +135,7 @@
135 _columns = {135 _columns = {
136 'claim_line_ids' : fields.many2many('temp.claim.line', string='Selected return lines'),136 'claim_line_ids' : fields.many2many('temp.claim.line', string='Selected return lines'),
137 }137 }
138 138
139 # Get selected lines to add to picking in139 # Get selected lines to add to picking in
140 def _get_selected_lines(self, cr, uid,context):140 def _get_selected_lines(self, cr, uid,context):
141 returned_line_ids = self.pool.get('crm.claim').read(cr, uid, context['active_id'], ['claim_line_ids'])['claim_line_ids'] 141 returned_line_ids = self.pool.get('crm.claim').read(cr, uid, context['active_id'], ['claim_line_ids'])['claim_line_ids']
@@ -151,11 +151,11 @@
151 'prodlot_id' : line.prodlot_id.id,151 'prodlot_id' : line.prodlot_id.id,
152 'price_unit' : line.unit_sale_price,152 'price_unit' : line.unit_sale_price,
153 }))153 }))
154 return M2M 154 return M2M
155 155
156 _defaults = {156 _defaults = {
157 'claim_line_ids': _get_selected_lines,157 'claim_line_ids': _get_selected_lines,
158 } 158 }
159159
160 # If "Cancel" button pressed160 # If "Cancel" button pressed
161 def action_cancel(self,cr,uid,ids,context=None):161 def action_cancel(self,cr,uid,ids,context=None):
@@ -180,7 +180,7 @@
180 'move_type': 'one', # direct180 'move_type': 'one', # direct
181 'state': 'draft',181 'state': 'draft',
182 'date': time.strftime('%Y-%m-%d %H:%M:%S'),182 'date': time.strftime('%Y-%m-%d %H:%M:%S'),
183 'address_id': claim_id.partner_address_id.id,183 'partner_id': claim_id.partner_id.id,
184 'invoice_state': "none",184 'invoice_state': "none",
185 'company_id': claim_id.company_id.id,185 'company_id': claim_id.company_id.id,
186 # 'stock_journal_id': fields.many2one('stock.journal','Stock Journal', select=True),186 # 'stock_journal_id': fields.many2one('stock.journal','Stock Journal', select=True),
@@ -200,7 +200,7 @@
200 'product_id': picking_line.product_id.id,200 'product_id': picking_line.product_id.id,
201 'product_qty': picking_line.product_returned_quantity,201 'product_qty': picking_line.product_returned_quantity,
202 'product_uom': picking_line.product_id.uom_id.id,202 'product_uom': picking_line.product_id.uom_id.id,
203 'address_id': claim_id.partner_address_id.id,203 'partner_id': claim_id.partner_id.id,
204 'prodlot_id': picking_line.prodlot_id.id,204 'prodlot_id': picking_line.prodlot_id.id,
205 # 'tracking_id': 205 # 'tracking_id':
206 'picking_id': picking_id,206 'picking_id': picking_id,
207207
=== modified file 'crm_claim_rma/wizard/refund_from_returned_lines.py'
--- crm_claim_rma/wizard/refund_from_returned_lines.py 2012-09-03 10:06:46 +0000
+++ crm_claim_rma/wizard/refund_from_returned_lines.py 2013-08-19 12:18:10 +0000
@@ -31,7 +31,7 @@
31 'refund_journal' : fields.many2one('account.journal', 'Refund journal', select=True),31 'refund_journal' : fields.many2one('account.journal', 'Refund journal', select=True),
32 'claim_line_ids' : fields.many2many('temp.claim.line', string='Selected return lines'),32 'claim_line_ids' : fields.many2many('temp.claim.line', string='Selected return lines'),
33 }33 }
34 34
35 # Get selected lines to add to picking in35 # Get selected lines to add to picking in
36 def _get_selected_lines(self, cr, uid,context):36 def _get_selected_lines(self, cr, uid,context):
37 returned_line_ids = self.pool.get('crm.claim').read(cr, uid, context['active_id'], ['claim_line_ids'])['claim_line_ids'] 37 returned_line_ids = self.pool.get('crm.claim').read(cr, uid, context['active_id'], ['claim_line_ids'])['claim_line_ids']
@@ -47,18 +47,18 @@
47 'prodlot_id' : line.prodlot_id.id,47 'prodlot_id' : line.prodlot_id.id,
48 'price_unit' : line.unit_sale_price,48 'price_unit' : line.unit_sale_price,
49 }))49 }))
50 return M2M 50 return M2M
5151
52 # Get default journal52 # Get default journal
53 def _get_journal(self, cr, uid,context):53 def _get_journal(self, cr, uid,context):
54 #('company_id','=',claim_id.company_id.id)54 #('company_id','=',claim_id.company_id.id)
55 # ,('refund_journal','=','True')55 # ,('refund_journal','=','True')
56 return self.pool.get('account.journal').search(cr, uid, [('type','=','sale_refund')],limit=1)[0] 56 return self.pool.get('account.journal').search(cr, uid, [('type','=','sale_refund')],limit=1)[0]
57 57
58 _defaults = {58 _defaults = {
59 'claim_line_ids': _get_selected_lines,59 'claim_line_ids': _get_selected_lines,
60 'refund_journal' : _get_journal,60 'refund_journal' : _get_journal,
61 } 61 }
6262
63 # On "Cancel" button63 # On "Cancel" button
64 def action_cancel(self,cr,uid,ids,context=None):64 def action_cancel(self,cr,uid,ids,context=None):
@@ -85,22 +85,22 @@
85 'reference_type': 'none',85 'reference_type': 'none',
86 'date_invoice': time.strftime('%Y-%m-%d %H:%M:%S'),86 'date_invoice': time.strftime('%Y-%m-%d %H:%M:%S'),
87 # 'date_due':87 # 'date_due':
88 'address_contact_id' : claim_id.partner_address_id.id,88 'partner_id' : claim_id.partner_id.id,
89 'address_invoice_id' : claim_id.partner_address_id.id,89 'commercial_partner_id' : claim_id.partner_id.id,
90 'account_id' : claim_id.partner_id.property_account_receivable.id,90 'account_id' : claim_id.partner_id.property_account_receivable.id,
91 'currency_id' : claim_id.company_id.currency_id.id, # from invoice ???91 'currency_id' : claim_id.company_id.currency_id.id, # from invoice ???
92 'journal_id' : refund.refund_journal.id,92 'journal_id' : refund.refund_journal.id,
93 'company_id' : claim_id.company_id.id,93 'company_id' : claim_id.company_id.id,
94 'comment' : 'RMA Refund',94 'comment' : 'RMA Refund',
95 'claim_id': claim_id.id,95 'claim_id': claim_id.id,
96 }) 96 })
97 # Create invoice lines 97 # Create invoice lines
98 for refund_line in refund.claim_line_ids: 98 for refund_line in refund.claim_line_ids:
99 if refund_line.invoice_id:99 if refund_line.invoice_id:
100 invoice_line_id = self.pool.get('account.invoice.line').create(cr, uid, {100 invoice_line_id = self.pool.get('account.invoice.line').create(cr, uid, {
101 'name' : refund_line.product_id.name_template,101 'name' : refund_line.product_id.name_template,
102 'origin' : claim_id.sequence, 102 'origin' : claim_id.sequence,
103 'invoice_id' : invoice_id, 103 'invoice_id' : invoice_id,
104 'uos_id' : refund_line.product_id.uom_id.id,104 'uos_id' : refund_line.product_id.uom_id.id,
105 'product_id':refund_line.product_id.id,105 'product_id':refund_line.product_id.id,
106 'account_id': claim_id.partner_id.property_account_receivable.id, # refund_line.product_id.property_account_expense.id,106 'account_id': claim_id.partner_id.property_account_receivable.id, # refund_line.product_id.property_account_expense.id,
@@ -111,7 +111,7 @@
111# 'account_analytic_id':111# 'account_analytic_id':
112 'company_id' : claim_id.company_id.id,112 'company_id' : claim_id.company_id.id,
113 'partner_id' : refund_line.invoice_id.partner_id.id,113 'partner_id' : refund_line.invoice_id.partner_id.id,
114 'note': 'RMA Refund', 114 'note': 'RMA Refund',
115 })115 })
116 else:116 else:
117 raise osv.except_osv(_('Error !'), _('Cannot find any invoice for the return line!'))117 raise osv.except_osv(_('Error !'), _('Cannot find any invoice for the return line!'))
@@ -123,7 +123,7 @@
123 'res_model': 'account.invoice',123 'res_model': 'account.invoice',
124 'type': 'ir.actions.act_window',124 'type': 'ir.actions.act_window',
125 }125 }
126 126
127refund_from_returned_lines()127refund_from_returned_lines()
128128
129# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:129# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

Subscribers

People subscribed via source and target branches