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.
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...
Upcoming SlideShare
Loading in …5
×

of

https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 1 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 2 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 3 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 4 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 5 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 6 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 7 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 8 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 9 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 10 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 11 https://www.cybrosys.com/blog/how-to-get-rid-of-the-error-a-partner-cannot-follow-twice-the-same-object Slide 12
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

0 Likes

Share

Download to read offline

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

Download to read offline

Follow the instructions to fix this problem

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

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.

Follow the instructions to fix this problem

Views

Total views

404

On Slideshare

0

From embeds

0

Number of embeds

1

Actions

Downloads

5

Shares

0

Comments

0

Likes

0

×