Hello i been checking the script but cant find a solution of a big white space on top of the document. Here is a image of it. https://ibb.co/mD5ZfzJ
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Hi,
->
You can add a new custom module that inherits the template ‘account.report_invoice_document’ and replace the <div class=”row”> with the following content
-> If you have studio module installed,
Open invoice
Go to studio mode
Choose reports
Choose the Invoices
Click on partner address, click remove from view in the left panel
Add an address field (journal entry -> partner)
-> If you are using Odoo online and no studio module installed, you can update the ‘report_invoice_document’ like in the following image.
Regards
Mine seem a little differente from it.
<t t-name="web.external_layout_standard">
<div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style">
<div class="row">
<div class="col-3 mb4">
<img t-if="company.logo" t-att-src="image_data_uri(company.logo)" style="max-height: 40px;" alt="Logo"/>
</div>
<div class="col-9 text-end" style="margin-top:15px;" t-field="company.report_header" name="moto"/>
</div>
<div t-if="company.logo or company.report_header" class="row zero_min_height">
<div class="col-12">
<div style="border-bottom: 1px solid black;"/>
</div>
</div>
<div class="row">
<div class="col-6" name="company_address">
<span t-if="company.company_details" t-field="company.company_details"/>
<span t-else="" t-field="company.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}"/>
</div>
</div>
<div t-attf-class="article o_report_layout_standard o_company_#{company.id}_layout {{ 'o_report_layout_background' if company.layout_background in ['Geometric', 'Custom'] else '' }}" t-attf-style="background-image: url({{ 'data:image/png;base64,%s' % company.layout_background_image.decode('utf-8') if company.layout_background_image and company.layout_background == 'Custom' else '/base/static/img/bg_background_template.jpg' if company.layout_background == 'Geometric' else ''}});" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id" t-att-data-oe-lang="o and o.env.context.get('lang')">
<div class="pt-5">
<!-- This div ensures that the address is not cropped by the header. -->
<t t-call="web.address_layout"/>
</div>
<t t-out="0"/>
</div>
<div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout">
<div class="text-center" style="border-top: 1px solid black;">
<ul class="list-inline mb4">
<div t-field="company.report_footer"/>
</ul>
<div t-if="report_type == 'pdf'" class="text-muted">
Page: <span class="page"/> / <span class="topage"/>
</div>
</div>
</div>
</t>
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Jan 25
|
586 | ||
v18 Document layout Problem
Diselesaikan
|
|
2
Des 24
|
1167 | |
|
3
Mar 23
|
21303 | ||
|
1
Apr 22
|
1431 | ||
|
2
Mar 18
|
2286 |