Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.


Published on

Follow the instructions to fix this problem

Published in: Business
  • Be the first to comment

  • Be the first to like this

  1. 1. How to get rid of the error “A Partner Cannot Follow Twice The Same Object”
  2. 2. Do you need our help ??? Have you ever faced the following Odoo Warning ???
  3. 3. Do you want to fix it? Follow These Instructions:
  4. 4. class Uninstall(models.Model): _inherit = 'base.module.upgrade'
  5. 5. def upgrade_module(self, cr, uid, ids, context=None): res = super(UnInstall, self).upgrade_module(cr, uid, ids, context=context) ir_module = self.pool.get('ir.module.module') followers = self.pool.get('mail.followers')
  6. 6. followers_ids =, uid, [('res_model', 'in', ['job.card'])]) ids =, uid, [('state', 'in', ['to remove'])]) for j in ir_module.browse(cr, uid, ids): if == 'vehicle_sales':
  7. 7. for i in followers.browse(cr, uid, followers_ids): i.unlink() return res
  8. 8. • This Code Helps All The Developers To Fix The Error. • You Can Solve This Odoo Warning By Following This Code. • You Can Edit Few Lines Which Are Mentioned in the coming slides.
  9. 9. •followers_ids =, uid, [('res_model', 'in', ['job.card'])])? Here you can fill your table information in which table you face this issue instead of “job.card”
  10. 10. •if == 'vehicle_sales': Here you can fill your custom module in which module you face this issue instead of “vehicle_sale”.
  11. 11. Refer this link for more:
  12. 12. Thank You ! Cybrosys Technologies Pvt. Ltd. Neospace, Kinfra Techno Park, Kakkancherry, Calicut University P.O. Calicut Kerala, India - 673635. Cybrosys Ltd 15, ST Antonys Road, Forest Gate, London England, E79QA. Cybrosys Technologies Pvt. Ltd. 1st Floor, Thapasya Building, Infopark, Kakkanad, Kochi, Kerala, India-682030.