in openerp-server.log i get this error message.
File "C:\OpenERP 7.0-20140221-003045\Server\server.\openerp\modules\registry.py", line 118, in load File "C:\OpenERP 7.0-20140221-003045\Server\server.\openerp\osv\orm.py", line 937, in create_instance File "C:\OpenERP 7.0-20140221-003045\Server\server.\openerp\osv\orm.py", line 988, in __init__ AttributeError: 'tuple' object has no attribute 'replace'
cant really figure out what it is as i have another module with a different name that has roughly the same syntax and it starts up fine? here is my model
from openerp.osv import osv, fields
class Products(osv.Model):
_name = 'products.products',
_columns = {
'Name': fields.text('Prod Name', size=100),
'Code': fields.text('Code'),
'Sku': fields.text('SKU', size=30),
'Description': fields.text('Description'),
'SalePriceWithVAT': fields.float('Sale Price + VAT'),
'Group': fields.float('Group'),
'Id': fields.text('ID'),
'ApplicationId': fields.text('App ID'),
}
iam stumped yet again with this stuff. at least the module is actually showing up in the list now though. any help is appreciated
for some reason orm.py thinks my _name value is a tuple. i seem to be fixing other errors in orm.py also. dont want to mess around with the source too much tbh. i just want to create my own module.