Skip to content

Commit

Permalink
Merge PR #1285 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by ivantodorovich
  • Loading branch information
OCA-git-bot committed Jan 15, 2025
2 parents 5fb12ad + a1be155 commit fbdd5ed
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pos_stock_available_online/models/stock_notifier_pos_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ class StockNotifierPosMixin(models.AbstractModel):
_name = "stock.notifier.pos.mixin"
_description = "Stock Notifier POS Mixin"

def _prepare_pos_message(self):
"""
Return prepared message to send to POS
"""
self.ensure_one()
return self.warehouse_id._prepare_vals_for_pos(self.product_id)

def _skip_notify_pos(self):
"""
Skip notification to POS
Expand Down Expand Up @@ -48,4 +41,6 @@ def _notify_pos(self):
],
).mapped("config_id")
if configs:
configs._notify_available_quantity(record._prepare_pos_message())
configs._notify_available_quantity(
warehouse._prepare_vals_for_pos(record.product_id)
)

0 comments on commit fbdd5ed

Please sign in to comment.