← Back to team overview

openerp-expert-accounting team mailing list archive

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

 

*** This bug is a duplicate of bug 405863 ***
    https://bugs.launchpad.net/bugs/405863

Hello Jay

Your reasoning is correct.
I expected to find the customer information in the customer's bill.
It should therefore both information (customer and company)
I need the customer's bank information in order to print a customer payment order.

Laurent

-- 
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