|
@ -23,6 +23,14 @@ class StockPicking(models.Model): |
|
|
|
|
|
|
|
|
@api.model |
|
|
@api.model |
|
|
def create(self, values): |
|
|
def create(self, values): |
|
|
|
|
|
print "Values", values |
|
|
picking = super(StockPicking, self).create(values) |
|
|
picking = super(StockPicking, self).create(values) |
|
|
picking._add_follower() |
|
|
picking._add_follower() |
|
|
return picking |
|
|
return picking |
|
|
|
|
|
|
|
|
|
|
|
@api.multi |
|
|
|
|
|
def copy_qty(self): |
|
|
|
|
|
self.ensure_one() |
|
|
|
|
|
for pack_operation in self.pack_operation_product_ids: |
|
|
|
|
|
pack_operation.qty_done = pack_operation.product_qty |
|
|
|
|
|
return True |