Hi In Odoo 8 I am trying to build a module.
I have this:
__init__.py:
from . import vrijeme_racun
__openerp__.py:
{
'name': 'Vrijeme Racun',
'version': '1.0',
'category': 'Tools',
'summary': 'Vrijeme, Racun',
'description': """
Vrijeme za racune
================================
Dodaje vrijeme na racun.
""",
'depends' : ['base'],
'data' : [],
'images': [],
'demo': [],
'installable' : True,
'application': True,
}
vrijeme_racun.pj:
from openerp import models, fields, api
class override_date_invoice(models.Model):
_inherit = 'account.invoice'
date_invoice = fields.Datetime(string = 'Invoice Date', readonly = True, states = {'draft': [('readonly', False)]}, index=True,help=’Keep empty to use the current date’,copy = False)
When trying to install I get error:
File "/var/lib/odoo/.local/share/Odoo/addons/8.0/vrijeme_racun/__init__.py", line 1, in <module>
from . import vrijeme_racun
ImportError: cannot import name vrijeme_racun
I am new at this so if you can help.Thanks