[fix] width with german translation and make everything pdf again

This commit is contained in:
Niels Göttsch 2024-07-01 22:21:33 +02:00
parent 3b4b3f49ff
commit 0fb12905ea
5 changed files with 41 additions and 25 deletions

View file

@ -6,16 +6,16 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 16.0\n" "Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-06 17:06+0000\n" "POT-Creation-Date: 2024-07-01 20:16+0000\n"
"PO-Revision-Date: 2024-06-06 19:10+0200\n" "PO-Revision-Date: 2024-07-01 22:18+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: de\n" "Language: en\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.4.2\n" "X-Generator: Poedit 3.4.4\n"
#. module: nfu_ekg_stock #. module: nfu_ekg_stock
#: model:ir.actions.report,print_report_name:nfu_ekg_stock.action_report_ekg_delivery #: model:ir.actions.report,print_report_name:nfu_ekg_stock.action_report_ekg_delivery
@ -40,6 +40,11 @@ msgid ""
msgstr "" msgstr ""
"'EKG Packliste - %s - %s' % (object.partner_id.name or '', object.name)" "'EKG Packliste - %s - %s' % (object.partner_id.name or '', object.name)"
#. module: nfu_ekg_stock
#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document
msgid "<strong>Available</strong>"
msgstr "<strong>Verfügbar</strong>"
#. module: nfu_ekg_stock #. module: nfu_ekg_stock
#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document #: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document
msgid "<strong>Batch Size</strong>" msgid "<strong>Batch Size</strong>"
@ -47,12 +52,6 @@ msgstr "<strong>Gebindegröße</strong>"
#. module: nfu_ekg_stock #. module: nfu_ekg_stock
#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document #: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document
msgid "<strong>Ordered</strong>"
msgstr "<strong>Bestellt</strong>"
#. module: nfu_ekg_stock
#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document
#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_packing_list
msgid "<strong>Product</strong>" msgid "<strong>Product</strong>"
msgstr "<strong>Produkt</strong>" msgstr "<strong>Produkt</strong>"
@ -66,6 +65,11 @@ msgstr "<strong>Menge</strong>"
msgid "<strong>Signature</strong>" msgid "<strong>Signature</strong>"
msgstr "<strong>Unterschrift</strong>" msgstr "<strong>Unterschrift</strong>"
#. module: nfu_ekg_stock
#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_packing_list
msgid "Batch<br/>Size"
msgstr "Gebinde<br/>größe"
#. module: nfu_ekg_stock #. module: nfu_ekg_stock
#: model:ir.actions.report,name:nfu_ekg_stock.action_report_ekg_delivery #: model:ir.actions.report,name:nfu_ekg_stock.action_report_ekg_delivery
msgid "EKG Delivery Slip" msgid "EKG Delivery Slip"
@ -80,3 +84,13 @@ msgstr "EKG kompakter Lieferschein"
#: model:ir.actions.report,name:nfu_ekg_stock.action_report_ekg_packing_list #: model:ir.actions.report,name:nfu_ekg_stock.action_report_ekg_packing_list
msgid "EKG Packing List" msgid "EKG Packing List"
msgstr "EKG Packliste" msgstr "EKG Packliste"
#. module: nfu_ekg_stock
#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_packing_list
msgid "Internal<br/>Reference"
msgstr "Artikel<br/>nummer"
#. module: nfu_ekg_stock
#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_packing_list
msgid "Product"
msgstr "Produkt"

View file

@ -30,7 +30,7 @@
<record id="action_report_ekg_delivery" model="ir.actions.report"> <record id="action_report_ekg_delivery" model="ir.actions.report">
<field name="name">EKG Delivery Slip</field> <field name="name">EKG Delivery Slip</field>
<field name="model">stock.picking</field> <field name="model">stock.picking</field>
<field name="report_type">qweb-html</field> <field name="report_type">qweb-pdf</field>
<field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip</field> <field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip</field>
<field name="report_file">nfu_ekg_stock.report_deliveryslip</field> <field name="report_file">nfu_ekg_stock.report_deliveryslip</field>
<field <field

View file

@ -1,13 +1,12 @@
td.batch, td.batch,
th.batch { th.batch {
width: 80px; width: 90px;
max-width: 80px; max-width: 90px;
white-space: nowrap; white-space: nowrap;
} }
th.qty { th.qty {
width: 60px; max-width: 100px;
max-width: 60px;
white-space: nowrap; white-space: nowrap;
} }
@ -22,13 +21,17 @@ th.code {
max-width: 60px; max-width: 60px;
} }
th.packaging {
max-width: 70px;
}
td.product { td.product {
max-width: 160px; max-width: 150px;
font-size: smaller; font-size: smaller;
} }
td.packaging { td.packaging {
max-width: 160px; max-width: 70px;
font-size: x-small; font-size: x-small;
} }

View file

@ -29,12 +29,11 @@
</t> </t>
</td> </td>
<td> <td>
<span t-field="move.product_id.name"/> <span t-field="move.product_id.name"/><br/>
<p <span
t-if="move.description_picking != move.product_id.name and move.description_picking != move.product_id.display_name" t-if="move.description_picking != move.product_id.name and move.description_picking != move.product_id.display_name"
> t-field="move.description_picking"
<span t-field="move.description_picking"/> />
</p>
</td> </td>
<td class="text-end"> <td class="text-end">
<span t-field="move.forecast_availability"/> <span t-field="move.forecast_availability"/>

View file

@ -19,9 +19,9 @@
<table class="table table-bordered table-sm w-auto border-dark" name="nfu_ekg_packing_list"> <table class="table table-bordered table-sm w-auto border-dark" name="nfu_ekg_packing_list">
<thead> <thead>
<tr> <tr>
<th class="product align-top"><strong>Product</strong></th> <th class="product align-top text-start">Product</th>
<th class="code align-top text-truncate"><strong>Internal<br/> Reference</strong></th> <th class="code align-top text-truncate">Internal<br/>Reference</th>
<th class="partner align-top text-truncate"><strong>Batch Size</strong></th> <th class="packaging align-top text-truncate">Batch<br/>Size</th>
<t t-foreach="partner_chunk" t-as="partner"> <t t-foreach="partner_chunk" t-as="partner">
<th class="partner align-top"><div class="text-truncate"> <th class="partner align-top"><div class="text-truncate">
<t t-esc="partner.lastname"/><br/> <t t-esc="partner.lastname"/><br/>