新手求助关于源代码的问题
- 
cr在代码中没有定义也没有Import,在代码中为什么直接就用了呢? 
 cr在代码中没有定义也没有Import,在代码中为什么直接就用了呢?
 例如在tinyerp-server-4.2.3.4binosvorm.py中的
 def _field_create(self, cr):
 cr.execute("SELECT id FROM ir_model WHERE model='%s'" % self._name)
 if not cr.rowcount:
 # reference model in order to have a description of its fonctionnality in custom_report
 cr.execute("INSERT INTO ir_model (model, name, info) VALUES (%s, %s, %s)", (self._name, self._description, self.doc))
 cr.commit()
 谢谢:)