Browse Source

[FIX] remove button and functionality of print receipt

pull/128/head
Manuel Claeys Bouuaert 5 years ago
committed by Rémy Taymans
parent
commit
c997b76b88
  1. 2
      beesdoo_pos/data/email.xml
  2. 2
      beesdoo_pos/models/beesdoo_pos.py
  3. 5
      beesdoo_pos/static/src/js/beesdoo.js
  4. 4
      beesdoo_pos/static/src/xml/templates.xml

2
beesdoo_pos/data/email.xml

@ -10,7 +10,7 @@
<field name="partner_to">${object.partner_id.id}</field> <field name="partner_to">${object.partner_id.id}</field>
<field name="model_id" ref="point_of_sale.model_pos_order" /> <field name="model_id" ref="point_of_sale.model_pos_order" />
<field name="auto_delete" eval="True" /> <field name="auto_delete" eval="True" />
<!-- TODO: put back when 'pos_report' will be back -->
<!-- TODO: will be taken care of in separate 'pos_order_email' module -->
<!--<field name="report_template" ref="point_of_sale.action_report_pos_receipt" />--> <!--<field name="report_template" ref="point_of_sale.action_report_pos_receipt" />-->
<field name="report_name">Ticket ${object.pos_reference}</field> <field name="report_name">Ticket ${object.pos_reference}</field>
<field name="lang">${object.partner_id.lang}</field> <field name="lang">${object.partner_id.lang}</field>

2
beesdoo_pos/models/beesdoo_pos.py

@ -75,7 +75,7 @@ class BeescoopPosPartner(models.Model):
eater1, eater2, eater3 = self._get_eater() eater1, eater2, eater3 = self._get_eater()
return eater1, eater2, eater3 return eater1, eater2, eater3
# TODO: put back when 'pos_receipt.order' will be back point_of_sale.action_report_pos_receipt
# TODO: will be taken care of in separate 'pos_order_email' module
# from odoo.addons.point_of_sale.report import pos_receipt # from odoo.addons.point_of_sale.report import pos_receipt
# #
# class order_tva_included(pos_receipt.order): # class order_tva_included(pos_receipt.order):

5
beesdoo_pos/static/src/js/beesdoo.js

@ -13,7 +13,8 @@ odoo.define('beescoop.pos', function (require) {
} }
} }
module.ReceiptScreenWidget = module.ReceiptScreenWidget.include({
// TODO: will be taken care of in separate 'pos_order_email' module
/* module.ReceiptScreenWidget = module.ReceiptScreenWidget.include({
send : function() { send : function() {
var self = this; var self = this;
var loaded = new $.Deferred(); var loaded = new $.Deferred();
@ -41,7 +42,7 @@ odoo.define('beescoop.pos', function (require) {
var self = this; var self = this;
this.$('.message-send').empty(); this.$('.message-send').empty();
}, },
})
})*/
module.ActionpadWidget = module.ActionpadWidget.include({ module.ActionpadWidget = module.ActionpadWidget.include({
renderElement : function() { renderElement : function() {

4
beesdoo_pos/static/src/xml/templates.xml

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<templates id="template"> <templates id="template">
<t t-extend="ReceiptScreenWidget">
<!-- TODO: will be taken care of in separate 'pos_order_email' module -->
<!-- <t t-extend="ReceiptScreenWidget">
<t t-jquery='.pos-receipt-container' t-operation='before'> <t t-jquery='.pos-receipt-container' t-operation='before'>
<div class="button send"> <div class="button send">
<i class='fa fa-envelope'></i> <i class='fa fa-envelope'></i>
@ -10,6 +11,7 @@
</div> </div>
</t> </t>
</t> </t>
-->
<t t-extend="ActionpadWidget"> <t t-extend="ActionpadWidget">
<t t-jquery="t[t-if='widget.pos.get_client()']" t-operation="after"> <t t-jquery="t[t-if='widget.pos.get_client()']" t-operation="after">

Loading…
Cancel
Save