hi,
I'm adding a new field in account module,I'm following these steps..
1-create a new folder name account_test in addons.
2-create few files named,
__init__.py 
import account

__terp__.py
{
   "name" : "Accounts With A New Field",
   "author" : "Tiny",
   "version" : "1.0",
   "category" : "Generic Modules/Accounts",
   "depends" : ["base", "account"],
   "demo_xml" : [],
   "update_xml" : ["Account_test_view.xml"],
   "active": False,
   "installable": True
} 

account_test.py
from osv import fields
from osv import osv
import time
import netsvc

import ir
from mx import DateTime
import pooler
from tools import config

class account_test_line(osv.osv):
    _name = 'account.account'
    _inherit = 'account.account'
    _columns = {
        'test': fields.float('test', digits=(16,2)),
    }
account_test_line() 

but I have to modify a file

account_test_view.xml also but I'm confused,what code should be there ?

plz help me?
[Question]

------------------------
jitu




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=23767#23767

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to