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

I have 2 Bank accounts in my company. Odoo Automatically adds both in the footer. Is there a way to select/exclude on of the accounts?

Thanks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Either use any other Document Layout than DIN5008 (Settings -> General Settings --> Companies --> Document Layout -> Configure Document Layout), or extend l10n_din5008.external_layout_din5008 so it doesn't loop over the first two but only the first bank, i.e.

<t t-foreach="company.partner_id.bank_ids[:1]" t-as="bank">

instead of

<t t-foreach="company.partner_id.bank_ids[:2]" t-as="bank">

(https://github.com/odoo/odoo/blob/18.0/addons/l10n_din5008/report/din5008_report.xml#L140)


Note: You could change the template in Settings -> Technical --> User Interface -> Views - but, any upgrade of the module l10n_din5008 will reset it to its original state again (hence, the template should be extended in a custom module rather than directly in Odoo).

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ธ.ค. 23
15492
1
มี.ค. 15
5315
2
มิ.ย. 25
2692
Invoice Report Layout on Odoo 12 แก้ไขแล้ว
5
พ.ย. 24
32680
4
พ.ค. 24
6579