Merge pull request #348 from ursais/bodedra_fix_repair_refurbish_tracking

[12.0][FIX] repair_refurbish, product with tracking show error when end repair order
This commit is contained in:
Pedro M. Baeza
2019-04-22 09:07:40 +02:00
committed by GitHub
3 changed files with 13 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "MRP Repair Refurbish",
"summary": "Create refurbished products during repair",
"version": "12.0.1.0.1",
"version": "12.0.1.1.1",
"category": "Manufacturing",
"website": "https://github.com/OCA/manufacture",
"author": "Eficent, Odoo Community Association (OCA)",

View File

@@ -49,8 +49,17 @@ class RepairOrder(models.Model):
self.address_id.id or False,
'location_id': self.location_dest_id.id,
'location_dest_id': self.refurbish_location_dest_id.id,
'restrict_lot_id': self.refurbish_lot_id.id,
}
'move_line_ids': [(0, 0, {
'product_id': self.refurbish_product_id.id,
'lot_id': self.refurbish_lot_id.id,
'product_uom_qty': self.product_qty,
'product_uom_id': self.product_uom.id or
self.refurbish_product_id.uom_id.id,
'qty_done': self.product_qty,
'package_id': False,
'result_package_id': False,
'location_id': self.location_dest_id.id,
'location_dest_id': self.refurbish_location_dest_id.id})]}
@api.multi
def action_repair_done(self):

View File

@@ -1,3 +1,4 @@
* Jordi Ballester Alomar <jordi.ballester@eficent.com>
* Lois Rilo <lois.rilo@eficent.com>
* Akim Juillerat <akim.juillerat@camptocamp.com>
* Bhavesh Odedra <bodedra@opensourceintegrators.com>