openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17294
[Bug 1073557] Re: [trunk] bug in install mrp module with demo data
** Project changed: openobject-server => openobject-addons
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1073557
Title:
[trunk] bug in install mrp module with demo data
Status in OpenERP Addons (modules):
New
Bug description:
hi,
when i want to install mrp with demo data i have an error on loading
mrp_demo.xml
here follow the trace back and server log.
thanks for all
stephane
2012-10-31 13:59:09,709 28969 INFO sd_demo openerp.modules.loading: module mrp: loading security/mrp_security.xml
2012-10-31 13:59:10,165 28969 INFO sd_demo openerp.modules.loading: module mrp: loading security/ir.model.access.csv
2012-10-31 13:59:10,566 28969 INFO sd_demo openerp.modules.loading: module mrp: loading mrp_workflow.xml
2012-10-31 13:59:10,673 28969 INFO sd_demo openerp.modules.loading: module mrp: loading mrp_data.xml
2012-10-31 13:59:10,717 28969 INFO sd_demo openerp.modules.loading: module mrp: loading wizard/mrp_product_produce_view.xml
2012-10-31 13:59:10,741 28969 INFO sd_demo openerp.modules.loading: module mrp: loading wizard/change_production_qty_view.xml
2012-10-31 13:59:10,764 28969 INFO sd_demo openerp.modules.loading: module mrp: loading wizard/mrp_price_view.xml
2012-10-31 13:59:10,790 28969 INFO sd_demo openerp.modules.loading: module mrp: loading wizard/mrp_workcenter_load_view.xml
2012-10-31 13:59:10,816 28969 INFO sd_demo openerp.modules.loading: module mrp: loading mrp_view.xml
2012-10-31 13:59:11,753 28969 INFO sd_demo openerp.modules.loading: module mrp: loading mrp_report.xml
2012-10-31 13:59:11,795 28969 INFO sd_demo openerp.modules.loading: module mrp: loading company_view.xml
2012-10-31 13:59:11,843 28969 INFO sd_demo openerp.modules.loading: module mrp: loading process/stockable_product_process.xml
2012-10-31 13:59:11,886 28969 INFO sd_demo openerp.modules.loading: module mrp: loading process/service_product_process.xml
2012-10-31 13:59:11,906 28969 INFO sd_demo openerp.modules.loading: module mrp: loading process/procurement_process.xml
2012-10-31 13:59:12,035 28969 INFO sd_demo openerp.modules.loading: module mrp: loading report/mrp_report_view.xml
2012-10-31 13:59:12,123 28969 INFO sd_demo openerp.modules.loading: module mrp: loading report/mrp_production_order_view.xml
2012-10-31 13:59:12,128 28969 INFO sd_demo openerp.modules.loading: module mrp: loading board_manufacturing_view.xml
2012-10-31 13:59:12,167 28969 INFO sd_demo openerp.modules.loading: module mrp: loading res_config_view.xml
2012-10-31 13:59:12,215 28969 INFO sd_demo openerp.modules.loading: module mrp: loading mrp_demo.xml
2012-10-31 13:59:12,469 28969 ERROR sd_demo openerp.tools.convert: Parse error in /home/openerp/branch_bzr_7/openobject-addons/mrp/mrp_demo.xml:26:
<record id="product.product_assembly" model="product.product">
<field name="standard_price">0.1</field>
<field name="uom_id" ref="product.product_uom_hour"/>
<field name="uom_po_id" ref="product.product_uom_hour"/>
<field name="type">service</field>
<field name="name">Assembly Service Cost</field>
<field name="categ_id" ref="product.product_category_5"/>
<field name="image">/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCACPAI8DASIAAhEBAxEB/8QAHQAAAQQDAQEAAAAAAAAAAAAAAAQGBwgBAwUCCf/EAEsQAAEDAwIDBAQHCgwHAAAAAAECAwQABREGEgchMQgTQVEiYXGBFTJCc5GhsRQjNDU3Y7KzwdEWJTNSZHWCkqK0w+EkcpOjwvDx/8QAGwEAAQUBAQAAAAAAAAAAAAAAAAIDBAUGAQf/xAA3EQABAwIEAwQHBwUAAAAAAAABAAIDBBEFEiExBkFhE1FxgRQikaGx0fAjMmJyweHxBzVCssL/2gAMAwEAAhEDEQA/ALl0UUUIRRRRQhFFFFCEUUU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OqdACu8xgAeWAP2130RUo8K9FCUioU1e+YZTsoVRiT52lh2KgftzPFfCy0BWM/Dbf6h6m32B3NiNaE+Jg/wCvXd7cKgeGNpGel5bP/Zeppdh97uWtXkeJh/69b2nbfgyRn4v+2qh7PNWtb0+amyS0mDq+QgH0FPbk+oL5492ce6nEnp7KbOpFhd0bkJOCpO0+0H/f6q7ip0ZmIiTIfbaQpAUStQFY6Zpc1h52Wsla4sYedksrfb5AjSdxPoEYVTEuvEOzMLUzbkPXJ8ctrCfRz7aW6NnagvUwv3G1uRYwwWm0HkfWo9T7B9dIfSv7MueLDqkyUUgjLpBYdVAutGHZ3bYt7rCdyFXaA8FeBQhtoqPuCFfRVzEqSehBrgo0/bVTEznLbF+6kjAeLSd4HluxmuwwwEAAAik4vija6OCMC3Zty+PVZ6RkbScp3KUUVhIwKzVGm0UYoooQjArGBWaKELGBRtFZooQvC00meTgc6WVgpB6iug2K6DYquvbQhSJ3C+M5GaU4IdzbeeA+Sju3EbvpUke+mp2Jbc6bVqaa6AlqQ/HaayepQlwq/WJ/9FWmu9mtt1iriz4bEllYwpt1AUlQ9YNJbRpq02hgR7XAjQmEnk2w2EJHuHKtVDxG1mDuw7LqTe/mD8QnW9mJRNrcCyauotN3CVG3Wx1oSAfR70Hb9VNiFwsu1xkh7UN0dfGfiA+iPd0qZW2EpFbAgCqZuKTMblarBmM1EbcrLePNNXTuh7JaEp7mIgrHyiKdDTKG0gISAB5VsoqFLNJKbvN1XzVEsxvI66MCiiimkyiiiihC/9k=</field>
</record>
Traceback (most recent call last):
File "/home/openerp/branch_bzr_7/openobject-server/openerp/tools/convert.py", line 848, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/tools/convert.py", line 815, in _tag_record
id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/home/openerp/branch_bzr_7/openobject-server/openerp/addons/base/ir/ir_model.py", line 945, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/home/openerp/branch_bzr_7/openobject-addons/product/product.py", line 566, in create
obj_id = super(product_product, self).create(cr, uid, vals, context=context)
File "/home/openerp/branch_bzr_7/openobject-addons/mail/mail_thread.py", line 228, in create
thread_id = super(mail_thread, self).create(cr, uid, vals, context=context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 4271, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 2492, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 1622, in default_get
for i in range(len(field_value)):
TypeError: object of type 'bool' has no len()
2012-10-31 13:59:12,477 28969 ERROR sd_demo openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/addons/base/module/module.py", line 456, in button_immediate_upgrade
return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/addons/base/module/module.py", line 418, in _button_immediate_function
_, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/pooler.py", line 39, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/registry.py", line 176, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 333, in load_modules
processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 244, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 184, in load_module_graph
load_demo(module_name, idref, mode)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 79, in <lambda>
load_demo = lambda *args: _load_data(cr, *args, kind='demo')
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 125, in _load_data
tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/tools/convert.py", line 955, in convert_xml_import
obj.parse(doc.getroot())
File "/home/openerp/branch_bzr_7/openobject-server/openerp/tools/convert.py", line 848, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/tools/convert.py", line 815, in _tag_record
id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/home/openerp/branch_bzr_7/openobject-server/openerp/addons/base/ir/ir_model.py", line 945, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/home/openerp/branch_bzr_7/openobject-addons/product/product.py", line 566, in create
obj_id = super(product_product, self).create(cr, uid, vals, context=context)
File "/home/openerp/branch_bzr_7/openobject-addons/mail/mail_thread.py", line 228, in create
thread_id = super(mail_thread, self).create(cr, uid, vals, context=context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 4271, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 2492, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 1622, in default_get
for i in range(len(field_value)):
TypeError: object of type 'bool' has no len()
2012-10-31 13:59:12,480 28969 ERROR sd_demo openerp.netsvc: object of type 'bool' has no len()
Traceback (most recent call last):
File "/home/openerp/branch_bzr_7/openobject-server/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/service/web_services.py", line 585, in dispatch
res = fn(db, uid, *params)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/addons/base/module/module.py", line 456, in button_immediate_upgrade
return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/addons/base/module/module.py", line 418, in _button_immediate_function
_, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/pooler.py", line 39, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/registry.py", line 176, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 333, in load_modules
processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 244, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 184, in load_module_graph
load_demo(module_name, idref, mode)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 79, in <lambda>
load_demo = lambda *args: _load_data(cr, *args, kind='demo')
File "/home/openerp/branch_bzr_7/openobject-server/openerp/modules/loading.py", line 125, in _load_data
tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/tools/convert.py", line 955, in convert_xml_import
obj.parse(doc.getroot())
File "/home/openerp/branch_bzr_7/openobject-server/openerp/tools/convert.py", line 848, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/tools/convert.py", line 815, in _tag_record
id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/home/openerp/branch_bzr_7/openobject-server/openerp/addons/base/ir/ir_model.py", line 945, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/home/openerp/branch_bzr_7/openobject-addons/product/product.py", line 566, in create
obj_id = super(product_product, self).create(cr, uid, vals, context=context)
File "/home/openerp/branch_bzr_7/openobject-addons/mail/mail_thread.py", line 228, in create
thread_id = super(mail_thread, self).create(cr, uid, vals, context=context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 4271, in create
vals = self._add_missing_default_values(cr, user, vals, context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 2492, in _add_missing_default_values
defaults = self.default_get(cr, uid, missing_defaults, context)
File "/home/openerp/branch_bzr_7/openobject-server/openerp/osv/orm.py", line 1622, in default_get
for i in range(len(field_value)):
TypeError: object of type 'bool' has no len()
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1073557/+subscriptions
References