picking_ids = self.env['stock.picking'].search(
[('sale_id.sample_id', '=', line.id)])
# for loop condition to check each line by line of the product lines
for pick in picking_ids.move_ids_without_package:
# check Condition if sample Qty returned less than means status will be partial returned
if pick.state != 'done':
print("half delivered")
picking_ids.write({'state': 'partially_delivered'})
else:
print("delivered")
# print(sample_qty, return_qty)
# active_id.write({'return_date': self.return_date, 'return_by': self.responsible_person,
# 'state': 'return'})
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
This question has been flagged
1829
Görünümler
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye OlRelated Posts | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
1
Haz 23
|
2243 | ||
|
1
Haz 23
|
4012 | ||
|
1
Oca 23
|
2137 | ||
|
0
Eyl 22
|
1976 | ||
|
1
Ağu 22
|
2821 |