Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
www.cybrosys.com
How to get rid of the error
“A Partner Cannot Follow Twice The Same Object”
Do you need our help ???
Have you ever faced the following Odoo Warning ???
Do you want to fix it?
Follow These Instructions:
class Uninstall(models.Model):
_inherit = 'base.module.upgrade'
def upgrade_module(self, cr, uid, ids, context=None):
res = super(UnInstall, self).upgrade_module(cr, uid, ids, context=co...
followers_ids = followers.search(cr, uid, [('res_model', 'in', ['job.card'])]) ids = ir_module.search(cr,
uid, [('state', ...
for i in followers.browse(cr, uid, followers_ids): i.unlink()
return res
• This Code Helps All The Developers To Fix The Error.
• You Can Solve This Odoo Warning By Following This Code.
• You Can...
•followers_ids = followers.search(cr, uid, [('res_model', 'in', ['job.card'])])?
Here you can fill your table information ...
•if j.name == 'vehicle_sales':
Here you can fill your custom module in which module you face this
issue instead of “vehicl...
Refer this link for more:
https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same...
Thank You !
Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park,
Kakkancherry,
Calicut University P.O.
Calicut
Ke...
Prochain SlideShare
Chargement dans…5
×

https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object

332 vues

Publié le

Follow the instructions to fix this problem

Publié dans : Business
  • As a single mother every little bit counts! This has been such a great way for me to earn extra money. As a single mother every little bit counts! Finally, a vehicle for making some honest to goodness real money to make life easier and happier now that I don't have to pull my hair out budgeting every penny every day.Thanks for the rainbow in my sky. ♥♥♥ https://tinyurl.com/vd3y33w
       Répondre 
    Voulez-vous vraiment ?  Oui  Non
    Votre message apparaîtra ici
  • Soyez le premier à aimer ceci

https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object

  1. 1. www.cybrosys.com 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 = followers.search(cr, uid, [('res_model', 'in', ['job.card'])]) ids = ir_module.search(cr, uid, [('state', 'in', ['to remove'])]) for j in ir_module.browse(cr, uid, ids): if j.name == '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 = followers.search(cr, 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 j.name == '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: https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object
  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.

×