Browse Source

Jul 23 : [UPDT] Updated 'pos_kitchen_screen_odoo'

18.0
AjmalCybro 6 days ago
parent
commit
9f7a219b3e
  1. 2
      pos_kitchen_screen_odoo/__manifest__.py
  2. 6
      pos_kitchen_screen_odoo/doc/RELEASE_NOTES.md
  3. 12
      pos_kitchen_screen_odoo/models/pos_orders.py
  4. 9
      pos_kitchen_screen_odoo/static/description/index.html

2
pos_kitchen_screen_odoo/__manifest__.py

@ -21,7 +21,7 @@
############################################################################ ############################################################################
{ {
'name': 'POS Kitchen Screen', 'name': 'POS Kitchen Screen',
'version': '18.0.1.1.1', 'version': '18.0.1.1.2',
'category': 'Point Of Sale', 'category': 'Point Of Sale',
'summary': 'POS Kitchen Screen facilitates sending certain orders ' 'summary': 'POS Kitchen Screen facilitates sending certain orders '
'automatically to the kitchen.The POS Kitchen Screen allows for ' 'automatically to the kitchen.The POS Kitchen Screen allows for '

6
pos_kitchen_screen_odoo/doc/RELEASE_NOTES.md

@ -16,3 +16,9 @@
#### Version 18.0.1.1.1 #### Version 18.0.1.1.1
#### BUG FIX #### BUG FIX
- Fixed issue where completed orders were still shown after the session was closed. - Fixed issue where completed orders were still shown after the session was closed.
#### 15.07.2025
#### Version 18.0.1.1.2
#### BUG FIX
- Fixed issue where order reference in order list become mistmatch/wrong, get order ref from other POS.

12
pos_kitchen_screen_odoo/models/pos_orders.py

@ -86,14 +86,12 @@ class PosOrder(models.Model):
else: else:
if vals.get('order_id') and not vals.get('name'): if vals.get('order_id') and not vals.get('name'):
# set name based on the sequence specified on the config # set name based on the sequence specified on the config
config = self.env['pos.order'].browse( config = self.env['pos.order'].browse(vals['order_id']).session_id.config_id
vals['order_id']).session_id.config_id if config and config.sequence_line_id:
if config.sequence_line_id:
vals['name'] = config.sequence_line_id._next() vals['name'] = config.sequence_line_id._next()
if not vals.get('name'): else:
# fallback on any pos.order sequence # Generate a unique name using a default fallback sequence
vals['name'] = self.env['ir.sequence'].next_by_code( vals['name'] = self.env['ir.sequence'].next_by_code('pos.order')
'pos.order.line')
return super().create(vals_list) return super().create(vals_list)
def get_details(self, shop_id, order=None): def get_details(self, shop_id, order=None):

9
pos_kitchen_screen_odoo/static/description/index.html

@ -934,26 +934,25 @@
<div class="row pt-5 m-0"> <div class="row pt-5 m-0">
<div class="col-md-3"> <div class="col-md-3">
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;"> <h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;">
Latest Release 18.0.1.0.0 Latest Release 18.0.1.1.2
</h4> </h4>
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;"> <span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;">
16th February, 2025 15th July, 2025
</span> </span>
</div> </div>
<div class="col-md-8"> <div class="col-md-8">
<div style="padding:0 0 40px"> <div style="padding:0 0 40px">
<div style="margin:0 0 10px"> <div style="margin:0 0 10px">
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px"> <div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px">
Add Bug Fix
</div> </div>
</div> </div>
<div class="d-flex m-0" <div class="d-flex m-0"
style="color:#7A7979;"> style="color:#7A7979;">
<ul class="pl-3 mb-0"> <ul class="pl-3 mb-0">
<li> <li>
Initial Commit Fixed issue where order reference in order list become mistmatch/wrong, get order ref from other POS.
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>

Loading…
Cancel
Save