Hi,
I am using odoo 14. Our delivery operation involves 2 steps.
Step 1: The products are physically delivered from our warehouse to the customers.
Step 2: When receiving our delivery, the customer may choose to accept all qty or reject some qty because of damage, short shelf life, etc... So the undelivered products will be returned back to our warehouse and add back to our inventory.
The odoo 2-steps seems to fit our need but not 100%. For the returned qty (undelivered qty), they are still left in WH/Output and does not add back to WH/Stock.
Can someone tell me how I can customize the code to add back the undelivered qty to WH/Stock???
Also, we usually have to wait 1-2 days before knowing whether there are any returned items from the customer. In the meantime, other SOs are being created and delivered. I want to let the user see the exact quantity of a product lot physically in our warehouse, i.e in WH/Stock in the following format "lotABC[200]" where [200] is the qty of the lot in WH/Stock. I customize the name_get method as followed:
def name_get(self):
res = []
for lot in self:
if lot.name:
display_value = lot.name
display_value += ' [' display_value += '%.0f ' % lot.product_qty
display_value += lot.product_uom_id.name
display_value += ']'
res.append((lot.id, display_value))
return res
But it always show WH/Stock+WH/Output and not just the qty in WH/Stock. How can I correct that? Please advise.
Regards,
Simon Lee