Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1433 Представления

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


Аватар
Отменить
Лучший ответ

Hi Raoufsirat,

You can achive this using

Odoo ORM method

default_get()

Thanks

Аватар
Отменить
Автор

thank youooooooooooooooo

Related Posts Ответы Просмотры Активность
2
авг. 23
5761
4
нояб. 15
6087
2
янв. 24
12735
1
мар. 15
3674
2
июн. 24
1641