i created a new module while installing it the following error will be shown. Client Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\http.py", line 204, in dispatch File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\controllers\main.py", line 1133, in call_button File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\controllers\main.py", line 1121, in _call_kw File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 43, in proxy File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 31, in proxy_method File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 104, in send
Server Traceback (most recent call last): File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 90, in send File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\netsvc.py", line 293, in dispatch_rpc File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\service\web_services.py", line 626, in dispatch File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\osv\osv.py", line 188, in execute_kw File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\osv\osv.py", line 131, in wrapper File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\osv\osv.py", line 197, in execute File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\osv\osv.py", line 185, in execute_cr File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\base\module\module.py", line 424, in button_immediate_install File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\base\module\module.py", line 475, in _button_immediate_function File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\pooler.py", line 39, in restart_pool File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\modules\registry.py", line 218, in new File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\modules\loading.py", line 345, in load_modules File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\modules\loading.py", line 256, in load_marked_modules File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\modules\loading.py", line 188, in load_module_graph File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\modules\loading.py", line 76, in <lambda> File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\modules\loading.py", line 124, in _load_data File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\tools\convert.py", line 954, in convert_xml_import File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\tools\convert.py", line 847, in parse File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server.\openerp\tools\convert.py", line 814, in _tag_record File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\base\ir\ir_model.py", line 963, in _update File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\base\ir\ir_ui_view.py", line 101, in create KeyError: 'arch' ... in the eclipse IDE i tried to run the code there should displayed the error like this. .Traceback (most recent call last): File "C:\Users\Jyothish\workspace\new\src\price\price.py", line 1, in <module> from osv import fields,osv ImportError: No module named osv
Please post the code of file price.py
from openerp.osv import fields,osv
class price(osv.model): _name = "x_product" _description ="productlist" _coloum = { 'x_product': fields.many2one('Product.product','product'), 'x_price':fields.float('price',required="false"), } price() def onchange_pricelist_id(self, cr, uid, ids, pricelist_id, order_lines, context=None): context = context or {} if not pricelist_id: return {} value = { 'currency_id': self.pool.get('product.pricelist').browse(cr, uid, pricelist_id, context=context).curren
ncy_id.id } if not order_lines: return {'value': value} warning = { 'title': _('Pricelist Warning!'), 'message' : _('If you change the pricelist of this order (and eventually the currency), prices of existing order lines will not be updated.') } return {'warning': warning, 'value': value}