Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1475 Näkymät

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
Hylkää
Paras vastaus

Hi Raoufsirat,

You can achive this using

Odoo ORM method

default_get()

Thanks

Avatar
Hylkää
Tekijä

thank youooooooooooooooo

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
elok. 23
5804
4
marrask. 15
6104
2
tammik. 24
12755
1
maalisk. 15
3690
2
kesäk. 24
1668