-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfile_format_algevasa_shipment.xml
70 lines (70 loc) · 3.33 KB
/
file_format_algevasa_shipment.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tryton>
<data>
<record id="file_format_algevasa_shipment" model="file.format">
<field name="model" search="[('name', '=', 'stock.shipment.out')]"/>
<field name="name">Algevasa Shipment</field>
<field name="storage_type">memory</field>
<field name="file_type">xml</field>
<field name="state">disabled</field>
<field name="engine">jinja2</field>
<field name="xml_format"><BODY>
<OPERACION>PEDIDOSALIDA</OPERACION>
<PROPIETARIO>{{ record.algevasa_owner or '' }}</PROPIETARIO>
<CLAVE>{{ record.algevasa_key or '' }}</CLAVE>
<IDPED></IDPED>
<TIPDOC>2000</TIPDOC>
<NUMDOC>{{ record.number }}</NUMDOC>
<FECDOC>{{ record.sale_date }}</FECDOC>
<FECENT>{{ record.shipping_date }}</FECENT>
<PEDORI>{{ record.reference or '' }}</PEDORI>
<TRANDEF></TRANDEF>
<POLSER>0</POLSER>
<PRIORI>0</PRIORI>
<PORTES>P</PORTES>
<CONTACTO>{{ record.contact.name if record.contact else '' }}</CONTACTO>
<NOMBRE>{{ record.customer.name }}</NOMBRE>
<ADRESS>{{ record.delivery_address.street_single_line }}</ADRESS>
<ADRESS1></ADRESS1>
<ADRESS2></ADRESS2>
<NIFCLI>{{ record.customer.tax_identifier }}</NIFCLI>
<POBLA>{{ record.delivery_address.city }}</POBLA>
<CODPOS>{{ record.delivery_address.postal_code }}</CODPOS>
<PAIS>{{ record.delivery_address.country.code }}</PAIS>
<MAYORISTA></MAYORISTA>
<TEXTOBS>{{ record.comment }}</TEXTOBS>
{% if record.contact and record.contact.type in ('phone', 'mobile') %}
<NUMTEL>{{ record.contact.value }}</NUMTEL>
{% else %}
<NUMTEL>{{ record.customer.phone or record.customer.mobile or '' }}</NUMTEL>
{% endif %}
{% if record.contact and record.contact.type == 'email' %}
<CORREO>{{ record.contact.value }}</CORREO>
{% else %}
<CORREO>{{ record.customer.email }}</CORREO>
{% endif %}
<ITEMS>
{% for line in record.outgoing_moves %}
<ITEM>
<LINORI>{{ line.id }}</LINORI>
<LINDOC>1</LINDOC>
<CODART>{{ line.product.code }}</CODART>
<NUMLOT>{{ line.lot.name if line.lot else '' }}</NUMLOT>
<CADUCIDAD>{{ line.lot.expiry_date if line.lot and line.lot.expiry_date else '' }}</CADUCIDAD>
<CANTIDAD>{{ line.quantity }}</CANTIDAD>
<SITSTK></SITSTK>
<PREUNI>{{ line.unit_price }}</PREUNI>
<DESCUENTO></DESCUENTO>
<IVA></IVA>
<RECARGO></RECARGO>
<PVP>{{ line.amount }}</PVP>
<TEXTOBS>{{ line.description }}</TEXTOBS>
</ITEM>
{% endfor %}
</ITEMS>
</BODY></field>
</record>
</data>
</tryton>