ciao Lorenzo,
mi sono arenato un po' prima, ossia nell'aggiunta del campo all'oggetto account.invoice e relativo form. Per cercare di trovare dove sbaglio ho lasciato nel file xml solo i tag:
<?xml version="1.0" ?>
<openerp>
</openerp>
L'importazione del modulo ha successo, ma subito dopo mi si presenta questo errore:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 1955, in write
if self._columns[field]._classic_write:
KeyError: 'action_module_open'
Non capisco a cosa sia dovuto, qualsiasi cosa cambio l'errore rimane.
Qui il file .py:
# -*- encoding: utf-8 -*-
from osv import osv, fields
class account_invoice(osv.osv):
_name = 'account.invoice'
_inherit = 'account.invoice'
_columns = {
'suppinvseq': fields.char('Supplier invoice sequential number', size=4,}
account_invoice()
Sai dirmi cosa sto sbagliando?
grazie in anticipo
Lucio