Update of Snippets
This commit is contained in:
1 parent
9407af7419
commit
1dfdebc8e1
23 files changed
+359
-75
No files matched your search
+23
-25
@@ -1,33 +1,31 @@
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//table[@id='main_table']" position="after">
|
||||
|
||||
<style>
|
||||
<data priority="50">
|
||||
<xpath expr="//table[@id='main_table']" position="after">
|
||||
<style>
|
||||
table#footer {
|
||||
width: 100%;
|
||||
font-size: 8pt;
|
||||
border-color: transparent;
|
||||
}
|
||||
table#footer tr, td {
|
||||
vertical-align: top;
|
||||
}
|
||||
</style>
|
||||
<table id="footer">
|
||||
<tr>
|
||||
<td width="50%" t-if="o.payment_term_id.note">
|
||||
<span>Zahlungsbedingungen</span>
|
||||
<span t-field="o.payment_term_id"/>
|
||||
</td>
|
||||
<td width="50%">
|
||||
Lieferung gemäss unseren allgemeinen Einkaufsbedingungen
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span>MWST-Nr: </span>
|
||||
<span t-field="o.company_id.vat"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
<table id="footer">
|
||||
<tr>
|
||||
<td width="50%" t-if="o.payment_term_id">
|
||||
<span>Zahlungsbedingungen </span>
|
||||
<span t-field="o.payment_term_id"/>
|
||||
</td>
|
||||
<td width="50%">
|
||||
<span>Lieferung gemäss unseren allgemeinen Einkaufsbedingungen</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span>MWST-Nr: </span>
|
||||
<span t-field="o.company_id.vat"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xpath>
|
||||
</data>
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//table[@id='info']" position="after">
|
||||
<t t-if="o.note_header != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_header"/>
|
||||
</t>
|
||||
</xpath>
|
||||
<xpath expr="//table[@id='main_table']" position="after">
|
||||
<t t-if="o.note_footer != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_footer"/>
|
||||
</t>
|
||||
</xpath>
|
||||
</data>
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//h2" position="after">
|
||||
<style>
|
||||
table#info {
|
||||
width: 100%;
|
||||
margin-bottom: 25px;
|
||||
font-size: 9pt;
|
||||
font-family: arial;
|
||||
border: transparent;
|
||||
}
|
||||
table#info tr {
|
||||
line-height: 0.8;
|
||||
text-align: left;
|
||||
}
|
||||
table#info tr span {
|
||||
line-height: 1.2;
|
||||
}
|
||||
.note {
|
||||
font-size: 9pt;
|
||||
}
|
||||
</style>
|
||||
<table id="info">
|
||||
<tr>
|
||||
<td width="17%">Date</td>
|
||||
<td width="40%">
|
||||
<span t-field="o.ordering_date" t-options="{ "widget": "date" }"/>
|
||||
</td>
|
||||
<td width="18%">Our Reference</td>
|
||||
<td width="25%">
|
||||
<span t-field="o.user_id"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Customer No.</td>
|
||||
<td>
|
||||
<span t-field="o.vendor_id.ref"/>
|
||||
</td>
|
||||
<td>Incoterm</td>
|
||||
<td>
|
||||
<span t-field="o.incoterm_id.name"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td/>
|
||||
<td>
|
||||
<span t-field="o.partner_ref"/>
|
||||
</td>
|
||||
<td>Agreement Deadline</td>
|
||||
<td>
|
||||
<span t-field="o.date_end" t-options="{ "widget": "date" }"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Reference</td>
|
||||
<td>
|
||||
<span t-field="o.comment"/>
|
||||
</td>
|
||||
<td/>
|
||||
<td/>
|
||||
</tr>
|
||||
</table>
|
||||
</xpath>
|
||||
</data>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//table[@id='main_table']/thead/tr/th[4]" position="after">
|
||||
<th id="price_subtotal" class="text-right">
|
||||
<strong>Price Subtotal</strong>
|
||||
</th>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[5]" position="after">
|
||||
<td id="price_subtotal" class="text-right">
|
||||
<span t-field="line_ids.price_subtotal"/>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//th[@id='product_qty']" position="after">
|
||||
<t t-if="o.state_blanket_order != 'draft'">
|
||||
<th id="price_unit" class="text-right">
|
||||
<strong>Unit Price</strong>
|
||||
</th>
|
||||
</t>
|
||||
</xpath>
|
||||
<xpath expr="//td[@id='product_qty']" position="after">
|
||||
<t t-if="o.state_blanket_order != 'draft'">
|
||||
<td id="price_unit" class="text-right">
|
||||
<span t-field="line_ids.price_unit"/>
|
||||
</td>
|
||||
</t>
|
||||
</xpath>
|
||||
</data>
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//table[@id='main_table']" position="after">
|
||||
<table id="summary" class="table table-condensed trimada table-borderless" style="margin-top:20px; width:100%; color:black; font-family: arial; font-size:9pt; border-top-style:solid; border-bottom-style:solid; border-width:1px; border-color:black">
|
||||
<tr>
|
||||
<td style="width:15.5%; text-align:left">
|
||||
<strong>Subtotal</strong>
|
||||
</td>
|
||||
<td style="width:23%; text-align:left">
|
||||
<t t-if="o.state_blanket_order != 'draft'">
|
||||
<span t-field="o.amount_untaxed" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span>CHF</span>
|
||||
</t>
|
||||
</td>
|
||||
<td style="width:12%; text-align:left">
|
||||
<t t-if="o.state_blanket_order != 'draft'">
|
||||
<span>VAT</span>
|
||||
</t>
|
||||
</td>
|
||||
<td style="width:17%; text-align:left">
|
||||
<t t-if="o.state_blanket_order != 'draft'">
|
||||
<span t-field="o.amount_tax" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
||||
</t>
|
||||
</td>
|
||||
<td style="width:14%; text-align:right">
|
||||
<strong>Total</strong>
|
||||
</td>
|
||||
<td style="width:18%; text-align:right">
|
||||
<t t-if="o.state_blanket_order != 'draft'">
|
||||
<span t-field="o.amount_total" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span>CHF</span>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xpath>
|
||||
</data>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//t/div/div[1]" position="before">
|
||||
<t t-set="o" t-value="o.with_context(lang=o.vendor_id.lang)"/>
|
||||
<t t-set="address">
|
||||
<div t-field="o.vendor_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
||||
</t>
|
||||
</xpath>
|
||||
</data>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//td[@id='product_qty']" position="replace">
|
||||
<td id="product_qty" class="text-right">
|
||||
<span id="qty" t-field="line_ids.product_qty"/>
|
||||
<span t-field="line_ids.product_uom_id"/>
|
||||
</td>
|
||||
</xpath>
|
||||
</data>
|
||||
+3
-5
@@ -1,12 +1,10 @@
|
||||
<data priority="50">
|
||||
|
||||
<xpath expr="//span[@id='product_qty']" position="replace">
|
||||
<xpath expr="//span[@id='qty']" position="replace">
|
||||
<t t-if="line_ids.product_uom_id.id == 1">
|
||||
<span id="product_qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
|
||||
<span id="qty" t-field="line_ids.product_qty" t-options="{'widget': 'integer'}"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span id="product_qty" t-field="line_ids.product_qty"/>
|
||||
<span id="qty" t-field="line_ids.product_qty"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+1
-3
@@ -1,5 +1,3 @@
|
||||
<data priority="50">
|
||||
|
||||
<xpath expr="//t[@t-if='o.purchase_ids']" position="replace"/>
|
||||
|
||||
<xpath expr="//t[@t-if='o.purchase_ids']" position="replace"/>
|
||||
</data>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<data priority="50">
|
||||
|
||||
<xpath expr="//th[@id='name']" position="replace"/>
|
||||
|
||||
</data>
|
||||
+2
-5
@@ -1,6 +1,3 @@
|
||||
<data priority="50">
|
||||
|
||||
<xpath expr="//table/thead/tr/th[5]" position="replace"/>
|
||||
<xpath expr="//span[@t-field='line_ids.product_uom_id.name']/.." position="replace"/>
|
||||
|
||||
<data priority="50">
|
||||
<xpath expr="//td[@id='product_uom']" position="replace"/>
|
||||
</data>
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//th[4]" position="replace"/>
|
||||
<xpath expr="//td[4]" position="replace"/>
|
||||
|
||||
<xpath expr="//th[4]" position="replace"/>
|
||||
<xpath expr="//td[4]" position="replace"/>
|
||||
|
||||
</data>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//table[@id='main_table']/thead/tr/th[6]" position="replace"/>
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[7]" position="replace"/>
|
||||
</data>
|
||||
+2
-4
@@ -1,5 +1,3 @@
|
||||
<data priority="50">
|
||||
|
||||
<xpath expr="//h3[@id='title_product']" position="replace"/>
|
||||
|
||||
<data priority="50">
|
||||
<xpath expr="//t/h3" position="replace"/>
|
||||
</data>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//div[@id='informations']" position="replace"/>
|
||||
</data>
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//table[@id='main_table']//th[2]" position="replace"/>
|
||||
<xpath expr="//th[2]" position="attributes">
|
||||
<attribute name="id">description</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//table[@id='main_table']/tbody//td[2]" position="replace">
|
||||
<td id="name">
|
||||
<t t-if="line_ids.product_id.type_description">
|
||||
<span style="font-weight: bold" t-field="line_ids.product_id.type_description"/>
|
||||
</t>
|
||||
<t t-if="not line_ids.product_id.type_description">
|
||||
<span t-field="line_ids.product_description_variants"/>
|
||||
</t>
|
||||
</td>
|
||||
</xpath>
|
||||
<xpath expr="//table[@id='main_table']//th[3]" position="replace"/>
|
||||
<xpath expr="//table[@id='main_table']/tbody//td[3]" position="replace"/>
|
||||
</data>
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
<h2><span>Request for Quotation purchase contract </span><span t-field="o.name"/></h2>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<h2><span>Contract </span><span t-field="o.name"/></h2>
|
||||
<h2><span>Purchase Contract </span><span t-field="o.name"/></h2>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[4]" position="replace">
|
||||
<td id="price_unit" class="text-end">
|
||||
<span t-esc="'%g' % line_ids.price_unit if str(line_ids.price_unit)[::-1].find('.') >= 3 else '%.2f' % line_ids.price_unit"/>
|
||||
</td>
|
||||
</xpath>
|
||||
</data>
|
||||
+10
-11
@@ -1,43 +1,42 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase_requisition.report_purchaserequisitions" priority="50">
|
||||
|
||||
<xpath expr="//table[@id='main_table']/tbody[1]/tr[1]" position="attributes">
|
||||
<attribute name="t-att-class">"first"</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']/tbody[1]/tr[1]/td[3]" position="after">
|
||||
<xpath expr="//table[@id='main_table']/tbody[1]/tr[1]/td[6]" position="after">
|
||||
<t t-if="line_ids.product_id.type_description">
|
||||
<tr class="second">
|
||||
<td></td>
|
||||
<td colspan="5">
|
||||
<td/>
|
||||
<td colspan="4">
|
||||
<span t-field="line_ids.product_description_variants"/>
|
||||
<br/>
|
||||
<t t-if="line_ids.product_id.country_of_origin.code">
|
||||
Ursprungsland:
|
||||
<span t-field="line_ids.product_id.country_of_origin.code" />
|
||||
<span t-field="line_ids.product_id.country_of_origin.code"/>
|
||||
</t>
|
||||
<t t-if="line_ids.product_id.hs_code">
|
||||
/ Zollposition:
|
||||
<span t-field="line_ids.product_id.hs_code" />
|
||||
<span t-field="line_ids.product_id.hs_code"/>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="not line_ids.product_id.type_description">
|
||||
<tr class="second">
|
||||
<td></td>
|
||||
<td colspan="5">
|
||||
<td/>
|
||||
<td colspan="4">
|
||||
<t t-if="line_ids.product_id.country_of_origin.code">
|
||||
Ursprungsland:
|
||||
<span t-field="line_ids.product_id.country_of_origin.code" />
|
||||
<span t-field="line_ids.product_id.country_of_origin.code"/>
|
||||
</t>
|
||||
<t t-if="line_ids.product_id.hs_code">
|
||||
/ Zollposition:
|
||||
<span t-field="line_ids.product_id.hs_code" />
|
||||
<span t-field="line_ids.product_id.hs_code"/>
|
||||
</t>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
|
||||
</data>
|
||||
+16
-12
@@ -1,19 +1,23 @@
|
||||
<data priority="50">
|
||||
|
||||
<xpath expr="//div[2]" position="attributes">
|
||||
<attribute name="id">info_table</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@class='row my-2']" position="attributes">
|
||||
<attribute name="id">informations</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//h3[1]" position="attributes">
|
||||
<attribute name="id">title_product</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//table[@class='table table-sm']" position="attributes">
|
||||
<attribute name="id">main_table</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//span[@t-field='line_ids.product_qty']" position="attributes">
|
||||
<attribute name="id">product_qty</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//table[@id='main_table']/thead/tr/th[3]" position="attributes">
|
||||
<attribute name="id">test</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table" position="attributes">
|
||||
<attribute name="id">details</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[3]" position="attributes">
|
||||
<attribute name="id">product_qty</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[4]" position="attributes">
|
||||
<attribute name="id">product_uom</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//table[@id='main_table']/thead/tr/th[1]" position="before">
|
||||
<th id="default_code">
|
||||
<strong>Part No.</strong>
|
||||
</th>
|
||||
</xpath>
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[1]" position="before">
|
||||
<td id="default_code">
|
||||
<span t-field="line_ids.product_id.default_code"/>
|
||||
</td>
|
||||
</xpath>
|
||||
</data>
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
<data priority="60">
|
||||
|
||||
<xpath expr="//div[hasclass('page')]" position="before">
|
||||
<style>
|
||||
.o_company_1_layout {
|
||||
font-family: Arial;
|
||||
font-size: 9pt;
|
||||
}
|
||||
.address {
|
||||
padding-bottom:33mm;
|
||||
font-size: 10pt;
|
||||
}
|
||||
h2 {
|
||||
margin-top:10mm;
|
||||
margin-bottom:3mm;
|
||||
font-size: 13pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
.first td {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.second td {
|
||||
padding-top: 0;
|
||||
}
|
||||
.second {
|
||||
border-bottom: 1px solid rgb(220,220,220);
|
||||
}
|
||||
table.trimada thead tr {
|
||||
border-top:solid 1px;
|
||||
border-bottom: solid 1px;
|
||||
color: black;
|
||||
}
|
||||
table.trimada thead th#description {
|
||||
width: 70mm;
|
||||
}
|
||||
table.trimada tr.first td {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
table.trimada tr.second td {
|
||||
padding-top: 0;
|
||||
}
|
||||
table.trimada tr.second {
|
||||
border-bottom: 1px solid rgb(220,220,220);
|
||||
}
|
||||
table.trimada thead th#default_code {
|
||||
width: 27mm;
|
||||
text-align: left;
|
||||
}
|
||||
span#qty {
|
||||
font-weight: bold;
|
||||
}
|
||||
table#summary td {
|
||||
padding: 0.3rem;
|
||||
}
|
||||
|
||||
</style>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']" position="attributes">
|
||||
<attribute name="class" separator=" " add="trimada table-borderless"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//th[2]" position="attributes">
|
||||
<attribute name="class" separator=" " add="text-start"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//th[3]" position="attributes">
|
||||
<attribute name="class">text-end</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//th[4]" position="attributes">
|
||||
<attribute name="class">text-end</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//th[@id='price_subtotal']" position="attributes">
|
||||
<attribute name="class">text-end</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//td[@id='product_qty']" position="attributes">
|
||||
<attribute name="class">text-end</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[@id='main_table']/tbody/tr/td[4]" position="attributes">
|
||||
<attribute name="class">text-end</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//td[@id='price_subtotal']" position="attributes">
|
||||
<attribute name="class">text-end</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
Reference in new issue
Block a user