Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1440 มุมมอง

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
5763
4
พ.ย. 15
6088
2
ม.ค. 24
12736
1
มี.ค. 15
3674
2
มิ.ย. 24
1641