Hello all!
We want to change the default sort order in this view. Actually, thoses lines are sorted by name.
In the file ../openerp/addons/base/ir/ir_sequence_view.py, We have changed :
class ir_sequence(openerp.osv.osv.osv):
_name = 'ir.sequence'
_order = 'name'
for :
class ir_sequence(openerp.osv.osv.osv):
_name = 'ir.sequence'
_order = 'company_id'
and it works. the sequences are well sorted by company_id in our ir_sequence view :
But now, how could we overwrite ONLY this line ( _order = 'company_id') of the ir_sequence class? Do we have to override all the class?
We already have this in our custom module py file :
class not sure (openerp.osv.osv.osv):
_name = 'not sure...'
_order = 'company_id'
_inherit = 'not sure....'
Could you help to complete? THANKS
Not getting clearly. You are talking about which line? Can you guide more?
Do you want to change the "_order", by inheriting?
Yes, i'm searching the SHORTEST override that I could have. My goal is only to change the default order of the view.