← Back to team overview

openerp-expert-accounting team mailing list archive

[Bug 631846] Re: Version 5.0.14 : bank information of the customer does not go back in invoice

 

** Description changed:

  Hi,
  
  I have bank détails in my customer but when I make invoice, bank
  informations from my customer does not go back in the field "Bank
  Account" of the tab 'Other Info" of the invoice.
  
  In version 5.0.12, I corrected this bug with the following code :
  
  1°) In file  server/addons/sale/sale.py, function _make_invoice(), I add
- : 'partner_bank': order.partner_id.bank_ids[0].id
+ :
  
- 2°) In file server/addons/stock/stock.py, function action_invoice_create(), I add :
-                   if partner.bank_ids:
-                             bank_id = partner.bank_ids[0].id
-                   else:
-                             bank_id = ''
+                   'partner_bank': order.partner_id.bank_ids[0].id
+ 
+ 2°) In file server/addons/stock/stock.py, function
+ action_invoice_create(), I add :
+ 
+                   if partner.bank_ids:
+                             bank_id = partner.bank_ids[0].id
+                   else:
+                             bank_id = ''
  
  and
  
-                   if type in ('out_invoice','out_refund'):
-                            invoice_vals['partner_bank'] = bank_id
+                   if type in ('out_invoice','out_refund'):
+                            invoice_vals['partner_bank'] = bank_id
  
  3°) In file server/addons/account/invoice.py, function
- _get_invoice_from_reconcile(), I add 'readonly=True' on fiel
- 'partner_bank' because the search is not goog (bank of manufacture)
+ _get_invoice_from_reconcile(), I add :
  
- and function onchange_partner_id(), I add 'out_invoice' in line 'if type
- in ('in_invoice', 'in_refund'):'
+                     'readonly=True' on fiel 'partner_bank' because the
+ search is not goog (bank of manufacture)
+ 
+ and function onchange_partner_id(), I add :
+ 
+                      'out_invoice' in line 'if type in ('in_invoice',
+ 'in_refund'):'
  
  I think it's a bug. Can you correct this ???
  Thank's a lot
  Best regards
  
  Laurent

-- 
Version 5.0.14 : bank information of the customer does not go back in invoice
https://bugs.launchpad.net/bugs/631846
You received this bug notification because you are a member of OpenERP
Accounting Experts, which is a direct subscriber.

Status in OpenObject Addons Modules: New

Bug description:
Hi,

I have bank détails in my customer but when I make invoice, bank informations from my customer does not go back in the field "Bank Account" of the tab 'Other Info" of the invoice.

In version 5.0.12, I corrected this bug with the following code :

1°) In file  server/addons/sale/sale.py, function _make_invoice(), I add : 

                  'partner_bank': order.partner_id.bank_ids[0].id

2°) In file server/addons/stock/stock.py, function action_invoice_create(), I add :

                  if partner.bank_ids:
                            bank_id = partner.bank_ids[0].id
                  else:
                            bank_id = ''

and

                  if type in ('out_invoice','out_refund'):
                           invoice_vals['partner_bank'] = bank_id

3°) In file server/addons/account/invoice.py, function _get_invoice_from_reconcile(), I add :

                    'readonly=True' on fiel 'partner_bank' because the search is not goog (bank of manufacture)

and function onchange_partner_id(), I add : 

                     'out_invoice' in line 'if type in ('in_invoice', 'in_refund'):'

I think it's a bug. Can you correct this ???
Thank's a lot
Best regards

Laurent