Hi,
sorry, im unable to trace why im getting this error, i followed all the steps
described above..
error:
---
-----
File "C:\Program Files\OpenERP
AllInOne\Server\addons\myapple.zip\myapple\myapple.py", line 34, in
apple_redapple
TypeError: __init__() takes exactly 3 arguments (2 given)
can some correct my .py file
from osv import osv, fields
class apple_redapple(osv.osv):
_name = 'apple.redapple'
_columns = {
'name': fields.char('Apple shape'),
}
apple_redapple()
class apple_offer(osv.osv):
_name = 'apple.offer'
_columns = {
'name': fields.char('Apple Odor', char=32),
'apple_red': fields.many2one('apple.redapple','Apple Color'),
}
apple_offer()
class apple_myapple(osv.osv):
_name = 'apple.myapple'
_columns = {
'name': fields.char('AppleName',char=64),
'ids': fields.char('Apple ID',char=64),
'offers': fields.one2many('apple.offer','apple_red','Offers'),
}
apple_myapple()
plz, help me for that last two day im fighting with error,
Thank you,
------------------------
Regards,
Sudhakar Arige
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=41400#41400
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users