c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #13384
[Bug 704805] Re: Cannot add new invoice line without a product in webclient
*** This bug is a duplicate of bug 704882 ***
https://bugs.launchpad.net/bugs/704882
** This bug has been marked a duplicate of bug 704882
Error evaluating parent.type in invoice lines
* You can subscribe to bug 704882 by following this link: https://bugs.launchpad.net/openobject-addons/+bug/704882/+subscribe
--
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/704805
Title:
Cannot add new invoice line without a product in webclient
Status in OpenERP Web Client:
New
Bug description:
When I try to select the account_id for a new invoice line without a
product code, I get no results in the webclient. The domain of the
field is incorrect. This could be related to the warning "name
'parent' is not defined" as displayed in the GTK-client console
output, as the domain in the code is defined using this "parent"
object:
<field domain="[('company_id', '=', parent.company_id), ('journal_id',
'=', parent.journal_id), ('type', '<>', 'view')]"
name="account_id"
on_change="onchange_account_id(parent.fiscal_position,account_id)"/>
As the GTK client has no problems handling this code, and bug #670931
has been dismissed as such, I file this bug under the webclient so
that it be improved in this respect.
For reference, here are the RPC parameters from the webclient and the
GTK client respectively. You can see that the domain values in the
first case resolve to None, which is obviously incorrect. The GTK
client gives the correct values and the correct results.
Webclient:
[2011-01-19 09:39:52,409][?] DEBUG_RPC:params:['nieuw',
[2011-01-19 09:39:52,409][?] DEBUG_RPC:params: 1,
[2011-01-19 09:39:52,409][?] DEBUG_RPC:params: '*',
[2011-01-19 09:39:52,410][?] DEBUG_RPC:params: 'account.account',
[2011-01-19 09:39:52,410][?] DEBUG_RPC:params: 'name_search',
[2011-01-19 09:39:52,410][?] DEBUG_RPC:params: '',
[2011-01-19 09:39:52,412][?] DEBUG_RPC:params: [('company_id', '=', None),
[2011-01-19 09:39:52,412][?] DEBUG_RPC:params: ('journal_id', '=', None),
[2011-01-19 09:39:52,412][?] DEBUG_RPC:params: ('type', '<>', 'view')],
[2011-01-19 09:39:52,412][?] DEBUG_RPC:params: 'ilike',
[2011-01-19 09:39:52,412][?] DEBUG_RPC:params: {'active_id': False,
[2011-01-19 09:39:52,412][?] DEBUG_RPC:params: 'active_ids': [],
[2011-01-19 09:39:52,413][?] DEBUG_RPC:params: 'client': 'web',
[2011-01-19 09:39:52,413][?] DEBUG_RPC:params: 'lang': u'nl_NL',
[2011-01-19 09:39:52,413][?] DEBUG_RPC:params: 'tz': False},
[2011-01-19 09:39:52,413][?] DEBUG_RPC:params: 10]
GTK client:
[2011-01-19 09:37:24,633][?] DEBUG_RPC:params:['nieuw',
[2011-01-19 09:37:24,633][?] DEBUG_RPC:params: 1,
[2011-01-19 09:37:24,633][?] DEBUG_RPC:params: '*',
[2011-01-19 09:37:24,633][?] DEBUG_RPC:params: 'account.account',
[2011-01-19 09:37:24,633][?] DEBUG_RPC:params: 'search_count',
[2011-01-19 09:37:24,633][?] DEBUG_RPC:params: [['company_id', '=', 1], ['journal_id', '=', 1], ['type', '<>', 'view']],
[2011-01-19 09:37:24,633][?] DEBUG_RPC:params: {'lang': 'nl_NL', 'tz': False}]
Reproduced using the following bzr revisions:
addons 4332
client-web 4430
server 3310
References