Skip to content
Snippets Groups Projects
Commit 15471d75 authored by Diego Barreto's avatar Diego Barreto
Browse files

Merge branch 'FIX' into '12.0'

[FIX] modify sm and sml date

See merge request !1008
parents cc9910d9 24f1cadb
No related branches found
No related tags found
1 merge request!1008[FIX] modify sm and sml date
......@@ -320,6 +320,7 @@ class StockPicking(models.Model):
stock_move_to_add = [(0, 0, {
'name': product.name,
'date': date_done,
'product_id': product.id,
'quantity_done': quantity_done,
'stock_quantity_done': stock_quantity_done,
......@@ -393,6 +394,12 @@ class StockPicking(models.Model):
picking.write({
'date_done': date_done,
})
picking.move_lines.write({
'date': date_done
})
picking.move_line_ids.write({
'date': date_done
})
_logger.info("Picking from Carniceria Created with ID: %s", str(picking_id))
else:
_logger.info("Picking from Carniceria alredy imported with ID: %s", str(picking_id))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment