Browse Source

Oct 01: [ADD] Initial commit 'custom_receipts_for_pos'

pull/336/head
Cybrosys Technologies 10 months ago
parent
commit
ced7c8c742
  1. 2
      custom_receipts_for_pos/__manifest__.py
  2. 5
      custom_receipts_for_pos/doc/RELEASE_NOTES.md
  3. 6
      custom_receipts_for_pos/static/src/js/receipt_design.js
  4. 2
      custom_receipts_for_pos/views/pos_config_views.xml

2
custom_receipts_for_pos/__manifest__.py

@ -22,7 +22,7 @@
################################################################################ ################################################################################
{ {
'name': 'POS Receipt Design', 'name': 'POS Receipt Design',
'version': '17.0.1.0.5', 'version': '17.0.3.0.5',
'category': 'Point of Sale', 'category': 'Point of Sale',
'summary': "POS Receipt, Receipt Design, POS Receipt Template, Design " 'summary': "POS Receipt, Receipt Design, POS Receipt Template, Design "
"Report, Custom Receipt, POS Report, Customise Receipt, Odoo17, " "Report, Custom Receipt, POS Report, Customise Receipt, Odoo17, "

5
custom_receipts_for_pos/doc/RELEASE_NOTES.md

@ -30,3 +30,8 @@
#### Version 17.0.1.0.5 #### Version 17.0.1.0.5
##### BUGFIX ##### BUGFIX
- Fixed the missing company logo in the pos receipts when printing. - Fixed the missing company logo in the pos receipts when printing.
#### 27.09.2024
#### Version 17.0.2.0.5
##### BUGFIX
- Fixed the receipt printing order issue.

6
custom_receipts_for_pos/static/src/js/receipt_design.js

@ -16,9 +16,9 @@ patch(OrderReceipt.prototype, {
return { return {
data: this.props.data, data: this.props.data,
order: this.pos.orders, order: this.pos.orders,
receipt: this.pos.orders[0].export_for_printing(), receipt: this.pos.get_order().export_for_printing(),
orderlines:this.pos.orders[0].get_orderlines(), orderlines:this.pos.get_order().get_orderlines(),
paymentlines:this.pos.orders[0].get_paymentlines() paymentlines:this.pos.get_order().get_paymentlines()
}; };
}, },
get templateComponent() { get templateComponent() {

2
custom_receipts_for_pos/views/pos_config_views.xml

@ -10,7 +10,7 @@
<setting title="Customize the POS receipts" string="Custom Receipt" help="Use custom receipt designs"> <setting title="Customize the POS receipts" string="Custom Receipt" help="Use custom receipt designs">
<field name="is_custom_receipt"/> <field name="is_custom_receipt"/>
<div class="content-group mt16"> <div class="content-group mt16">
<field name="receipt_design" invisible="not is_custom_receipt"/> <field name="receipt_design" invisible="not is_custom_receipt" required="True"/>
</div> </div>
<div class="content-group mt16"> <div class="content-group mt16">
<field name="design_receipt" invisible="1"/> <field name="design_receipt" invisible="1"/>

Loading…
Cancel
Save