i have to delete delivery order lines except state is done. Validation is raising when i tried to delete the lines, how to remove that validation
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ờ
Hello Asha,
You can directly run a query on database to bypass all the validations but this is not recommended. Instead of deleting records you can use Odoo's standard 'Archive' functionality.
If 'Archive' action is not visible then you have to define a Boolean field in the model like this.
active = fields.Boolean(default=True)
After the you just need to upgrade the module and we're good to go. Now you can also manually set the value of this 'active' field as False to hide record from view.
Referance: https://www.odoo.com/documentation/16.0/applications/productivity/studio/models_modules_apps.html?highlight=archive%20action
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Thanks for your reply.
I want to delete lines under 'move_ids_without_package'
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 | |
---|---|---|---|---|
|
2
thg 5 25
|
4417 | ||
|
0
thg 7 21
|
3054 | ||
|
1
thg 3 21
|
4199 | ||
|
2
thg 7 24
|
1636 | ||
|
1
thg 5 23
|
11080 |