Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1443 Ansichten

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
Verwerfen
Beste Antwort

Hi Raoufsirat,

You can achive this using

Odoo ORM method

default_get()

Thanks

Avatar
Verwerfen
Autor

thank youooooooooooooooo

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Aug. 23
5764
4
Nov. 15
6088
2
Jan. 24
12737
1
März 15
3675
2
Juni 24
1645