V15 allows you to add contacts and addresses (subcontacts) to every contact you create, but the subcontacts do not automatically take on the tags that were given to their parent contact. How do I configure the subcontacts to automatically take on their parent tags? I have 100s of contacts and subcontacts to add, and I would hate to have to continue doing this individually. Any help is appreciated.
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ờ
You can leverage our "multi edit" feature when working with records in List View:
1. Check that the Tags field is visible
2. Select ALL of the records you want to update
3. Click OK to confirm the update
Extra Credit: You can also use Filters if you have specific criteria to identify records so you can update even more with a single edit that updates all of them at once.
Hi Patricia,
You can add onchange on the field category_id ( Tags ). If it's parent then apply same tags to childs
your code should look something like this:
@api.onchange('category_id')
def onchangge_contact_categ_id(self):
if self.category_id and not self.parent_id: self.child_ids.mapped('category_id') = [Command.set(self.category_id.ids)]
Of course, since you may have different childs types ( invoice contact, delivery_contact...) and you want to apply this to only a specific type, then you have to call filtered before calling mapped.
I hope it's clear.
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 | |
---|---|---|---|---|
Mass update of Contact Tags
Đã xử lý
|
|
2
thg 3 24
|
1839 | |
|
1
thg 3 15
|
9663 | ||
assign batch tags to contacts
Đã xử lý
|
|
1
thg 9 21
|
4121 | |
|
5
thg 10 16
|
8957 | ||
|
1
thg 4 24
|
1019 |