Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1455 Visualizzazioni

Hi!
in odoo accounting, I have one company and multi branches, each branch should do the payment in different Banks. how to set the default bank for each branch which user can directly pay to related bank without selection from list of banks.

I make relation to 'res.bank', with 'res.company', like this: "     bank_account = fields.Many2one('res.bank', string='Bank Account', nullable=True)", and when I select the bank in company or branches, that bank should appears in the register payment wizard in the bank field. 

now when I select the bank in branch it don't appear in the wizard by default.

thank you


Avatar
Abbandona
Risposta migliore

Hi Raoufsirat,

You can achive this using

Odoo ORM method

default_get()

Thanks

Avatar
Abbandona
Autore

thank youooooooooooooooo

Post correlati Risposte Visualizzazioni Attività
2
ago 23
5766
4
nov 15
6092
2
gen 24
12741
1
mar 15
3676
2
giu 24
1645