Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
925 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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).

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 23
15429
1
thg 3 15
5242
2
thg 6 25
2605
5
thg 11 24
32582
4
thg 5 24
6521