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

@Experts, do we need to improve the behaviour?
Yes we do. Marking as a duplicate according to your latest comment.

** This bug has been marked a duplicate of bug 405863
   Can't pick a partner's bank account on a supplier invoice using the invoice 
view

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





_______________________________________________
Mailing list: https://launchpad.net/~openerp-expert-accounting
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-expert-accounting
More help   : https://help.launchpad.net/ListHelp

Reply via email to