Skip to content

Commit e28c825

Browse files
committed
[IMP] l10n_ar_stock_ux: re-indent remito view
1 parent e8c3489 commit e28c825

1 file changed

Lines changed: 119 additions & 119 deletions

File tree

l10n_ar_stock_ux/views/report_deliveryslip.xml

Lines changed: 119 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -98,131 +98,131 @@
9898
</t>
9999
</t>
100100

101-
<!-- remove default partner address -->
102-
<t t-set="address" position="attributes">
103-
<attribute name="t-value">False</attribute>
104-
</t>
105-
<t t-set="information_block" position="attributes">
106-
<attribute name="t-value">False</attribute>
107-
</t>
108-
109-
<!-- remove default document title -->
110-
<h2 position="replace"/>
111-
112-
<!-- We want to hide order number and shipping address show at to left side of the report -->
113-
<xpath expr="//div[@name='div_origin']/.." position="attributes">
114-
<attribute name="id">hide_order_and_shipping_date</attribute>
115-
<attribute name="t-if">0</attribute>
116-
</xpath>
117-
118-
<div id="hide_order_and_shipping_date" position="after">
119-
<div id="informations" class="row mt32 mb32">
120-
<div class="col-6">
121-
<t t-set="partner" t-value="o.partner_id or (o.move_ids and o.move_ids[0].partner_id)"/>
122-
<t t-set="commercial_partner" t-value="partner.commercial_partner_id"/>
123-
124-
<!-- IDENTIFICACION (ADQUIRIENTE-LOCATARIO-PRESTARIO) -->
125-
126-
<!-- (14) Apellido uy Nombre: Denominicacion o Razon Soclial -->
127-
<strong>Customer: </strong>
128-
<span t-field="commercial_partner.name"/>
129-
130-
<!-- (15) Domicilio Comercial -->
131-
<br/>
132-
133-
<span t-if="commercial_partner != partner">
134-
<strong>Deliver to: </strong>
135-
<span t-field="partner.name"/>
136-
</span>
137-
<span t-out="partner" t-options='{"widget": "contact", "fields": ["address", "phone", "mobile"], "no_marker": True, "no_tag_br": True}'/>
138-
139-
<!-- (16) Responsabilidad AFIP -->
140-
<strong>VAT Cond: </strong>
141-
<span t-field="partner.l10n_ar_afip_responsibility_type_id"/>
142-
143-
<!-- (17) CUIT -->
144-
<t t-if="partner.vat and partner.l10n_latam_identification_type_id.name and partner.l10n_latam_identification_type_id.name != 'Sigd'">
101+
<!-- remove default partner address -->
102+
<t t-set="address" position="attributes">
103+
<attribute name="t-value">False</attribute>
104+
</t>
105+
<t t-set="information_block" position="attributes">
106+
<attribute name="t-value">False</attribute>
107+
</t>
108+
109+
<!-- remove default document title -->
110+
<h2 position="replace"/>
111+
112+
<!-- We want to hide order number and shipping address show at to left side of the report -->
113+
<xpath expr="//div[@name='div_origin']/.." position="attributes">
114+
<attribute name="id">hide_order_and_shipping_date</attribute>
115+
<attribute name="t-if">0</attribute>
116+
</xpath>
117+
118+
<div id="hide_order_and_shipping_date" position="after">
119+
<div id="informations" class="row mt32 mb32">
120+
<div class="col-6">
121+
<t t-set="partner" t-value="o.partner_id or (o.move_ids and o.move_ids[0].partner_id)"/>
122+
<t t-set="commercial_partner" t-value="partner.commercial_partner_id"/>
123+
124+
<!-- IDENTIFICACION (ADQUIRIENTE-LOCATARIO-PRESTARIO) -->
125+
126+
<!-- (14) Apellido uy Nombre: Denominicacion o Razon Soclial -->
127+
<strong>Customer: </strong>
128+
<span t-field="commercial_partner.name"/>
129+
130+
<!-- (15) Domicilio Comercial -->
145131
<br/>
146-
<strong>
147-
<t t-out="partner.l10n_latam_identification_type_id.name or o.company_id.country_id.vat_label" id="inv_tax_id_label"/>
148-
:</strong>
149-
<span t-out="partner.l10n_ar_formatted_vat or partner.vat"/>
150-
</t>
151132

