almost 10 years ago
An object attributes is defined by declaring some fields with predefined names in the class. Two of them which are required (_name and _columns). The predefined fields are:
_auto: Determines whether a corresponding PostgreSQL table must be generated automatically from the object.
object declaration :
class name_of_the_object(osv.osv): _name = 'name.of.the.object' _columns = { ... } ... name_of_the_object()
Fields declaration:
class other_material(osv.osv): _name = 'other.material' _inherit = 'network.material' _columns = { 'manuf_warranty': fields.boolean('Manufacturer warranty?'), } _defaults = { 'manuf_warranty': lambda *a: False, } other_material()
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)