c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23684
[Bug 779813] Re: account.bank.statement KeyError analytics_id
** Description changed:
OpenERP 6.0.2 (all-in-one installation on Windows x64 over a previous 6.0.1).
- With the web interface, going to "account.bank.statement" screen (I am using Open Erp in French so I go to menu "Banques et Liquidités" then "Ecritures bancaires").
- Trying to edit an entry (or creating a new one I got an error message "exceptions.KeyError").
+ With the web interface, going to "account.bank.statement" screen (I am using Open Erp in French so I go to menu "Banques et Liquidités" then "Ecritures bancaires"). I got the same errorr twhen gooing to "Pieces Comptables > Ecritures comptables".
+
+ Trying to edit an entry (or creating a new one I got an error message
+ "exceptions.KeyError").
Account modules installed are the following;
account
account_accountant
account_analytic_analysis
account_analytic_default
account_chart
account_invoice_layout
account_voucher
On the server, I found the following message:
[09/May/2011:11:20:50] HTTP <type 'exceptions.KeyError'>
Python 2.5.2: C:\Program Files (x86)\OpenERP 6.0\Web\openerp-web.exe
Mon May 09 11:20:50 2011
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
- C:\Users\Administrator\Desktop\cherrypy\_cprequest.pyo in
+ C:\Users\Administrator\Desktop\cherrypy\_cprequest.pyo in
respond(self=<cherrypy._cprequest.Request object at 0x04D65D50>,
path_info='/openerp/form/edit')
-
- C:\Users\Administrator\Desktop\cherrypy\_cpdispatch.pyo in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x04CBB7F0>)
-
-
- C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in func_wrapper(*args=(<openobject.controllers._root.Root object at 0x0247CD30>, 'openerp', 'form', 'edit'), **kw={'_': '1304932850125', 'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model': 'account.bank.statement', 'notebook_tab': '0', ...})
-
-
- C:\Users\Administrator\Desktop\openobject\controllers\_root.pyo in default(self=<openobject.controllers._root.Root object at 0x0247CD30>, *args=('openerp', 'form', 'edit'), **kw={'_': '1304932850125', 'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model': 'account.bank.statement', 'notebook_tab': '0', ...})
-
-
- C:\Users\Administrator\Desktop\cherrypy\_cpdispatch.pyo in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x04D65750>)
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=(), **kw={'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model': 'account.bank.statement', 'notebook_tab': '0', 'offset': '0', ...})
- 110 # User is logged in; allow access
- 111 clear_login_fields(kw)
- 112 return fn(*args, **kw)
- 113 else:
- 114 action = kw.get('login_action', '')
-
-
- C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in func_wrapper(*args=(<openerp.controllers.form.Form object at 0x04884210>,), **kw={'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model': 'account.bank.statement', 'notebook_tab': '0', 'offset': '0', ...})
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in edit(self=<openerp.controllers.form.Form object at 0x04884210>, model='account.bank.statement', id='False', ids='[3, 1]', view_ids='[334, 336, False]', view_mode="[u'tree', u'form', u'graph']", view_type='tree', source=None, domain="[('journal_id.type', '=', 'bank')]", context="{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", offset='0', limit='20', count='2', search_domain="[('journal_id.type', '=', 'bank')]", search_data=None, filter_domain='[]', o2m_edit=False, **kw={'notebook_tab': '0'})
- 326 params[params.source] = current
- 327
- 328 return self.create(params)
- 329
- 330 @expose()
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=({'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []},), **kw={})
- 110 # User is logged in; allow access
- 111 clear_login_fields(kw)
- 112 return fn(*args, **kw)
- 113 else:
- 114 action = kw.get('login_action', '')
-
-
- C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in func_wrapper(*args=(<openerp.controllers.form.Form object at 0x04884210>, {'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}), **kw={})
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create(self=<openerp.controllers.form.Form object at 0x04884210>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, tg_errors=None)
- 193 if params.view_type == 'tree':
- 194 params.editable = True
- 195 form = self.create_form(params, tg_errors)
- 196
- 197 if not tg_errors:
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create_form(self=<openerp.controllers.form.Form object at 0x04884210>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, tg_errors=None)
- 184 params.view_type = params.view_type or params.view_mode[0]
- 185
- 186 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
- 187
- 188 @expose(template="/openerp/controllers/templates/form.mako")
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py in __init__(self=ViewForm, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
- 88
- 89 self.screen = Screen(prefix='', hastoolbar=True, hassubmenu=True, editable=editable, readonly=readonly,
- 90 selectable=params.selectable or 2)
- 91
- 92 if self.screen.widget and self.screen.view_type in ['form', 'tree']:
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, prefix='', name='', views_preloaded={}, hastoolbar=True, hassubmenu=True, editable=True, readonly=False, selectable=2, nolinks=1, **kw={})
- 105 self.kalendar = params.kalendar
- 106 if self.view_mode:
- 107 self.add_view_id(self.view_id, self.view_type)
- 108
- 109 def add_view_id(self, view_id, view_type):
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=336, view_type='form')
- 121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
- 122
- 123 self.add_view(view, view_type)
- 124
- 125 def add_view(self, view, view_type='form'):
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<form string="Relev\xe9 bancaire">\n ... </group>\n </form>', 'field_parent': False, 'fields': {'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, 'model': u'account.bank.statement', 'name': u'account.bank.statement.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 336}, view_type='form')
- 129
- 130 from _views import get_view_widget
- 131 self.widget = get_view_widget(view_type, self)
- 132
- 133 self.string = (self.widget or '') and self.widget.string
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in get_view_widget(kind='form', screen=Screen)
- 135 raise Exception("view '%s' not supported." % kind)
- 136
- 137 return view(screen)
- 138
- 139 def get_registered_views():
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.FormView object at 0x04020D50>, screen=Screen)
- 64 editable=screen.editable,
- 65 readonly=screen.readonly,
- 66 nodefault=screen.nodefault, nolinks=screen.link)
- 67
- 68 if not screen.is_wizard and screen.ids is None:
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in __init__(self=Form, prefix='', model='account.bank.statement', view={'arch': u'<form string="Relev\xe9 bancaire">\n ... </group>\n </form>', 'field_parent': False, 'fields': {'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, 'model': u'account.bank.statement', 'name': u'account.bank.statement.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 336}, ids=[], domain=[('journal_id.type', '=', 'bank')], context={'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, 'search_view': 335, ...}, editable=True, readonly=False, nodefault=False, nolinks=1)
- 803 self.view_fields = []
- 804 self.nb_couter = 0
- 805 self.frame = self.parse(prefix, dom, fields, values)[0]
- 806 self.values = [values]
- 807 self.concurrency_info = ConcurrencyInfo(self.model, [self.id])
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<xml.dom.minidom.Document instance at 0x0401A0F8>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
- 863
- 864 elif node.localName == 'form':
- 865 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
- 866 views.append(Frame(children=n, **attrs))
- 867
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: form at 0x401ad00>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
- 867
- 868 elif node.localName == 'notebook':
- 869 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
- 870 nb = Notebook(children=n, **attrs)
- 871 self.nb_couter += 1
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: notebook at 0x3a9c4e0>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
- 874
- 875 elif node.localName == 'page':
- 876 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
- 877 views.append(Page(children=n, **attrs))
- 878
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: page at 0x4b5daa8>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
- 906 self.view_fields.append(name)
- 907
- 908 field = self._make_field_widget(fields[name], values.get(name))
- 909 views.append(field)
- 910
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in _make_field_widget(self=Form, attrs={'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, value=None)
- 972 attrs['readonly'] = True
- 973
- 974 field = get_widget(kind)(**attrs)
- 975
- 976 if isinstance(field, TinyInputWidget):
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_o2m.py in __init__(self=O2M, **attrs={'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...})
- 216 self.screen = Screen(current, prefix=self.name, views_preloaded=view,
- 217 editable=self.editable, readonly=self.readonly,
- 218 selectable=0, nolinks=self.link, _o2m=1)
- 219
- 220 self.id = id
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}}, prefix=u'move_line_ids', name='', views_preloaded={}, hastoolbar=False, hassubmenu=False, editable=True, readonly=False, selectable=0, nolinks=1, **kw={'_o2m': 1})
- 105 self.kalendar = params.kalendar
- 106 if self.view_mode:
- 107 self.add_view_id(self.view_id, self.view_type)
- 108
- 109 def add_view_id(self, view_id, view_type):
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=False, view_type='tree')
- 121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
- 122
- 123 self.add_view(view, view_type)
- 124
- 125 def add_view(self, view, view_type='form'):
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<?xml version="1.0"?>\n<tree string="\xc9critu...e_id\') not in [6, 7, 8, 5, 3, 2, 4]"/>\n</tree>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, 'model': u'account.move.line', 'name': u'account.move.line.tax.tree', 'type': u'tree', 'view_id': 374}, view_type='tree')
- 129
- 130 from _views import get_view_widget
- 131 self.widget = get_view_widget(view_type, self)
- 132
- 133 self.string = (self.widget or '') and self.widget.string
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in get_view_widget(kind='tree', screen=Screen)
- 135 raise Exception("view '%s' not supported." % kind)
- 136
- 137 return view(screen)
- 138
- 139 def get_registered_views():
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.ListView object at 0x044BDD10>, screen=Screen)
- 116 count=screen.count, nolinks=screen.link,
- 117 m2m=screen.m2m, o2m=screen.o2m,
- 118 default_data=screen.default_value)
- 119
- 120 screen.ids = widget.ids
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py in __init__(self=List, name=u'move_line_ids/', model=u'account.move.line', view={'arch': u'<?xml version="1.0"?>\n<tree string="\xc9critu...e_id\') not in [6, 7, 8, 5, 3, 2, 4]"/>\n</tree>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, 'model': u'account.move.line', 'name': u'account.move.line.tax.tree', 'type': u'tree', 'view_id': 374}, ids=[], domain=[], context={}, **kw={'count': 0, 'default_data': [], 'editable': True, 'limit': 50, 'm2m': 0, 'nolinks': 1, 'o2m': 1, 'offset': 0, 'selectable': 0, 'view_mode': ['tree', 'form']})
- 201
- 202 self.values = copy.deepcopy(data)
- 203 self.headers, self.hiddens, self.data, self.field_total, self.buttons = self.parse(root, fields, data)
- 204
- 205 for k, v in self.field_total.items():
-
-
- C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py in parse(self=List, root=<DOM Element: tree at 0x437d558>, fields={'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, data=[])
- 377
- 378 try:
- 379 fields[name].update(attrs)
- 380 except:
- 381 print "-"*30,"\n malformed tag for:", attrs
+ C:\Users\Administrator\Desktop\cherrypy\_cpdispatch.pyo in
+ __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at
+ 0x04CBB7F0>)
+
+ C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
+ func_wrapper(*args=(<openobject.controllers._root.Root object at
+ 0x0247CD30>, 'openerp', 'form', 'edit'), **kw={'_': '1304932850125',
+ 'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t':
+ 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain':
+ "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id':
+ 'False', 'ids': '[3, 1]', 'limit': '20', 'model':
+ 'account.bank.statement', 'notebook_tab': '0', ...})
+
+ C:\Users\Administrator\Desktop\openobject\controllers\_root.pyo in
+ default(self=<openobject.controllers._root.Root object at 0x0247CD30>,
+ *args=('openerp', 'form', 'edit'), **kw={'_': '1304932850125',
+ 'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t':
+ 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain':
+ "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id':
+ 'False', 'ids': '[3, 1]', 'limit': '20', 'model':
+ 'account.bank.statement', 'notebook_tab': '0', ...})
+
+ C:\Users\Administrator\Desktop\cherrypy\_cpdispatch.pyo in
+ __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at
+ 0x04D65750>)
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=(), **kw={'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model': 'account.bank.statement', 'notebook_tab': '0', 'offset': '0', ...})
+ 110 # User is logged in; allow access
+ 111 clear_login_fields(kw)
+ 112 return fn(*args, **kw)
+ 113 else:
+ 114 action = kw.get('login_action', '')
+
+ C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
+ func_wrapper(*args=(<openerp.controllers.form.Form object at
+ 0x04884210>,), **kw={'context': "{'lang': u'fr_FR', 'project_id': False,
+ 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count':
+ '2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain':
+ '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model':
+ 'account.bank.statement', 'notebook_tab': '0', 'offset': '0', ...})
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in edit(self=<openerp.controllers.form.Form object at 0x04884210>, model='account.bank.statement', id='False', ids='[3, 1]', view_ids='[334, 336, False]', view_mode="[u'tree', u'form', u'graph']", view_type='tree', source=None, domain="[('journal_id.type', '=', 'bank')]", context="{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", offset='0', limit='20', count='2', search_domain="[('journal_id.type', '=', 'bank')]", search_data=None, filter_domain='[]', o2m_edit=False, **kw={'notebook_tab': '0'})
+ 326 params[params.source] = current
+ 327
+ 328 return self.create(params)
+ 329
+ 330 @expose()
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=({'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []},), **kw={})
+ 110 # User is logged in; allow access
+ 111 clear_login_fields(kw)
+ 112 return fn(*args, **kw)
+ 113 else:
+ 114 action = kw.get('login_action', '')
+
+ C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
+ func_wrapper(*args=(<openerp.controllers.form.Form object at
+ 0x04884210>, {'_terp_view_type': 'form', '_terp_offset': 0, '...s':
+ [334, 336, False], '_terp_filter_domain': []}), **kw={})
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create(self=<openerp.controllers.form.Form object at 0x04884210>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, tg_errors=None)
+ 193 if params.view_type == 'tree':
+ 194 params.editable = True
+ 195 form = self.create_form(params, tg_errors)
+ 196
+ 197 if not tg_errors:
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create_form(self=<openerp.controllers.form.Form object at 0x04884210>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, tg_errors=None)
+ 184 params.view_type = params.view_type or params.view_mode[0]
+ 185
+ 186 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
+ 187
+ 188 @expose(template="/openerp/controllers/templates/form.mako")
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py in __init__(self=ViewForm, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
+ 88
+ 89 self.screen = Screen(prefix='', hastoolbar=True, hassubmenu=True, editable=editable, readonly=readonly,
+ 90 selectable=params.selectable or 2)
+ 91
+ 92 if self.screen.widget and self.screen.view_type in ['form', 'tree']:
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, prefix='', name='', views_preloaded={}, hastoolbar=True, hassubmenu=True, editable=True, readonly=False, selectable=2, nolinks=1, **kw={})
+ 105 self.kalendar = params.kalendar
+ 106 if self.view_mode:
+ 107 self.add_view_id(self.view_id, self.view_type)
+ 108
+ 109 def add_view_id(self, view_id, view_type):
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=336, view_type='form')
+ 121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
+ 122
+ 123 self.add_view(view, view_type)
+ 124
+ 125 def add_view(self, view, view_type='form'):
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<form string="Relev\xe9 bancaire">\n ... </group>\n </form>', 'field_parent': False, 'fields': {'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, 'model': u'account.bank.statement', 'name': u'account.bank.statement.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 336}, view_type='form')
+ 129
+ 130 from _views import get_view_widget
+ 131 self.widget = get_view_widget(view_type, self)
+ 132
+ 133 self.string = (self.widget or '') and self.widget.string
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in get_view_widget(kind='form', screen=Screen)
+ 135 raise Exception("view '%s' not supported." % kind)
+ 136
+ 137 return view(screen)
+ 138
+ 139 def get_registered_views():
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.FormView object at 0x04020D50>, screen=Screen)
+ 64 editable=screen.editable,
+ 65 readonly=screen.readonly,
+ 66 nodefault=screen.nodefault, nolinks=screen.link)
+ 67
+ 68 if not screen.is_wizard and screen.ids is None:
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in __init__(self=Form, prefix='', model='account.bank.statement', view={'arch': u'<form string="Relev\xe9 bancaire">\n ... </group>\n </form>', 'field_parent': False, 'fields': {'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, 'model': u'account.bank.statement', 'name': u'account.bank.statement.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 336}, ids=[], domain=[('journal_id.type', '=', 'bank')], context={'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, 'search_view': 335, ...}, editable=True, readonly=False, nodefault=False, nolinks=1)
+ 803 self.view_fields = []
+ 804 self.nb_couter = 0
+ 805 self.frame = self.parse(prefix, dom, fields, values)[0]
+ 806 self.values = [values]
+ 807 self.concurrency_info = ConcurrencyInfo(self.model, [self.id])
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<xml.dom.minidom.Document instance at 0x0401A0F8>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
+ 863
+ 864 elif node.localName == 'form':
+ 865 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
+ 866 views.append(Frame(children=n, **attrs))
+ 867
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: form at 0x401ad00>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
+ 867
+ 868 elif node.localName == 'notebook':
+ 869 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
+ 870 nb = Notebook(children=n, **attrs)
+ 871 self.nb_couter += 1
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: notebook at 0x3a9c4e0>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
+ 874
+ 875 elif node.localName == 'page':
+ 876 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
+ 877 views.append(Page(children=n, **attrs))
+ 878
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: page at 0x4b5daa8>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
+ 906 self.view_fields.append(name)
+ 907
+ 908 field = self._make_field_widget(fields[name], values.get(name))
+ 909 views.append(field)
+ 910
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in _make_field_widget(self=Form, attrs={'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, value=None)
+ 972 attrs['readonly'] = True
+ 973
+ 974 field = get_widget(kind)(**attrs)
+ 975
+ 976 if isinstance(field, TinyInputWidget):
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_o2m.py in __init__(self=O2M, **attrs={'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...})
+ 216 self.screen = Screen(current, prefix=self.name, views_preloaded=view,
+ 217 editable=self.editable, readonly=self.readonly,
+ 218 selectable=0, nolinks=self.link, _o2m=1)
+ 219
+ 220 self.id = id
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}}, prefix=u'move_line_ids', name='', views_preloaded={}, hastoolbar=False, hassubmenu=False, editable=True, readonly=False, selectable=0, nolinks=1, **kw={'_o2m': 1})
+ 105 self.kalendar = params.kalendar
+ 106 if self.view_mode:
+ 107 self.add_view_id(self.view_id, self.view_type)
+ 108
+ 109 def add_view_id(self, view_id, view_type):
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=False, view_type='tree')
+ 121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
+ 122
+ 123 self.add_view(view, view_type)
+ 124
+ 125 def add_view(self, view, view_type='form'):
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<?xml version="1.0"?>\n<tree string="\xc9critu...e_id\') not in [6, 7, 8, 5, 3, 2, 4]"/>\n</tree>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, 'model': u'account.move.line', 'name': u'account.move.line.tax.tree', 'type': u'tree', 'view_id': 374}, view_type='tree')
+ 129
+ 130 from _views import get_view_widget
+ 131 self.widget = get_view_widget(view_type, self)
+ 132
+ 133 self.string = (self.widget or '') and self.widget.string
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in get_view_widget(kind='tree', screen=Screen)
+ 135 raise Exception("view '%s' not supported." % kind)
+ 136
+ 137 return view(screen)
+ 138
+ 139 def get_registered_views():
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.ListView object at 0x044BDD10>, screen=Screen)
+ 116 count=screen.count, nolinks=screen.link,
+ 117 m2m=screen.m2m, o2m=screen.o2m,
+ 118 default_data=screen.default_value)
+ 119
+ 120 screen.ids = widget.ids
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py in __init__(self=List, name=u'move_line_ids/', model=u'account.move.line', view={'arch': u'<?xml version="1.0"?>\n<tree string="\xc9critu...e_id\') not in [6, 7, 8, 5, 3, 2, 4]"/>\n</tree>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, 'model': u'account.move.line', 'name': u'account.move.line.tax.tree', 'type': u'tree', 'view_id': 374}, ids=[], domain=[], context={}, **kw={'count': 0, 'default_data': [], 'editable': True, 'limit': 50, 'm2m': 0, 'nolinks': 1, 'o2m': 1, 'offset': 0, 'selectable': 0, 'view_mode': ['tree', 'form']})
+ 201
+ 202 self.values = copy.deepcopy(data)
+ 203 self.headers, self.hiddens, self.data, self.field_total, self.buttons = self.parse(root, fields, data)
+ 204
+ 205 for k, v in self.field_total.items():
+
+ C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py in parse(self=List, root=<DOM Element: tree at 0x437d558>, fields={'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, data=[])
+ 377
+ 378 try:
+ 379 fields[name].update(attrs)
+ 380 except:
+ 381 print "-"*30,"\n malformed tag for:", attrs
<type 'exceptions.KeyError'>: u'analytics_id'
- __class__ = <type 'exceptions.KeyError'>
- __delattr__ = <method-wrapper '__delattr__' of exceptions.KeyError object at 0x0556FA58>
- __dict__ = {}
- __doc__ = 'Mapping key not found.'
- __getattribute__ = <method-wrapper '__getattribute__' of exceptions.KeyError object at 0x0556FA58>
- __getitem__ = <method-wrapper '__getitem__' of exceptions.KeyError object at 0x0556FA58>
- __getslice__ = <method-wrapper '__getslice__' of exceptions.KeyError object at 0x0556FA58>
- __hash__ = <method-wrapper '__hash__' of exceptions.KeyError object at 0x0556FA58>
- __init__ = <method-wrapper '__init__' of exceptions.KeyError object at 0x0556FA58>
- __new__ = <built-in method __new__ of type object at 0x1E1CDFB8>
- __reduce__ = <built-in method __reduce__ of exceptions.KeyError object at 0x0556FA58>
- __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.KeyError object at 0x0556FA58>
- __repr__ = <method-wrapper '__repr__' of exceptions.KeyError object at 0x0556FA58>
- __setattr__ = <method-wrapper '__setattr__' of exceptions.KeyError object at 0x0556FA58>
- __setstate__ = <built-in method __setstate__ of exceptions.KeyError object at 0x0556FA58>
- __str__ = <method-wrapper '__str__' of exceptions.KeyError object at 0x0556FA58>
- args = (u'analytics_id',)
- message = u'analytics_id'
+ __class__ = <type 'exceptions.KeyError'>
+ __delattr__ = <method-wrapper '__delattr__' of exceptions.KeyError object at 0x0556FA58>
+ __dict__ = {}
+ __doc__ = 'Mapping key not found.'
+ __getattribute__ = <method-wrapper '__getattribute__' of exceptions.KeyError object at 0x0556FA58>
+ __getitem__ = <method-wrapper '__getitem__' of exceptions.KeyError object at 0x0556FA58>
+ __getslice__ = <method-wrapper '__getslice__' of exceptions.KeyError object at 0x0556FA58>
+ __hash__ = <method-wrapper '__hash__' of exceptions.KeyError object at 0x0556FA58>
+ __init__ = <method-wrapper '__init__' of exceptions.KeyError object at 0x0556FA58>
+ __new__ = <built-in method __new__ of type object at 0x1E1CDFB8>
+ __reduce__ = <built-in method __reduce__ of exceptions.KeyError object at 0x0556FA58>
+ __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.KeyError object at 0x0556FA58>
+ __repr__ = <method-wrapper '__repr__' of exceptions.KeyError object at 0x0556FA58>
+ __setattr__ = <method-wrapper '__setattr__' of exceptions.KeyError object at 0x0556FA58>
+ __setstate__ = <built-in method __setstate__ of exceptions.KeyError object at 0x0556FA58>
+ __str__ = <method-wrapper '__str__' of exceptions.KeyError object at 0x0556FA58>
+ args = (u'analytics_id',)
+ message = u'analytics_id'
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
- File "cherrypy\_cprequest.pyo", line 606, in respond
- File "cherrypy\_cpdispatch.pyo", line 25, in __call__
- File "openobject\tools\_expose.pyo", line 182, in func_wrapper
- File "openobject\controllers\_root.pyo", line 87, in default
- File "cherrypy\_cpdispatch.pyo", line 25, in __call__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py", line 112, in wrapper
- File "openobject\tools\_expose.pyo", line 182, in func_wrapper
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 328, in edit
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py", line 112, in wrapper
- File "openobject\tools\_expose.pyo", line 182, in func_wrapper
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 195, in create
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 186, in create_form
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py", line 90, in __init__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 107, in __init__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 123, in add_view_id
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 131, in add_view
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 137, in get_view_widget
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 66, in __call__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 805, in __init__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 865, in parse
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 869, in parse
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 876, in parse
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 908, in parse
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 974, in _make_field_widget
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_o2m.py", line 218, in __init__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 107, in __init__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 123, in add_view_id
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 131, in add_view
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 137, in get_view_widget
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 118, in __call__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py", line 203, in __init__
- File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py", line 379, in parse
+ File "cherrypy\_cprequest.pyo", line 606, in respond
+ File "cherrypy\_cpdispatch.pyo", line 25, in __call__
+ File "openobject\tools\_expose.pyo", line 182, in func_wrapper
+ File "openobject\controllers\_root.pyo", line 87, in default
+ File "cherrypy\_cpdispatch.pyo", line 25, in __call__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py", line 112, in wrapper
+ File "openobject\tools\_expose.pyo", line 182, in func_wrapper
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 328, in edit
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py", line 112, in wrapper
+ File "openobject\tools\_expose.pyo", line 182, in func_wrapper
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 195, in create
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 186, in create_form
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py", line 90, in __init__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 107, in __init__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 123, in add_view_id
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 131, in add_view
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 137, in get_view_widget
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 66, in __call__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 805, in __init__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 865, in parse
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 869, in parse
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 876, in parse
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 908, in parse
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 974, in _make_field_widget
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_o2m.py", line 218, in __init__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 107, in __init__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 123, in add_view_id
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 131, in add_view
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 137, in get_view_widget
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 118, in __call__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py", line 203, in __init__
+ File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py", line 379, in parse
KeyError: u'analytics_id'
** Description changed:
OpenERP 6.0.2 (all-in-one installation on Windows x64 over a previous 6.0.1).
- With the web interface, going to "account.bank.statement" screen (I am using Open Erp in French so I go to menu "Banques et Liquidités" then "Ecritures bancaires"). I got the same errorr twhen gooing to "Pieces Comptables > Ecritures comptables".
+ With the web interface, going to "account.bank.statement" screen (I am using Open Erp in French so I go to menu "Banques et Liquidités" then "Ecritures bancaires"). I got the same errorr twhen going to "Pieces Comptables (account.move)" then "Ecritures comptables".
Trying to edit an entry (or creating a new one I got an error message
"exceptions.KeyError").
Account modules installed are the following;
account
account_accountant
account_analytic_analysis
account_analytic_default
account_chart
account_invoice_layout
account_voucher
On the server, I found the following message:
[09/May/2011:11:20:50] HTTP <type 'exceptions.KeyError'>
Python 2.5.2: C:\Program Files (x86)\OpenERP 6.0\Web\openerp-web.exe
Mon May 09 11:20:50 2011
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
C:\Users\Administrator\Desktop\cherrypy\_cprequest.pyo in
respond(self=<cherrypy._cprequest.Request object at 0x04D65D50>,
path_info='/openerp/form/edit')
C:\Users\Administrator\Desktop\cherrypy\_cpdispatch.pyo in
__call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at
0x04CBB7F0>)
C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
func_wrapper(*args=(<openobject.controllers._root.Root object at
0x0247CD30>, 'openerp', 'form', 'edit'), **kw={'_': '1304932850125',
'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t':
'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain':
"[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id':
'False', 'ids': '[3, 1]', 'limit': '20', 'model':
'account.bank.statement', 'notebook_tab': '0', ...})
C:\Users\Administrator\Desktop\openobject\controllers\_root.pyo in
default(self=<openobject.controllers._root.Root object at 0x0247CD30>,
*args=('openerp', 'form', 'edit'), **kw={'_': '1304932850125',
'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t':
'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain':
"[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id':
'False', 'ids': '[3, 1]', 'limit': '20', 'model':
'account.bank.statement', 'notebook_tab': '0', ...})
C:\Users\Administrator\Desktop\cherrypy\_cpdispatch.pyo in
__call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at
0x04D65750>)
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=(), **kw={'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model': 'account.bank.statement', 'notebook_tab': '0', 'offset': '0', ...})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
func_wrapper(*args=(<openerp.controllers.form.Form object at
0x04884210>,), **kw={'context': "{'lang': u'fr_FR', 'project_id': False,
'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count':
'2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain':
'[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model':
'account.bank.statement', 'notebook_tab': '0', 'offset': '0', ...})
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in edit(self=<openerp.controllers.form.Form object at 0x04884210>, model='account.bank.statement', id='False', ids='[3, 1]', view_ids='[334, 336, False]', view_mode="[u'tree', u'form', u'graph']", view_type='tree', source=None, domain="[('journal_id.type', '=', 'bank')]", context="{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", offset='0', limit='20', count='2', search_domain="[('journal_id.type', '=', 'bank')]", search_data=None, filter_domain='[]', o2m_edit=False, **kw={'notebook_tab': '0'})
326 params[params.source] = current
327
328 return self.create(params)
329
330 @expose()
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=({'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []},), **kw={})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
func_wrapper(*args=(<openerp.controllers.form.Form object at
0x04884210>, {'_terp_view_type': 'form', '_terp_offset': 0, '...s':
[334, 336, False], '_terp_filter_domain': []}), **kw={})
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create(self=<openerp.controllers.form.Form object at 0x04884210>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, tg_errors=None)
193 if params.view_type == 'tree':
194 params.editable = True
195 form = self.create_form(params, tg_errors)
196
197 if not tg_errors:
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create_form(self=<openerp.controllers.form.Form object at 0x04884210>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, tg_errors=None)
184 params.view_type = params.view_type or params.view_mode[0]
185
186 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
187
188 @expose(template="/openerp/controllers/templates/form.mako")
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py in __init__(self=ViewForm, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
88
89 self.screen = Screen(prefix='', hastoolbar=True, hassubmenu=True, editable=editable, readonly=readonly,
90 selectable=params.selectable or 2)
91
92 if self.screen.widget and self.screen.view_type in ['form', 'tree']:
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, prefix='', name='', views_preloaded={}, hastoolbar=True, hassubmenu=True, editable=True, readonly=False, selectable=2, nolinks=1, **kw={})
105 self.kalendar = params.kalendar
106 if self.view_mode:
107 self.add_view_id(self.view_id, self.view_type)
108
109 def add_view_id(self, view_id, view_type):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=336, view_type='form')
121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
122
123 self.add_view(view, view_type)
124
125 def add_view(self, view, view_type='form'):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<form string="Relev\xe9 bancaire">\n ... </group>\n </form>', 'field_parent': False, 'fields': {'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, 'model': u'account.bank.statement', 'name': u'account.bank.statement.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 336}, view_type='form')
129
130 from _views import get_view_widget
131 self.widget = get_view_widget(view_type, self)
132
133 self.string = (self.widget or '') and self.widget.string
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in get_view_widget(kind='form', screen=Screen)
135 raise Exception("view '%s' not supported." % kind)
136
137 return view(screen)
138
139 def get_registered_views():
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.FormView object at 0x04020D50>, screen=Screen)
64 editable=screen.editable,
65 readonly=screen.readonly,
66 nodefault=screen.nodefault, nolinks=screen.link)
67
68 if not screen.is_wizard and screen.ids is None:
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in __init__(self=Form, prefix='', model='account.bank.statement', view={'arch': u'<form string="Relev\xe9 bancaire">\n ... </group>\n </form>', 'field_parent': False, 'fields': {'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, 'model': u'account.bank.statement', 'name': u'account.bank.statement.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 336}, ids=[], domain=[('journal_id.type', '=', 'bank')], context={'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, 'search_view': 335, ...}, editable=True, readonly=False, nodefault=False, nolinks=1)
803 self.view_fields = []
804 self.nb_couter = 0
805 self.frame = self.parse(prefix, dom, fields, values)[0]
806 self.values = [values]
807 self.concurrency_info = ConcurrencyInfo(self.model, [self.id])
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<xml.dom.minidom.Document instance at 0x0401A0F8>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
863
864 elif node.localName == 'form':
865 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
866 views.append(Frame(children=n, **attrs))
867
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: form at 0x401ad00>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
867
868 elif node.localName == 'notebook':
869 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
870 nb = Notebook(children=n, **attrs)
871 self.nb_couter += 1
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: notebook at 0x3a9c4e0>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
874
875 elif node.localName == 'page':
876 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
877 views.append(Page(children=n, **attrs))
878
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: page at 0x4b5daa8>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
906 self.view_fields.append(name)
907
908 field = self._make_field_widget(fields[name], values.get(name))
909 views.append(field)
910
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in _make_field_widget(self=Form, attrs={'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, value=None)
972 attrs['readonly'] = True
973
974 field = get_widget(kind)(**attrs)
975
976 if isinstance(field, TinyInputWidget):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_o2m.py in __init__(self=O2M, **attrs={'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...})
216 self.screen = Screen(current, prefix=self.name, views_preloaded=view,
217 editable=self.editable, readonly=self.readonly,
218 selectable=0, nolinks=self.link, _o2m=1)
219
220 self.id = id
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}}, prefix=u'move_line_ids', name='', views_preloaded={}, hastoolbar=False, hassubmenu=False, editable=True, readonly=False, selectable=0, nolinks=1, **kw={'_o2m': 1})
105 self.kalendar = params.kalendar
106 if self.view_mode:
107 self.add_view_id(self.view_id, self.view_type)
108
109 def add_view_id(self, view_id, view_type):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=False, view_type='tree')
121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
122
123 self.add_view(view, view_type)
124
125 def add_view(self, view, view_type='form'):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<?xml version="1.0"?>\n<tree string="\xc9critu...e_id\') not in [6, 7, 8, 5, 3, 2, 4]"/>\n</tree>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, 'model': u'account.move.line', 'name': u'account.move.line.tax.tree', 'type': u'tree', 'view_id': 374}, view_type='tree')
129
130 from _views import get_view_widget
131 self.widget = get_view_widget(view_type, self)
132
133 self.string = (self.widget or '') and self.widget.string
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in get_view_widget(kind='tree', screen=Screen)
135 raise Exception("view '%s' not supported." % kind)
136
137 return view(screen)
138
139 def get_registered_views():
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.ListView object at 0x044BDD10>, screen=Screen)
116 count=screen.count, nolinks=screen.link,
117 m2m=screen.m2m, o2m=screen.o2m,
118 default_data=screen.default_value)
119
120 screen.ids = widget.ids
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py in __init__(self=List, name=u'move_line_ids/', model=u'account.move.line', view={'arch': u'<?xml version="1.0"?>\n<tree string="\xc9critu...e_id\') not in [6, 7, 8, 5, 3, 2, 4]"/>\n</tree>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, 'model': u'account.move.line', 'name': u'account.move.line.tax.tree', 'type': u'tree', 'view_id': 374}, ids=[], domain=[], context={}, **kw={'count': 0, 'default_data': [], 'editable': True, 'limit': 50, 'm2m': 0, 'nolinks': 1, 'o2m': 1, 'offset': 0, 'selectable': 0, 'view_mode': ['tree', 'form']})
201
202 self.values = copy.deepcopy(data)
203 self.headers, self.hiddens, self.data, self.field_total, self.buttons = self.parse(root, fields, data)
204
205 for k, v in self.field_total.items():
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py in parse(self=List, root=<DOM Element: tree at 0x437d558>, fields={'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, data=[])
377
378 try:
379 fields[name].update(attrs)
380 except:
381 print "-"*30,"\n malformed tag for:", attrs
<type 'exceptions.KeyError'>: u'analytics_id'
__class__ = <type 'exceptions.KeyError'>
__delattr__ = <method-wrapper '__delattr__' of exceptions.KeyError object at 0x0556FA58>
__dict__ = {}
__doc__ = 'Mapping key not found.'
__getattribute__ = <method-wrapper '__getattribute__' of exceptions.KeyError object at 0x0556FA58>
__getitem__ = <method-wrapper '__getitem__' of exceptions.KeyError object at 0x0556FA58>
__getslice__ = <method-wrapper '__getslice__' of exceptions.KeyError object at 0x0556FA58>
__hash__ = <method-wrapper '__hash__' of exceptions.KeyError object at 0x0556FA58>
__init__ = <method-wrapper '__init__' of exceptions.KeyError object at 0x0556FA58>
__new__ = <built-in method __new__ of type object at 0x1E1CDFB8>
__reduce__ = <built-in method __reduce__ of exceptions.KeyError object at 0x0556FA58>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.KeyError object at 0x0556FA58>
__repr__ = <method-wrapper '__repr__' of exceptions.KeyError object at 0x0556FA58>
__setattr__ = <method-wrapper '__setattr__' of exceptions.KeyError object at 0x0556FA58>
__setstate__ = <built-in method __setstate__ of exceptions.KeyError object at 0x0556FA58>
__str__ = <method-wrapper '__str__' of exceptions.KeyError object at 0x0556FA58>
args = (u'analytics_id',)
message = u'analytics_id'
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 606, in respond
File "cherrypy\_cpdispatch.pyo", line 25, in __call__
File "openobject\tools\_expose.pyo", line 182, in func_wrapper
File "openobject\controllers\_root.pyo", line 87, in default
File "cherrypy\_cpdispatch.pyo", line 25, in __call__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py", line 112, in wrapper
File "openobject\tools\_expose.pyo", line 182, in func_wrapper
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 328, in edit
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py", line 112, in wrapper
File "openobject\tools\_expose.pyo", line 182, in func_wrapper
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 195, in create
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 186, in create_form
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py", line 90, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 107, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 123, in add_view_id
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 131, in add_view
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 137, in get_view_widget
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 66, in __call__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 805, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 865, in parse
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 869, in parse
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 876, in parse
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 908, in parse
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 974, in _make_field_widget
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_o2m.py", line 218, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 107, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 123, in add_view_id
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 131, in add_view
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 137, in get_view_widget
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 118, in __call__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py", line 203, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py", line 379, in parse
KeyError: u'analytics_id'
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/779813
Title:
account.bank.statement KeyError analytics_id
Status in OpenERP Server:
New
Bug description:
OpenERP 6.0.2 (all-in-one installation on Windows x64 over a previous 6.0.1).
With the web interface, going to "account.bank.statement" screen (I am using Open Erp in French so I go to menu "Banques et Liquidités" then "Ecritures bancaires"). I got the same errorr twhen going to "Pieces Comptables (account.move)" then "Ecritures comptables".
Trying to edit an entry (or creating a new one I got an error message
"exceptions.KeyError").
Account modules installed are the following;
account
account_accountant
account_analytic_analysis
account_analytic_default
account_chart
account_invoice_layout
account_voucher
On the server, I found the following message:
[09/May/2011:11:20:50] HTTP <type 'exceptions.KeyError'>
Python 2.5.2: C:\Program Files (x86)\OpenERP 6.0\Web\openerp-web.exe
Mon May 09 11:20:50 2011
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
C:\Users\Administrator\Desktop\cherrypy\_cprequest.pyo in
respond(self=<cherrypy._cprequest.Request object at 0x04D65D50>,
path_info='/openerp/form/edit')
C:\Users\Administrator\Desktop\cherrypy\_cpdispatch.pyo in
__call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at
0x04CBB7F0>)
C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
func_wrapper(*args=(<openobject.controllers._root.Root object at
0x0247CD30>, 'openerp', 'form', 'edit'), **kw={'_': '1304932850125',
'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t':
'web', 'active_ids': [181], 'active_id': 181}", 'count': '2',
'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]',
'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model':
'account.bank.statement', 'notebook_tab': '0', ...})
C:\Users\Administrator\Desktop\openobject\controllers\_root.pyo in
default(self=<openobject.controllers._root.Root object at 0x0247CD30>,
*args=('openerp', 'form', 'edit'), **kw={'_': '1304932850125',
'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t':
'web', 'active_ids': [181], 'active_id': 181}", 'count': '2',
'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]',
'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model':
'account.bank.statement', 'notebook_tab': '0', ...})
C:\Users\Administrator\Desktop\cherrypy\_cpdispatch.pyo in
__call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at
0x04D65750>)
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=(), **kw={'context': "{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", 'count': '2', 'domain': "[('journal_id.type', '=', 'bank')]", 'filter_domain': '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20', 'model': 'account.bank.statement', 'notebook_tab': '0', 'offset': '0', ...})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
func_wrapper(*args=(<openerp.controllers.form.Form object at
0x04884210>,), **kw={'context': "{'lang': u'fr_FR', 'project_id':
False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}",
'count': '2', 'domain': "[('journal_id.type', '=', 'bank')]",
'filter_domain': '[]', 'id': 'False', 'ids': '[3, 1]', 'limit': '20',
'model': 'account.bank.statement', 'notebook_tab': '0', 'offset': '0',
...})
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in edit(self=<openerp.controllers.form.Form object at 0x04884210>, model='account.bank.statement', id='False', ids='[3, 1]', view_ids='[334, 336, False]', view_mode="[u'tree', u'form', u'graph']", view_type='tree', source=None, domain="[('journal_id.type', '=', 'bank')]", context="{'lang': u'fr_FR', 'project_id': False, 'tz': u'...t': 'web', 'active_ids': [181], 'active_id': 181}", offset='0', limit='20', count='2', search_domain="[('journal_id.type', '=', 'bank')]", search_data=None, filter_domain='[]', o2m_edit=False, **kw={'notebook_tab': '0'})
326 params[params.source] = current
327
328 return self.create(params)
329
330 @expose()
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py in wrapper(*args=({'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []},), **kw={})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
C:\Users\Administrator\Desktop\openobject\tools\_expose.pyo in
func_wrapper(*args=(<openerp.controllers.form.Form object at
0x04884210>, {'_terp_view_type': 'form', '_terp_offset': 0, '...s':
[334, 336, False], '_terp_filter_domain': []}), **kw={})
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create(self=<openerp.controllers.form.Form object at 0x04884210>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, tg_errors=None)
193 if params.view_type == 'tree':
194 params.editable = True
195 form = self.create_form(params, tg_errors)
196
197 if not tg_errors:
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py in create_form(self=<openerp.controllers.form.Form object at 0x04884210>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, tg_errors=None)
184 params.view_type = params.view_type or params.view_mode[0]
185
186 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
187
188 @expose(template="/openerp/controllers/templates/form.mako")
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py in __init__(self=ViewForm, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
88
89 self.screen = Screen(prefix='', hastoolbar=True, hassubmenu=True, editable=editable, readonly=readonly,
90 selectable=params.selectable or 2)
91
92 if self.screen.widget and self.screen.view_type in ['form', 'tree']:
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'form', '_terp_offset': 0, '...s': [334, 336, False], '_terp_filter_domain': []}, prefix='', name='', views_preloaded={}, hastoolbar=True, hassubmenu=True, editable=True, readonly=False, selectable=2, nolinks=1, **kw={})
105 self.kalendar = params.kalendar
106 if self.view_mode:
107 self.add_view_id(self.view_id, self.view_type)
108
109 def add_view_id(self, view_id, view_type):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=336, view_type='form')
121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
122
123 self.add_view(view, view_type)
124
125 def add_view(self, view, view_type='form'):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<form string="Relev\xe9 bancaire">\n ... </group>\n </form>', 'field_parent': False, 'fields': {'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, 'model': u'account.bank.statement', 'name': u'account.bank.statement.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 336}, view_type='form')
129
130 from _views import get_view_widget
131 self.widget = get_view_widget(view_type, self)
132
133 self.string = (self.widget or '') and self.widget.string
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in get_view_widget(kind='form', screen=Screen)
135 raise Exception("view '%s' not supported." % kind)
136
137 return view(screen)
138
139 def get_registered_views():
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.FormView object at 0x04020D50>, screen=Screen)
64 editable=screen.editable,
65 readonly=screen.readonly,
66 nodefault=screen.nodefault, nolinks=screen.link)
67
68 if not screen.is_wizard and screen.ids is None:
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in __init__(self=Form, prefix='', model='account.bank.statement', view={'arch': u'<form string="Relev\xe9 bancaire">\n ... </group>\n </form>', 'field_parent': False, 'fields': {'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, 'model': u'account.bank.statement', 'name': u'account.bank.statement.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 336}, ids=[], domain=[('journal_id.type', '=', 'bank')], context={'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, 'search_view': 335, ...}, editable=True, readonly=False, nodefault=False, nolinks=1)
803 self.view_fields = []
804 self.nb_couter = 0
805 self.frame = self.parse(prefix, dom, fields, values)[0]
806 self.values = [values]
807 self.concurrency_info = ConcurrencyInfo(self.model, [self.id])
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<xml.dom.minidom.Document instance at 0x0401A0F8>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
863
864 elif node.localName == 'form':
865 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
866 views.append(Frame(children=n, **attrs))
867
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: form at 0x401ad00>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
867
868 elif node.localName == 'notebook':
869 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
870 nb = Notebook(children=n, **attrs)
871 self.nb_couter += 1
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: notebook at 0x3a9c4e0>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
874
875 elif node.localName == 'page':
876 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
877 views.append(Page(children=n, **attrs))
878
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: page at 0x4b5daa8>, fields={'balance_end': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_end_balance', 'help': u"Solde de cl\xf4ture bas\xe9 sur le solde d'ouverture et les transactions en liquide.", 'readonly': 1, 'selectable': True, ...}, 'balance_end_real': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'help': u'solde de cl\xf4ture saisi par la personne qui a v\xe9rifi\xe9 la caisse', 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_end_real', 'prefix': '', 'selectable': True, 'state': u'draft', ...}, 'balance_start': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'digits': (16, 2), 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'balance_start', 'prefix': '', 'selectable': True, 'state': u'draft', 'states': {'confirm': [(u'readonly', True)]}, ...}, 'company_id': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'journal_id', u'company_id'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': u'res.company', 'function': u'_fnct_read', ...}, 'currency': {'context': {}, 'digits': (16, 2), 'domain': [], 'editable': True, 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': u'res.currency', 'function': u'_currency', ...}, 'date': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'date', 'on_change': u'onchange_date(date)', 'prefix': '', 'required': True, 'select': u'1', 'selectable': True, ...}, 'journal_id': {'context': {}, 'domain': u"[('type', '=', 'bank')]", 'editable': True, 'link': '1', 'model': 'account.bank.statement', 'name': u'journal_id', 'on_change': u'onchange_journal_id(journal_id)', 'prefix': '', 'readonly': True, 'relation': u'account.journal', ...}, 'line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.bank.statement.line', ...}, 'move_line_ids': {'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, 'name': {'context': {'_terp_view_name': u'Relev\xe9s bancaires', 'active_id': 181, 'active_ids': [181], 'active_model': 'ir.ui.menu', 'bin_size': True, 'client': 'web', 'department_id': False, 'journal_type': 'bank', 'lang': u'fr_FR', 'project_id': False, ...}, 'editable': True, 'help': u'En donnant un Nom diff\xe9rent de /, les \xe9critures comptables porteront le m\xeame Nom.', 'link': 1, 'model': 'account.bank.statement', 'name': u'name', 'prefix': '', 'readonly': True, 'required': True, 'select': u'1', ...}, ...}, values={'balance_start': 0.0, 'date': u'2011-05-09 11:20:49', 'journal_id': 6, 'name': u'/', 'period_id': 5, 'state': u'draft'})
906 self.view_fields.append(name)
907
908 field = self._make_field_widget(fields[name], values.get(name))
909 views.append(field)
910
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py in _make_field_widget(self=Form, attrs={'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...}, value=None)
972 attrs['readonly'] = True
973
974 field = get_widget(kind)(**attrs)
975
976 if isinstance(field, TinyInputWidget):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_o2m.py in __init__(self=O2M, **attrs={'colspan': u'4', 'context': {}, 'domain': [], 'editable': True, 'link': 1, 'model': 'account.bank.statement', 'name': u'move_line_ids', 'nolabel': u'1', 'prefix': '', 'relation': u'account.move.line', ...})
216 self.screen = Screen(current, prefix=self.name, views_preloaded=view,
217 editable=self.editable, readonly=self.readonly,
218 selectable=0, nolinks=self.link, _o2m=1)
219
220 self.id = id
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': 'tree', '_terp_offset': 0, '...count': 0, '_terp_id': None, '_terp_context': {}}, prefix=u'move_line_ids', name='', views_preloaded={}, hastoolbar=False, hassubmenu=False, editable=True, readonly=False, selectable=0, nolinks=1, **kw={'_o2m': 1})
105 self.kalendar = params.kalendar
106 if self.view_mode:
107 self.add_view_id(self.view_id, self.view_type)
108
109 def add_view_id(self, view_id, view_type):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=False, view_type='tree')
121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
122
123 self.add_view(view, view_type)
124
125 def add_view(self, view, view_type='form'):
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<?xml version="1.0"?>\n<tree string="\xc9critu...e_id\') not in [6, 7, 8, 5, 3, 2, 4]"/>\n</tree>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, 'model': u'account.move.line', 'name': u'account.move.line.tax.tree', 'type': u'tree', 'view_id': 374}, view_type='tree')
129
130 from _views import get_view_widget
131 self.widget = get_view_widget(view_type, self)
132
133 self.string = (self.widget or '') and self.widget.string
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in get_view_widget(kind='tree', screen=Screen)
135 raise Exception("view '%s' not supported." % kind)
136
137 return view(screen)
138
139 def get_registered_views():
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.ListView object at 0x044BDD10>, screen=Screen)
116 count=screen.count, nolinks=screen.link,
117 m2m=screen.m2m, o2m=screen.o2m,
118 default_data=screen.default_value)
119
120 screen.ids = widget.ids
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py in __init__(self=List, name=u'move_line_ids/', model=u'account.move.line', view={'arch': u'<?xml version="1.0"?>\n<tree string="\xc9critu...e_id\') not in [6, 7, 8, 5, 3, 2, 4]"/>\n</tree>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, 'model': u'account.move.line', 'name': u'account.move.line.tax.tree', 'type': u'tree', 'view_id': 374}, ids=[], domain=[], context={}, **kw={'count': 0, 'default_data': [], 'editable': True, 'limit': 50, 'm2m': 0, 'nolinks': 1, 'o2m': 1, 'offset': 0, 'selectable': 0, 'view_mode': ['tree', 'form']})
201
202 self.values = copy.deepcopy(data)
203 self.headers, self.hiddens, self.data, self.field_total, self.buttons = self.parse(root, fields, data)
204
205 for k, v in self.field_total.items():
C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py in parse(self=List, root=<DOM Element: tree at 0x437d558>, fields={'account_id': {'context': {}, 'domain': u"[('journal_id', '=', 1),('type','<>','view'), ('type','<>','closed')]", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'account_id', 'on_change': u'onchange_account_id(account_id, partner_id)', 'relation': u'account.account', 'required': True, 'select': 2, 'selectable': True, 'string': u'Compte', ...}, 'account_tax_id': {'context': {}, 'domain': [], 'relation': u'account.tax', 'selectable': True, 'string': u'Imp\xf4ts et taxes', 'type': u'many2one'}, 'analytic_account_id': {'context': {}, 'domain': [], 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Centre de co\xfbts', 'type': u'many2one'}, 'credit': {'digits': (16, 2), 'selectable': True, 'string': u'Cr\xe9dit', 'type': u'float'}, 'date': {'digits': (16, 2), 'fnct_inv': u'_fnct_write', 'fnct_inv_arg': (u'move_id', u'date'), 'fnct_search': u'_fnct_search', 'func_method': True, 'func_obj': False, 'function': u'_fnct_read', 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'date', 'on_change': u'onchange_date(date)', ...}, 'date_maturity': {'help': u'Ce champ est utilis\xe9 pour les \xe9critures ... la date limite pour le paiement de cette ligne.', 'invisible': u"context.get('visible_id') not in [5, 3, 2, 4]", 'name': u'date_maturity', 'select': True, 'selectable': True, 'string': u"Date d'\xe9ch\xe9ance", 'type': u'date'}, 'debit': {'digits': (16, 2), 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'debit', 'selectable': True, 'string': u'D\xe9bit', 'sum': u'Total d\xe9bit', 'type': u'float'}, 'journal_id': {'context': u"{'journal_id': journal_id}", 'domain': [], 'invisible': u"context.get('journal_id', False)", 'name': u'journal_id', 'relation': u'account.journal', 'required': True, 'select': 1, 'selectable': True, 'string': u'Journal', 'type': u'many2one'}, 'move_id': {'context': {}, 'domain': [], 'help': u"Le mouvement de cette ligne d'\xe9criture", 'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'move_id', 'relation': u'account.move', 'required': u'False', 'select': 2, 'selectable': True, 'string': u"N\xb0 d'\xe9criture", ...}, 'name': {'invisible': u"context.get('visible_id') not in [6, 7, 8, 5, 3, 2, 4, 1, None]", 'name': u'name', 'required': True, 'selectable': True, 'size': 64, 'string': u'Nom', 'type': u'char'}, ...}, data=[])
377
378 try:
379 fields[name].update(attrs)
380 except:
381 print "-"*30,"\n malformed tag for:", attrs
<type 'exceptions.KeyError'>: u'analytics_id'
__class__ = <type 'exceptions.KeyError'>
__delattr__ = <method-wrapper '__delattr__' of exceptions.KeyError object at 0x0556FA58>
__dict__ = {}
__doc__ = 'Mapping key not found.'
__getattribute__ = <method-wrapper '__getattribute__' of exceptions.KeyError object at 0x0556FA58>
__getitem__ = <method-wrapper '__getitem__' of exceptions.KeyError object at 0x0556FA58>
__getslice__ = <method-wrapper '__getslice__' of exceptions.KeyError object at 0x0556FA58>
__hash__ = <method-wrapper '__hash__' of exceptions.KeyError object at 0x0556FA58>
__init__ = <method-wrapper '__init__' of exceptions.KeyError object at 0x0556FA58>
__new__ = <built-in method __new__ of type object at 0x1E1CDFB8>
__reduce__ = <built-in method __reduce__ of exceptions.KeyError object at 0x0556FA58>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.KeyError object at 0x0556FA58>
__repr__ = <method-wrapper '__repr__' of exceptions.KeyError object at 0x0556FA58>
__setattr__ = <method-wrapper '__setattr__' of exceptions.KeyError object at 0x0556FA58>
__setstate__ = <built-in method __setstate__ of exceptions.KeyError object at 0x0556FA58>
__str__ = <method-wrapper '__str__' of exceptions.KeyError object at 0x0556FA58>
args = (u'analytics_id',)
message = u'analytics_id'
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 606, in respond
File "cherrypy\_cpdispatch.pyo", line 25, in __call__
File "openobject\tools\_expose.pyo", line 182, in func_wrapper
File "openobject\controllers\_root.pyo", line 87, in default
File "cherrypy\_cpdispatch.pyo", line 25, in __call__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py", line 112, in wrapper
File "openobject\tools\_expose.pyo", line 182, in func_wrapper
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 328, in edit
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\utils.py", line 112, in wrapper
File "openobject\tools\_expose.pyo", line 182, in func_wrapper
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 195, in create
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\controllers\form.py", line 186, in create_form
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form_view.py", line 90, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 107, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 123, in add_view_id
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 131, in add_view
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 137, in get_view_widget
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 66, in __call__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 805, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 865, in parse
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 869, in parse
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 876, in parse
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 908, in parse
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_form.py", line 974, in _make_field_widget
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\form\_o2m.py", line 218, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 107, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 123, in add_view_id
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\screen.py", line 131, in add_view
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 137, in get_view_widget
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\_views.py", line 118, in __call__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py", line 203, in __init__
File "C:\Program Files (x86)\OpenERP 6.0\Web\addons\openerp\widgets\listgrid.py", line 379, in parse
KeyError: u'analytics_id'
References