I want to know what is the main use of fields.related in odoo while making fileds type is related
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ờ
It is mostly used to get the information you need from related model so that it become 'available' to be used by the model that defines the related field. One most common example I face is when that piece of information is needed for domain.
E.g. In Sale Order: I want the Invoice Address to have the same State as the Customer's Address. No cross-state invoicing. So, you define the related field to get Customer's Address' State and then use it to domain Invoice Address.
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ý