> Why not keep the simpler import (from osv import orm, fields) and extend from > orm.Model?
IMO refactor must include CamelCase for clases, i am agree to extend from orm.Model but we can:
from Osv import Orm, Fields
class MyObject(Orm.Model): pass
looks pythonic.
« Back to merge proposal
> Why not keep the simpler import (from osv import orm, fields) and extend from
> orm.Model?
IMO refactor must include CamelCase for clases, i am agree to extend from orm.Model but we can:
from Osv import Orm, Fields
class MyObject( Orm.Model) :
pass
looks pythonic.