콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
1005 화면

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

아바타
취소
관련 게시물 답글 화면 활동
4
12월 23
15500
1
3월 15
5317
2
6월 25
2715
5
11월 24
32696
4
5월 24
6602