152-
</div>
153-
<div class="col-6">
154-
155-
<t>
156-
<strong>Order:</strong>
157-
<span t-field="o.origin"/>
158-
</t>
159-
<t position="after">
160-
<t t-if="o.cot">
133+
<span t-if="commercial_partner != partner">
134+
<strong>Deliver to: </strong>
135+
<span t-field="partner.name"/>
136+
</span>
137+
<span t-out="partner" t-options='{"widget": "contact", "fields": ["address", "phone", "mobile"], "no_marker": True, "no_tag_br": True}'/>
138+
139+
<!-- (16) Responsabilidad AFIP -->
140+
<strong>VAT Cond: </strong>
141+
<span t-field="partner.l10n_ar_afip_responsibility_type_id"/>
142+
143+
<!-- (17) CUIT -->
144+
<t t-if="partner.vat and partner.l10n_latam_identification_type_id.name and partner.l10n_latam_identification_type_id.name != 'Sigd'">
161145
<br/>
162-
<strong>COT:</strong>
163-
<span t-field="o.cot"/>
146+
<strong>
147+
<t t-out="partner.l10n_latam_identification_type_id.name or o.company_id.country_id.vat_label" id="inv_tax_id_label"/>
148+
:</strong>
149+
<span t-out="partner.l10n_ar_formatted_vat or partner.vat"/>
164150
</t>
165-
</t>
166-
<t t-if="o._fields.get('purchase_order_number') and o.sudo().purchase_order_number">
167-
<br/>
168-
<strong>PO Number:</strong>
169-
<span t-field="o.sudo().purchase_order_number"/>
170-
</t>
171-
<t t-if="o._fields.get('sale_id') and o.sudo().sale_id.client_order_ref">
172-
<br/>
173-
<strong>Customer Reference:</strong>
174-
<span t-field="o.sudo().sale_id.client_order_ref"/>
175-
</t>
176-
<t t-if="o.declared_value">
177-
<br/>
178-
<strong>Declared Value:</strong>
179-
<span t-field="o.declared_value"/>
180-
</t>
181-
<t name="number_of_packages" t-if="o.number_of_packages">
182-
<br/>
183-
<strong>Packages Qty:</strong>
184-
<span t-field="o.number_of_packages"/>
185-
</t>
186-
</div>
187151

152+
</div>
153+
<div class="col-6">
154+
155+
<t>
156+
<strong>Order:</strong>
157+
<span t-field="o.origin"/>
158+
</t>
159+
<t position="after">
160+
<t t-if="o.cot">
161+
<br/>
162+
<strong>COT:</strong>
163+
<span t-field="o.cot"/>
164+
</t>
165+
</t>
166+
<t t-if="o._fields.get('purchase_order_number') and o.sudo().purchase_order_number">
167+
<br/>
168+
<strong>PO Number:</strong>
169+
<span t-field="o.sudo().purchase_order_number"/>
170+
</t>
171+
<t t-if="o._fields.get('sale_id') and o.sudo().sale_id.client_order_ref">
172+
<br/>
173+
<strong>Customer Reference:</strong>
174+
<span t-field="o.sudo().sale_id.client_order_ref"/>
175+
</t>
176+
<t t-if="o.declared_value">
177+
<br/>
178+
<strong>Declared Value:</strong>
179+
<span t-field="o.declared_value"/>
180+
</t>
181+
<t name="number_of_packages" t-if="o.number_of_packages">
182+
<br/>
183+
<strong>Packages Qty:</strong>
184+
<span t-field="o.number_of_packages"/>
185+
</t>
186+
</div>
187+
188+
</div>
188189
</div>
189-
</div>
190-
191-
<table name="stock_move_line_table" position="after">
192-
<t t-if="o.picking_type_id.report_signature_section and o.l10n_ar_afip_barcode">
193-
<table class="table table-borderless table-sm">
194-
<thead>
195-
<tr>
196-
<th width="25%">Recibí conforme:</th>
197-
<th width="25%"></th>
198-
<th width="25%"></th>
199-
<th width="25%"></th>
200-
</tr>
201-
</thead>
202-
<tbody>
203-
<tr>
204-
<th width="25%">Fecha: ____ / ____ / ____</th>
205-
<td>
206-
<hr style="border: 1px solid #000000;"/>
207-
</td>
208-
<td>
209-
<hr style="border: 1px solid #000000;"/>
210-
</td>
211-
<td>
212-
<hr style="border: 1px solid #000000;"/>
213-
</td>
214-
</tr>
215-
<tr>
216-
<td></td>
217-
<th style="text-align: center;">DNI</th>
218-
<th style="text-align: center;">Firma</th>
219-
<th style="text-align: center;">Aclaración</th>
220-
</tr>
221-
</tbody>
222-
</table>
223-
</t>
224-
</table>
225190

226-
</template>
191+
<table name="stock_move_line_table" position="after">
192+
<t t-if="o.picking_type_id.report_signature_section and o.l10n_ar_afip_barcode">
193+
<table class="table table-borderless table-sm">
194+
<thead>
195+
<tr>
196+
<th width="25%">Recibí conforme:</th>
197+
<th width="25%"></th>
198+
<th width="25%"></th>
199+
<th width="25%"></th>
200+
</tr>
201+
</thead>
202+
<tbody>
203+
<tr>
204+
<th width="25%">Fecha: ____ / ____ / ____</th>
205+
<td>
206+
<hr style="border: 1px solid #000000;"/>
207+
</td>
208+
<td>
209+
<hr style="border: 1px solid #000000;"/>
210+
</td>
211+
<td>
212+
<hr style="border: 1px solid #000000;"/>
213+
</td>
214+
</tr>
215+
<tr>
216+
<td></td>
217+
<th style="text-align: center;">DNI</th>
218+
<th style="text-align: center;">Firma</th>
219+
<th style="text-align: center;">Aclaración</th>
220+
</tr>
221+
</tbody>
222+
</table>
223+
</t>
224+
</table>
225+
226+
</template>
227227

228228
</odoo>

0 commit comments

Comments
 (0)