Chirag Patel (OpenERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-579638-cpa into lp:openerp-web/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-579638-cpa/+merge/126442
Hello,
Web-client is not saving the data of Translation box in current language.
Steps:
1). Set current language as french
2). Open product form, create any product and save it.
3). Now edit that record and try to change the name of product in english
language, it will change the name for both the languages.
It should change the name for english language only.
For more ref check the video :
https://bugs.launchpad.net/openobject-server/+bug/1053970/+attachment/3340623/+files/1053970.ogv
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-579638-cpa/+merge/126442
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-579638-cpa.
=== modified file 'addons/web/static/src/js/views.js'
--- addons/web/static/src/js/views.js 2012-06-29 10:53:25 +0000
+++ addons/web/static/src/js/views.js 2012-09-26 12:35:28 +0000
@@ -1050,12 +1050,14 @@
var trads = {},
self = this,
trads_mutex = new $.Mutex();
- self.$fields_form.find('.oe_trad_field.touched').each(function() {
- var field = $(this).attr('name').split('-');
- if (!trads[field[0]]) {
- trads[field[0]] = {};
- }
- trads[field[0]][field[1]] = $(this).val();
+ self.$fields_form.find('.oe_trad_field.touched').parents('tr').each(function() {
+ $(this).find('.oe_trad_field').each(function() {
+ var field = $(this).attr('name').split('-');
+ if (!trads[field[0]]) {
+ trads[field[0]] = {};
+ }
+ trads[field[0]][field[1]] = $(this).val();
+ });
});
_.each(trads, function(data, code) {
if (code === self.view_language) {
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp