You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from odoo import models
class Picking(models.Model):
_inherit = "stock.picking"
def write(self, vals):
res = super(Picking, self).write(vals)
if self.sale_id and (vals.get('state', False) == 'done' or vals.get('date_done', False)):
if len(self) == 1:
receipt = self.env.ref('my_module.action_saleorder_invoice_print')
if receipt:
receipt.print_document( [self.sale_id.id] )
return res
Mostly it works fine when cups response, but sometimes it freezes odoo at all and I have to kill and restart server
To Reproduce
17.0e
Steps to reproduce the behavior:
Add model stock.picking with overrided function write
Done picking
Odoo freezes
Expected behavior
Maybe some exception or writing to the log error. Maybe should be started in separated thread
Module
base_report_to_printer
Describe the bug
Stock picking function write overrided with:
Mostly it works fine when cups response, but sometimes it freezes odoo at all and I have to kill and restart server
To Reproduce
17.0e
Steps to reproduce the behavior:
Expected behavior
Maybe some exception or writing to the log error. Maybe should be started in separated thread
Additional context
odoo 17.0e
python 3.10.12
ubuntu 22.04 LTS
cups 2.4.1op1-1ubuntu4.8
The text was updated successfully, but these errors were encountered: