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:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1824
Lượt xem
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 6 23
|
2243 | ||
|
1
thg 6 23
|
4012 | ||
|
1
thg 1 23
|
2136 | ||
|
0
thg 9 22
|
1976 | ||
|
1
thg 8 22
|
2819 |