mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Big changes to tests (because of the ways stock has changed) and allow activities to be set on RMAs. Other refactors to reduce code duplication between picking and so returns.
14 lines
358 B
Python
14 lines
358 B
Python
from odoo import api, models, _
|
|
from odoo.exceptions import UserError
|
|
|
|
|
|
class StockPicking(models.Model):
|
|
_inherit = 'stock.picking'
|
|
|
|
@api.multi
|
|
def send_to_shipper(self):
|
|
res = False
|
|
for pick in self.filtered(lambda p: not p.carrier_tracking_ref):
|
|
res = super(StockPicking, pick).send_to_shipper()
|
|
return res
|