Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-4834-msh into
lp:openobject-client-web/6.0.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #696793 in OpenERP Web Client: "[6.0] [Trunk] Purchase expected date
wrong value (function field 'fnct_inv' does not work properly in web client)"
https://bugs.launchpad.net/openobject-client-web/+bug/696793
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-4834-msh/+merge/61347
Hello Sir,
I have solved functional field issue for web-client.
We have passed all the values of form even its not updated which is create
problem, each time it call function field `SET` method.
So now we solve just passed the values which is updated when call write.
Please check with the attached.
Thank you.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-4834-msh/+merge/61347
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-4834-msh.
=== modified file 'addons/openerp/controllers/form.py'
--- addons/openerp/controllers/form.py 2011-05-05 16:51:18 +0000
+++ addons/openerp/controllers/form.py 2011-05-18 05:07:31 +0000
@@ -404,8 +404,16 @@
params.ids = (params.ids or []) + [params.id]
params.count += 1
else:
- ctx = utils.context_with_concurrency_info(params.context, params.concurrency_info)
- Model.write([params.id], data, ctx)
+ datas = Model.read(params.id, data.keys())
+ Updated_data = {}
+ for i,j in datas.iteritems():
+ if isinstance(j,tuple):
+ datas[i] = j[0]
+ if i in data.keys():
+ if data[i] != datas[i]:
+ Updated_data[i] = data[i]
+ ctx = utils.context_with_concurrency_info(params.context, params.concurrency_info)
+ Model.write([params.id], Updated_data, ctx)
tw.ConcurrencyInfo.update(
params.model, Model.read([params.id], ['__last_update'], ctx)
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-web
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-web
More help : https://help.launchpad.net/ListHelp