I have a module with:
What I expect: I added the parent_id in the partner form where in the user can customer's parent. What I want to achieve is, when I select a parent company for a particular customer - the customer will be automatically added to child_ids of the parent company (override create and write method). And when I select child_ids in the parent company, the customer's parent id field will be updated to parent company id. How to achieve that? |