Browse Source

[CLEAN] Format XML

pull/12/head
Thibault Francois 8 years ago
parent
commit
66cb326117
  1. 6
      beesdoo_pos/data/email.xml
  2. 27
      beesdoo_pos/static/src/xml/templates.xml
  3. 11
      beesdoo_pos/views/beesdoo_pos.xml

6
beesdoo_pos/data/email.xml

@ -8,9 +8,9 @@
<field name="email_from">${(object.user_id.email and '%s &lt;%s&gt;' % (object.user_id.name, object.user_id.email) or '')|safe}</field>
<field name="subject">${object.pos_reference}</field>
<field name="partner_to">${object.partner_id.id}</field>
<field name="model_id" ref="point_of_sale.model_pos_order"/>
<field name="auto_delete" eval="True"/>
<field name="report_template" ref="point_of_sale.action_report_pos_receipt"/>
<field name="model_id" ref="point_of_sale.model_pos_order" />
<field name="auto_delete" eval="True" />
<field name="report_template" ref="point_of_sale.action_report_pos_receipt" />
<field name="report_name">Ticket ${object.pos_reference}</field>
<field name="lang">${object.partner_id.lang}</field>
<field name="body_html"><![CDATA[

27
beesdoo_pos/static/src/xml/templates.xml

@ -3,7 +3,8 @@
<t t-extend="ReceiptScreenWidget">
<t t-jquery='.pos-receipt-container' t-operation='before'>
<div class="button send">
<i class='fa fa-envelope'></i> Send Receipt By Mail
<i class='fa fa-envelope'></i>
Send Receipt By Mail
</div>
<div class="message-send">
</div>
@ -14,9 +15,13 @@
<t t-jquery="t[t-if='widget.pos.get_client()']" t-operation="after">
<t t-if="widget.pos.get_client()">
<div class='customer-information-pay'>
Balance: <span class='customer-balance' />
<br /><span class='customer-delegate1' />
<br /><span class='customer-delegate2' />
Balance:
<span class='customer-balance' />
<br />
<span class='customer-delegate1' />
<br />
<span class='customer-delegate2' />
</div>
</t>
</t>
@ -26,10 +31,16 @@
<t t-jquery=".paymentmethods-container" t-operation="inner">
<t t-if="widget.pos.get_client()">
<div class="customer-information">
<span class='customer-name' /> <br />
Balance: <span class='customer-balance' /><br />
<span class='customer-delegate1' /> <br />
<span class='customer-delegate2' /> <br />
<span class='customer-name' />
<br />
Balance:
<span class='customer-balance' />
<br />
<span class='customer-delegate1' />
<br />
<span class='customer-delegate2' />
<br />
</div>
</t>
</t>

11
beesdoo_pos/views/beesdoo_pos.xml

@ -7,7 +7,7 @@
<field name="arch" type="xml">
<field name="iface_tax_included" position="after">
<separator string="Bill Value" colspan="2" />
<field name="bill_value" nolabel="1" colspan="2" >
<field name="bill_value" nolabel="1" colspan="2">
<tree editable="bottom">
<field name="name" />
</tree>
@ -28,10 +28,11 @@
</record>
<template id="assets" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<script type="text/javascript" src="/beesdoo_pos/static/src/js/beesdoo.js"></script>
<link rel='stylesheet' href="/beesdoo_pos/static/src/css/beesdoo.css"/>
</xpath>
<xpath expr="." position="inside">
<script type="text/javascript"
src="/beesdoo_pos/static/src/js/beesdoo.js"></script>
<link rel='stylesheet' href="/beesdoo_pos/static/src/css/beesdoo.css" />
</xpath>
</template>
</data>
</openerp>
Loading…
Cancel
Save