Im want to extend product_template with one more field like this:
class product_template(osv.osv): _inherit = "product.template" _columns = { 'selo' : fields.many2one('account.tax', 'Selo' ), 'historico' : fields.one2many('cmf.historial', 'product_id', 'Historico') } _defaults = { 'type': lambda *a: 'service' } product_template() I get this error: tiny_socket.Myexception: ("'NoneType' object has no attribute '_table'", 'Traceback (most recent call last): File "netsvc.pyo", line 231, in dispatch File "netsvc.pyo", line 74, in __call__ File "service\web_services.pyo", line 479, in execute File "service\security.pyo", line 48, in check File "pooler.pyo", line 76, in get_db File "pooler.pyo", line 40, in get_db_and_pool File "addons\__init__.pyo", line 704, in load_modules File "addons\__init__.pyo", line 587, in load_module_graph File "addons\__init__.pyo", line 341, in init_module_objects File "osv\orm.pyo", line 1649, in _auto_init AttributeError: 'NoneType' object has no attribute '_table' ') If I comment the field 'selo' it works fine. Whats wrong? -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=35222#35222 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users