Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1436 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

Hi Raoufsirat,

You can achive this using

Odoo ORM method

default_get()

Thanks

Awatar
Odrzuć
Autor

thank youooooooooooooooo

Powiązane posty Odpowiedzi Widoki Czynność
2
sie 23
5763
4
lis 15
6087
2
sty 24
12736
1
mar 15
3674
2
cze 24
1641