_inherits doesnt see orm objects
Hello.
I'm trying to create my own little addon.
import time
import netsvc
from osv import fields, osv
import pooler
from tools import config
from tools.translate import _
class account_
_name = "account.invoice"
_inherit = "account.invoice"
def _get_order(self, cr, uid, ids, field_name, args, context={}):
res={}
sids = self.pool.
if sids:
else:
_columns = {
}
_defalts = {}
account_invoice()
And when installing it, i get:
"File "/usr/lib/
assert pool.get(
AssertionError: parent class account.invoice does not exist in module rez !"
Please help, i have no idea what have i missed to initialize
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Romain Deheele - Camptocamp
- Solved:
- Last query:
- Last reply: