This commit is contained in:
sonal arora
2020-09-25 13:45:37 +00:00
parent 9e228b95ce
commit ff164554ff
28 changed files with 18 additions and 18 deletions

View File

@@ -279,13 +279,13 @@ class InterCompanyTransfer(models.Model):
source_wh = self.source_warehouse_id
dest_wh = self.destination_warehouse_id
print('source++++++++++++++++++++++++++++++++++++',source_wh,dest_wh)
group_id = procurementgroup_obj.create({'name': self.name, 'partner_id': dest_wh.partner_id.id})
self.group_id = group_id.id
route_ids = stocklocation_route_obj.search([('supplied_wh_id', '=', dest_wh.id), ('supplier_wh_id', '=', source_wh.id)])
print('routeuuuuuuuuuuuuuuuuuuuuuuuuu',route_ids)
if not route_ids:
raise ValidationError(_("No routes are found. \n Please configure warehouse routes and set in products."))
# if not route_ids:
# raise ValidationError(_("No routes are found. \n Please configure warehouse routes and set in products."))
if not self.intercompany_transferline_ids :
raise ValidationError(_("No Products found. \n Please add products to transfer."))