[trunk] openerp.module.graph.Node: suspicious super() call

Bug #1050329 reported by Alexandre Fayolle - camptocamp
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

I noticed that in openerp/module/graph.py the method __setattr__ of Node(Singleton) calls super(Singleton, self).__setattr__ rather than super(Node, self).__setattr__.

If this is done for a purpose, it deserves a comment explaining why things are done that way. Otherwise it deserves fixing.

Stable is probably affected too.

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Nidhi A Makwana (nidhiamakwana98) wrote :

how can we call super method for any module from another module ?

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

In OpenERP, you should use _inherit and call super()!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.