Skip to content

Instantly share code, notes, and snippets.

@nhomar
Created July 21, 2014 05:38
Show Gist options
  • Save nhomar/c9bc96c1e245d827a6dc to your computer and use it in GitHub Desktop.
Save nhomar/c9bc96c1e245d827a6dc to your computer and use it in GitHub Desktop.
traceback yml asserting incorrectly an onchange.
2014-07-21 05:36:23,107 64273 ERROR account70 openerp.tools.yaml_import: The returning field 'account_analytic_id' from your on_change call 'product_id_change' does not exist either on the object 'account.invoice.line', either in the view 'account.invoice.line.form' used for the creation
Traceback (most recent call last):
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 875, in _process_node
self.process_record(node)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 325, in process_record
record_dict = self._create_record(model, fields, view_info, default=default)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 415, in _create_record
field_value = self._eval_field(model, field_name, fields[field_name], one2many_form_view or view_info, parent=record_dict, default=default)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 515, in _eval_field
value = [(0, 0, self._create_record(other_model, fields, view_info, parent, default=default)) for fields in expression]
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 452, in _create_record
assert key in fg, "The returning field '%s' from your on_change call '%s' does not exist either on the object '%s', either in the view '%s' used for the creation" % (key, match.group(1), model._name, view_info['name'])
AssertionError: The returning field 'account_analytic_id' from your on_change call 'product_id_change' does not exist either on the object 'account.invoice.line', either in the view 'account.invoice.line.form' used for the creation
2014-07-21 05:36:23,108 64273 ERROR account70 openerp: Failed to initialize database `account70`.
Traceback (most recent call last):
File "/Users/nhomar/Trabajo/odoo-v7/openerp/cli/server.py", line 97, in preload_registry
db, registry = openerp.pooler.get_db_and_pool(dbname,update_module=update_module)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/modules/registry.py", line 203, in get
update_module)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/modules/registry.py", line 233, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/modules/loading.py", line 354, in load_modules
loaded_modules, update_module)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/modules/loading.py", line 256, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/modules/loading.py", line 192, in load_module_graph
load_demo(module_name, idref, mode)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/modules/loading.py", line 77, in <lambda>
load_demo = lambda *args: _load_data(cr, *args, kind='demo')
File "/Users/nhomar/Trabajo/odoo-v7/openerp/modules/loading.py", line 122, in _load_data
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 928, in yaml_import
yaml_interpreter.process(yaml_string)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 864, in process
self._process_node(node)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 875, in _process_node
self.process_record(node)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 325, in process_record
record_dict = self._create_record(model, fields, view_info, default=default)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 415, in _create_record
field_value = self._eval_field(model, field_name, fields[field_name], one2many_form_view or view_info, parent=record_dict, default=default)
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 515, in _eval_field
value = [(0, 0, self._create_record(other_model, fields, view_info, parent, default=default)) for fields in expression]
File "/Users/nhomar/Trabajo/odoo-v7/openerp/tools/yaml_import.py", line 452, in _create_record
assert key in fg, "The returning field '%s' from your on_change call '%s' does not exist either on the object '%s', either in the view '%s' used for the creation" % (key, match.group(1), model._name, view_info['name'])
AssertionError: The returning field 'account_analytic_id' from your on_change call 'product_id_change' does not exist either on the object 'account.invoice.line', either in the view 'account.invoice.line.form' used for the creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment