Error Picture
Python的文件:錯誤:模塊未找到:daily.transaction
from . import field,osv
class daily_transaction(osv.osv):
_name = 'daily.transaction'
_description = 'Daily Transaction'
_columns = {
'subject': fields.char('Subject', size=128, required = True),
'data' : fields.data('Date', required = True),
'note': fields.text('Notes'),
'amount': fields.float('Amount', required = True),
'type' : fields.selection([
('transport','Transport'),
('household','Household'),
('personal','Personal'),
],
'Type', required = True),
}
我猜錯誤是進口OSV。
錯誤說的是: 未找到模塊:daily.transaction,我也檢查了縮進。