Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] pos_stock_available_online: warehouse to notify #1285

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
_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 @@
],
).mapped("config_id")
if configs:
configs._notify_available_quantity(record._prepare_pos_message())
configs._notify_available_quantity(

Check warning on line 44 in pos_stock_available_online/models/stock_notifier_pos_mixin.py

View check run for this annotation

Codecov / codecov/patch

pos_stock_available_online/models/stock_notifier_pos_mixin.py#L44

Added line #L44 was not covered by tests
warehouse._prepare_vals_for_pos(record.product_id)
)
Loading