Advertisement
rht_odoo

[QW][3940222]Tags parent sur enfant

May 29th, 2024 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. # Done by RHT on the 22/05/2024
  2. # Reviewed by SEA on the 29/05/2024
  3. # Review: https://pastebin.com/MPkNfGfa
  4. # Need: Have the children contact have the same tags as the parent
  5. # Task: https://www.odoo.com/odoo/project/5686/tasks/3940222?cids=1
  6. for contact in records.filtered(lambda c: c.parent_id):
  7.   contact["category_id"] = contact.parent_id.category_id
  8.  
  9.  
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement