c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #22165
[Bug 766176] [NEW] context treated differently in GTK compared to Web Client
Public bug reported:
<record id="form_view_job" model="ir.ui.view">
<field name="name">company.job.form</field>
<field name="model">company.job</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="CompanyJob">
<field name="name"/>
<field name="code"/>
<field name="contracts_manager"/>
<field name="site_manager1"/>
<field name="site_manager2"/>
<field name="site_manager3"/>
<field name="site_manager4"/>
<field name="cost_code"/>
<field name="site_address"/>
<field colspan="4" context="{'job_id': name, 'cost_code': cost_code}" name="purchase_orders" nolabel="1"/>
</form>
</field>
</record>
In the above, job_id and cost_code are added to the context.
However ...
GTK output - context = {'lang': u'en_GB', 'cost_code': 'False', 'tz': False, 'job_id': '011', 'view_type': 'form'}
Web client output - context = {'lang': u'en_GB', 'tz': False, 'job_id':
'9', 'section_id': False, 'bin_size': True, 'client': 'web',
'cost_code': 'False'}
You can see the JOB_ID field = '011' in the GTK, however it is '9' in the web client.
The number '011' is the char entry for this record's name.
The number '9' is the ID of this record.
Please advise.
thanks
** Affects: openobject-client-web
Importance: Undecided
Status: New
--
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/766176
Title:
context treated differently in GTK compared to Web Client
Status in OpenERP Web Client:
New
Bug description:
<record id="form_view_job" model="ir.ui.view">
<field name="name">company.job.form</field>
<field name="model">company.job</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="CompanyJob">
<field name="name"/>
<field name="code"/>
<field name="contracts_manager"/>
<field name="site_manager1"/>
<field name="site_manager2"/>
<field name="site_manager3"/>
<field name="site_manager4"/>
<field name="cost_code"/>
<field name="site_address"/>
<field colspan="4" context="{'job_id': name, 'cost_code': cost_code}" name="purchase_orders" nolabel="1"/>
</form>
</field>
</record>
In the above, job_id and cost_code are added to the context.
However ...
GTK output - context = {'lang': u'en_GB', 'cost_code': 'False', 'tz': False, 'job_id': '011', 'view_type': 'form'}
Web client output - context = {'lang': u'en_GB', 'tz': False,
'job_id': '9', 'section_id': False, 'bin_size': True, 'client': 'web',
'cost_code': 'False'}
You can see the JOB_ID field = '011' in the GTK, however it is '9' in the web client.
The number '011' is the char entry for this record's name.
The number '9' is the ID of this record.
Please advise.
thanks
Follow ups
-
[Bug 766176] OpenERP Majordomo Message
From: OpenERP Majordomo, 2011-08-16
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Devishree Brahmbhatt (OpenERP), 2011-04-25
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Colin MacMillan (publicus-solutions.com), 2011-04-21
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Ferdinand @ Camptocamp, 2011-04-20
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Colin MacMillan (publicus-solutions.com), 2011-04-20
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Devishree Brahmbhatt (OpenERP), 2011-04-20
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Colin MacMillan (publicus-solutions.com), 2011-04-20
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Colin MacMillan (publicus-solutions.com), 2011-04-20
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Devishree Brahmbhatt (OpenERP), 2011-04-20
-
[Bug 766176] Re: context treated differently in GTK compared to Web Client
From: Colin MacMillan (publicus-solutions.com), 2011-04-20
-
[Bug 766176] [NEW] context treated differently in GTK compared to Web Client
From: Colin MacMillan (publicus-solutions.com), 2011-04-19
References