0
votes

Hi I am trying to create a simple filed in my custom openerp 7 module. I am using win 7 and eclipse IDE. But the problem is when I am creating my .py file as my code is as follows

" from openerp.osv import fields,osv

import time

class formview(osv.osv):

    _columns = {'name': fields.char('name',size=64) }

formview() "

I am receiving an error

" _columns = {'name': fields.char('name',size=64) }

       ^

IndentationError: expected an indented block "

What am I missing I dont know . Plz guide me as I am new to openerp and python.

Hopes for suggestion

1

1 Answers

0
votes

Its very simple and most common issue for new developers.

You have to configure your IDE with 4 space instead of tab. Once you configure it will not show this error.

If you using ubuntu then use gedit much batter and easy for openerp developement.

To right now resolve your issue, use four space instead of one tab.

OpenERP follow indentation by four space.