mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 10:19:09 +02:00
report
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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."))
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user