From fac99bef8212b572a81e25984ec32d9f0af628cf Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 29 Nov 2013 11:57:19 +0100 Subject: [PATCH 1/7] [ADD] web_ir_actions_act_window_scroll --- web_ir_actions_act_window_scroll/__init__.py | 20 ++++++ .../__openerp__.py | 57 ++++++++++++++++++ .../static/src/img/icon.png | Bin 0 -> 7939 bytes .../js/web_ir_actions_act_window_scroll.js | 44 ++++++++++++++ 4 files changed, 121 insertions(+) create mode 100644 web_ir_actions_act_window_scroll/__init__.py create mode 100644 web_ir_actions_act_window_scroll/__openerp__.py create mode 100644 web_ir_actions_act_window_scroll/static/src/img/icon.png create mode 100644 web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js diff --git a/web_ir_actions_act_window_scroll/__init__.py b/web_ir_actions_act_window_scroll/__init__.py new file mode 100644 index 00000000..f6974117 --- /dev/null +++ b/web_ir_actions_act_window_scroll/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## diff --git a/web_ir_actions_act_window_scroll/__openerp__.py b/web_ir_actions_act_window_scroll/__openerp__.py new file mode 100644 index 00000000..c7b6a238 --- /dev/null +++ b/web_ir_actions_act_window_scroll/__openerp__.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + "name" : "Window actions for client side scrolling", + "version" : "1.0", + "author" : "Therp BV", + "complexity": "normal", + "description": """ +Client side scrolling +===================== + +This addon enables buttons to return:: + +{'type': 'ir.actions.act_window.scroll.next'} + +or:: + +{'type': 'ir.actions.act_window.scroll.prev'} + +which trigger the form's controller to scroll into the requested direction. + """, + "category" : "Dependency", + "depends" : [ + ], + "data" : [ + ], + "js": [ + 'static/src/js/web_ir_actions_act_window_scroll.js', + ], + "css": [ + ], + "qweb": [ + ], + "auto_install": False, + "installable": True, + "external_dependencies" : { + 'python' : [], + }, +} diff --git a/web_ir_actions_act_window_scroll/static/src/img/icon.png b/web_ir_actions_act_window_scroll/static/src/img/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..f1006195e0220e5b38e4a1b8f17870ec9359f7bb GIT binary patch literal 7939 zcmV+eAN=5nP)2wk@lR!X%5@omqLQoK55FAmjS7i{dSA3$P zzIWGpF5g@Fp8Bp&ukT*H4h$*?s1O4r5R!C8GIo+qce>N_R9$1&8TQ`qkF!s8b*BRX zFM%xBD`!=8)j6lCzVrQlzwbAk0Pn1K);sGwUgQlvKLcO_2muHHpa2{I;{b91Tmb5P z29UkM7bgIq6hIw-nE+}46zlg~00Mw~J2IC7-~bH$NT*>l2T%@R#m0?)eR5!6#2OkJ zwfYB!GR@7+>j2CG5T53^!gCw?B9pf=5U-V0hW_Ct8lY0mDpQ}2>K`4_@6BwQGxy!x zFigg|X_|rXefNE7LjfBLkK+J>1?MgU5GgSK^BzE^!K(t$w07-{?`dpoTmqm$|KO

>GG0jNr_StN-8L&uw?17%KDt|b@K@T5Q5>Mp~PoC{qdi)w6vVK?6S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JO; z1aSTBcYgK7d+z_Cy665MsxN%y2lt=Fv3NT$@U->FBkRSK!fqdcgml%9T*sY32vJgq tN6+Hech)=Wo%POoXT7uDS#R0({{b$rzUWE6E0F*I002ovPDHLkV1nr_+@t^i literal 0 HcmV?d00001 diff --git a/web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js b/web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js new file mode 100644 index 00000000..1e0d3080 --- /dev/null +++ b/web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js @@ -0,0 +1,44 @@ +//-*- coding: utf-8 -*- +//############################################################################ +// +// OpenERP, Open Source Management Solution +// This module copyright (C) 2013 Therp BV (). +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +//############################################################################ + +openerp.web_ir_actions_act_window_scroll = function(openerp) +{ + openerp.web.ActionManager.include({ + ir_actions_act_window_scroll_prev: function(action, options) + { + if(this.inner_widget && this.inner_widget.active_view == 'form' && + this.inner_widget.views[this.inner_widget.active_view]) + { + this.inner_widget.views[this.inner_widget.active_view] + .controller.execute_pager_action('previous'); + } + }, + ir_actions_act_window_scroll_next: function(action, options) + { + if(this.inner_widget && this.inner_widget.active_view == 'form' && + this.inner_widget.views[this.inner_widget.active_view]) + { + this.inner_widget.views[this.inner_widget.active_view] + .controller.execute_pager_action('next'); + } + }, + }); +} From 8809bfca8e693f267a5c4b9c3c0e51d4fdb0b730 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 29 Nov 2013 17:14:34 +0100 Subject: [PATCH 2/7] [ADD] web_tree_many2one_clickable --- web_tree_many2one_clickable/__init__.py | 20 +++++++ web_tree_many2one_clickable/__openerp__.py | 53 ++++++++++++++++++ .../static/src/img/icon.png | Bin 0 -> 7939 bytes .../src/js/web_tree_many2one_clickable.js | 45 +++++++++++++++ 4 files changed, 118 insertions(+) create mode 100644 web_tree_many2one_clickable/__init__.py create mode 100644 web_tree_many2one_clickable/__openerp__.py create mode 100644 web_tree_many2one_clickable/static/src/img/icon.png create mode 100644 web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js diff --git a/web_tree_many2one_clickable/__init__.py b/web_tree_many2one_clickable/__init__.py new file mode 100644 index 00000000..f6974117 --- /dev/null +++ b/web_tree_many2one_clickable/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## diff --git a/web_tree_many2one_clickable/__openerp__.py b/web_tree_many2one_clickable/__openerp__.py new file mode 100644 index 00000000..5dacac43 --- /dev/null +++ b/web_tree_many2one_clickable/__openerp__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + "name" : "Clickable many2one widget for tree views", + "version" : "1.0", + "author" : "Therp BV", + "complexity": "normal", + "description": """ +This addon provides a widget to have many2one fields in a tree view open the +linked resource:: + + + +will open the linked partner in a form view. + """, + "category" : "Dependency", + "depends" : [ + 'web', + ], + "data" : [ + 'security/ir.model.access.csv', + ], + "js": [ + 'static/src/js/web_tree_many2one_clickable.js', + ], + "css": [ + ], + "qweb": [ + ], + "auto_install": False, + "installable": True, + "external_dependencies" : { + 'python' : [], + }, +} diff --git a/web_tree_many2one_clickable/static/src/img/icon.png b/web_tree_many2one_clickable/static/src/img/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..f1006195e0220e5b38e4a1b8f17870ec9359f7bb GIT binary patch literal 7939 zcmV+eAN=5nP)2wk@lR!X%5@omqLQoK55FAmjS7i{dSA3$P zzIWGpF5g@Fp8Bp&ukT*H4h$*?s1O4r5R!C8GIo+qce>N_R9$1&8TQ`qkF!s8b*BRX zFM%xBD`!=8)j6lCzVrQlzwbAk0Pn1K);sGwUgQlvKLcO_2muHHpa2{I;{b91Tmb5P z29UkM7bgIq6hIw-nE+}46zlg~00Mw~J2IC7-~bH$NT*>l2T%@R#m0?)eR5!6#2OkJ zwfYB!GR@7+>j2CG5T53^!gCw?B9pf=5U-V0hW_Ct8lY0mDpQ}2>K`4_@6BwQGxy!x zFigg|X_|rXefNE7LjfBLkK+J>1?MgU5GgSK^BzE^!K(t$w07-{?`dpoTmqm$|KO

>GG0jNr_StN-8L&uw?17%KDt|b@K@T5Q5>Mp~PoC{qdi)w6vVK?6S*CKJu}Tt(w!+Jh!H% zrnaJ@BE~qU{=WVPW-=LTbaZ66f1tl->(;Hi|L6C!9-2VNej}E<6{U3jg4CDZe?c2BYe(=^0c}!9S zgeX7)ZSCDwduOlhI4Z(83vfyUlu>X-K_~^K6ogQ&6baalM0_lZM5-H{5hq$4a%MKv zhD?)_Lc{3m?MqH0Y1CUCKr#(@AssD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3UbC!8jB*6NsSE*CBsVKYahSky1)J{ zLi&v|_t(Ng0>C)1f0uao>Z{=jd!RU2G+Tj8>c#k`$hoKUPIe8Tw|^Lw6{S#8VPI$! zxt!zO^P;>KM)S~HmV?f&emJh1uMioWO{!hy$LR<`RQI9diShDeGI{hL@49{L zdIEIrz7u6>J9Qlm7O>Cwefz z&rC{V5wz^wEmCQV+qNB9ym&?3!Gn8Jg)WGlXACR@&>Sg=HQs&Sw;LnTm?@+{Hk%cd zm1RLMdmwok!YG}lb4X9?I~V59{`1mU1cX5C+IK?Pj-ZBNMi*ar$>Iy<&iHjpON*GU zt@&18LT4>4Yp%PsGZw1|3Rgh50@-o5q_3y9-!u#aOaq3&VVV=0VQ`rKW*RU|1Ey){ z*G}I*8VSQRIbPbfcPO2)nEyG9^3}8FzGvC%EhfAbmJMLEuc!Z|OE152ol*!TlVk0< z+&HscRvC?$V%_3)^?nILWn^SQYNH& z^2_&b_#fx15A<1>h{t;qHg#7%{qT>iZQHih%$(Ky{yRSLrT@17pc|V%CpR{C?wr_k zz3K^HMWk_|cEPG4@(VJI==?b!q8jZT;*X z*A+7WU@Vzs&%bmuwqtjPsw@v>%1et_aZ!ksltd-t+_o({o66+uQ#~U^J$<8Pu8@TR zmCu^HY!-lhZwCNv0H**vw_wr5EB)~grBqjZbm)7AVO|$cgsw1*Kw)z$piLi2sqRcB z`RD%LlfzBTi$6^%3j=@|3N3%T04U&%`0mSQGT*i=2b8gyQqk*v`opjH0r&-gcU9Lm z-m(6UFMh~01BO?XRC^_1Yrp@`pY79bAhh9*FaEBsaqh36)SnzBp2XXA-FoZ8Y>JO; z1aSTBcYgK7d+z_Cy665MsxN%y2lt=Fv3NT$@U->FBkRSK!fqdcgml%9T*sY32vJgq tN6+Hech)=Wo%POoXT7uDS#R0({{b$rzUWE6E0F*I002ovPDHLkV1nr_+@t^i literal 0 HcmV?d00001 diff --git a/web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js b/web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js new file mode 100644 index 00000000..4203e34e --- /dev/null +++ b/web_tree_many2one_clickable/static/src/js/web_tree_many2one_clickable.js @@ -0,0 +1,45 @@ +//-*- coding: utf-8 -*- +//############################################################################ +// +// OpenERP, Open Source Management Solution +// This module copyright (C) 2013 Therp BV (). +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . +// +//############################################################################ + +openerp.web_tree_many2one_clickable = function(openerp) +{ + openerp.web.list.columns.add( + 'field.many2one_clickable', + 'instance.web_tree_many2one_clickable.Many2OneClickable'); + openerp.web_tree_many2one_clickable.Many2OneClickable = openerp.web.list.Column.extend({ + _format: function (row_data, options) + { + var link = _.escape(row_data[this.id].value[1] || options.value_if_empty); + var code = "_.each(openerp.instances, function(instance) {\n" + + "instance.webclient.action_manager.do_action({" + + "type: 'ir.actions.act_window', \n" + + _.str.sprintf("res_model: '%s',\n", this.relation) + + _.str.sprintf("res_id: %s,\n", row_data[this.id].value[0]) + + "views: [[false, 'form']],\n" + + "target: 'current'\n" + + "})})"; + link = _.str.sprintf('%s', + code, + link) + return link; + }, + }); +} From c7e3f40610b26f27fe0e22b9b65a1bd4c958f7e6 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 29 Nov 2013 17:18:06 +0100 Subject: [PATCH 3/7] [FIX] remove default file --- web_tree_many2one_clickable/__openerp__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/web_tree_many2one_clickable/__openerp__.py b/web_tree_many2one_clickable/__openerp__.py index 5dacac43..03ce21cd 100644 --- a/web_tree_many2one_clickable/__openerp__.py +++ b/web_tree_many2one_clickable/__openerp__.py @@ -36,7 +36,6 @@ will open the linked partner in a form view. 'web', ], "data" : [ - 'security/ir.model.access.csv', ], "js": [ 'static/src/js/web_tree_many2one_clickable.js', From 029b87261bb9fd284020fc7edfc5a7d08877c451 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Mon, 2 Dec 2013 11:30:01 +0100 Subject: [PATCH 4/7] [IMP] Terminology --- .../__init__.py | 0 .../__openerp__.py | 12 ++++++------ .../static/src/img/icon.png | Bin .../static/src/js/web_ir_actions_act_window_page.js | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) rename {web_ir_actions_act_window_scroll => web_ir_actions_act_window_page}/__init__.py (100%) rename {web_ir_actions_act_window_scroll => web_ir_actions_act_window_page}/__openerp__.py (82%) rename {web_ir_actions_act_window_scroll => web_ir_actions_act_window_page}/static/src/img/icon.png (100%) rename web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js => web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js (89%) diff --git a/web_ir_actions_act_window_scroll/__init__.py b/web_ir_actions_act_window_page/__init__.py similarity index 100% rename from web_ir_actions_act_window_scroll/__init__.py rename to web_ir_actions_act_window_page/__init__.py diff --git a/web_ir_actions_act_window_scroll/__openerp__.py b/web_ir_actions_act_window_page/__openerp__.py similarity index 82% rename from web_ir_actions_act_window_scroll/__openerp__.py rename to web_ir_actions_act_window_page/__openerp__.py index c7b6a238..31054808 100644 --- a/web_ir_actions_act_window_scroll/__openerp__.py +++ b/web_ir_actions_act_window_page/__openerp__.py @@ -19,23 +19,23 @@ # ############################################################################## { - "name" : "Window actions for client side scrolling", + "name" : "Window actions for client side paging", "version" : "1.0", "author" : "Therp BV", "complexity": "normal", "description": """ -Client side scrolling +Client side paging ===================== This addon enables buttons to return:: -{'type': 'ir.actions.act_window.scroll.next'} +{'type': 'ir.actions.act_window.page.next'} or:: -{'type': 'ir.actions.act_window.scroll.prev'} +{'type': 'ir.actions.act_window.page.prev'} -which trigger the form's controller to scroll into the requested direction. +which trigger the form's controller to page into the requested direction. """, "category" : "Dependency", "depends" : [ @@ -43,7 +43,7 @@ which trigger the form's controller to scroll into the requested direction. "data" : [ ], "js": [ - 'static/src/js/web_ir_actions_act_window_scroll.js', + 'static/src/js/web_ir_actions_act_window_page.js', ], "css": [ ], diff --git a/web_ir_actions_act_window_scroll/static/src/img/icon.png b/web_ir_actions_act_window_page/static/src/img/icon.png similarity index 100% rename from web_ir_actions_act_window_scroll/static/src/img/icon.png rename to web_ir_actions_act_window_page/static/src/img/icon.png diff --git a/web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js b/web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js similarity index 89% rename from web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js rename to web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js index 1e0d3080..8210df92 100644 --- a/web_ir_actions_act_window_scroll/static/src/js/web_ir_actions_act_window_scroll.js +++ b/web_ir_actions_act_window_page/static/src/js/web_ir_actions_act_window_page.js @@ -19,10 +19,10 @@ // //############################################################################ -openerp.web_ir_actions_act_window_scroll = function(openerp) +openerp.web_ir_actions_act_window_page = function(openerp) { openerp.web.ActionManager.include({ - ir_actions_act_window_scroll_prev: function(action, options) + ir_actions_act_window_page_prev: function(action, options) { if(this.inner_widget && this.inner_widget.active_view == 'form' && this.inner_widget.views[this.inner_widget.active_view]) @@ -31,7 +31,7 @@ openerp.web_ir_actions_act_window_scroll = function(openerp) .controller.execute_pager_action('previous'); } }, - ir_actions_act_window_scroll_next: function(action, options) + ir_actions_act_window_page_next: function(action, options) { if(this.inner_widget && this.inner_widget.active_view == 'form' && this.inner_widget.views[this.inner_widget.active_view]) From bcf05349073375243b7768869c7d5a0938bc8f12 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 6 Jan 2014 18:55:59 +0100 Subject: [PATCH 5/7] [ADD] web_ckeditor4 --- web_ckeditor4/__init__.py | 22 ++ web_ckeditor4/__openerp__.py | 114 +++++++++ .../static/src/css/web_ckeditor4.css | 6 + web_ckeditor4/static/src/img/icon.png | Bin 0 -> 8279 bytes .../static/src/js/ckeditor_basepath.js | 1 + web_ckeditor4/static/src/js/web_ckeditor4.js | 217 ++++++++++++++++++ 6 files changed, 360 insertions(+) create mode 100644 web_ckeditor4/__init__.py create mode 100644 web_ckeditor4/__openerp__.py create mode 100644 web_ckeditor4/static/src/css/web_ckeditor4.css create mode 100644 web_ckeditor4/static/src/img/icon.png create mode 100644 web_ckeditor4/static/src/js/ckeditor_basepath.js create mode 100644 web_ckeditor4/static/src/js/web_ckeditor4.js diff --git a/web_ckeditor4/__init__.py b/web_ckeditor4/__init__.py new file mode 100644 index 00000000..a97ee816 --- /dev/null +++ b/web_ckeditor4/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV () +# All Rights Reserved +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + diff --git a/web_ckeditor4/__openerp__.py b/web_ckeditor4/__openerp__.py new file mode 100644 index 00000000..6465c7e7 --- /dev/null +++ b/web_ckeditor4/__openerp__.py @@ -0,0 +1,114 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV () +# All Rights Reserved +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + 'name': 'CKEditor 4.x widget', + 'version': '1.0', + 'description': """ + This addon provides a widget for editing html fields via CKEditor 4.x + + Use widget="text_html" if you need just html display. In the unlikely case + you need specific features of ckeditor, use widget="text_ckeditor4". + """, + 'author': 'Therp BV', + 'website': 'http://www.therp.nl', + "category": "Tools", + "depends": [ + 'web', + ], + 'css': [ + 'static/src/css/web_ckeditor4.css', + ], + 'data': [ + ], + 'js': [ + 'static/src/js/ckeditor_basepath.js', + 'static/lib/ckeditor/ckeditor.js', + 'static/lib/ckeditor/config.js', + #to debug ckeditor, comment the lines above, + #do a + #cd static/lib + #git clone https://github.com/ckeditor/ckeditor-dev.git trunk + #cd trunk + #git checkout remotes/origin/release/4.1.x + #and uncomment the lines below +# 'static/lib/trunk/ckeditor.js', +# 'static/lib/trunk/core/event.js', +# 'static/lib/trunk/core/editor_basic.js', +# 'static/lib/trunk/core/env.js', +# 'static/lib/trunk/core/ckeditor_basic.js', +# 'static/lib/trunk/core/dom.js', +# 'static/lib/trunk/core/tools.js', +# 'static/lib/trunk/core/dtd.js', +# 'static/lib/trunk/core/dom/event.js', +# 'static/lib/trunk/core/dom/domobject.js', +# 'static/lib/trunk/core/dom/node.js', +# 'static/lib/trunk/core/dom/window.js', +# 'static/lib/trunk/core/dom/document.js', +# 'static/lib/trunk/core/dom/nodelist.js', +# 'static/lib/trunk/core/dom/element.js', +# 'static/lib/trunk/core/dom/documentfragment.js', +# 'static/lib/trunk/core/dom/walker.js', +# 'static/lib/trunk/core/dom/range.js', +# 'static/lib/trunk/core/dom/iterator.js', +# 'static/lib/trunk/core/command.js', +# 'static/lib/trunk/core/ckeditor_base.js', +# 'static/lib/trunk/core/config.js', +# 'static/lib/trunk/core/filter.js', +# 'static/lib/trunk/core/focusmanager.js', +# 'static/lib/trunk/core/keystrokehandler.js', +# 'static/lib/trunk/core/lang.js', +# 'static/lib/trunk/core/scriptloader.js', +# 'static/lib/trunk/core/resourcemanager.js', +# 'static/lib/trunk/core/plugins.js', +# 'static/lib/trunk/core/ui.js', +# 'static/lib/trunk/core/editor.js', +# 'static/lib/trunk/core/htmlparser.js', +# 'static/lib/trunk/core/htmlparser/basicwriter.js', +# 'static/lib/trunk/core/htmlparser/node.js', +# 'static/lib/trunk/core/htmlparser/comment.js', +# 'static/lib/trunk/core/htmlparser/text.js', +# 'static/lib/trunk/core/htmlparser/cdata.js', +# 'static/lib/trunk/core/htmlparser/fragment.js', +# 'static/lib/trunk/core/htmlparser/filter.js', +# 'static/lib/trunk/core/htmldataprocessor.js', +# 'static/lib/trunk/core/htmlparser/element.js', +# 'static/lib/trunk/core/template.js', +# 'static/lib/trunk/core/ckeditor.js', +# 'static/lib/trunk/core/creators/inline.js', +# 'static/lib/trunk/core/creators/themedui.js', +# 'static/lib/trunk/core/editable.js', +# 'static/lib/trunk/core/selection.js', +# 'static/lib/trunk/core/style.js', +# 'static/lib/trunk/core/dom/comment.js', +# 'static/lib/trunk/core/dom/elementpath.js', +# 'static/lib/trunk/core/dom/text.js', +# 'static/lib/trunk/core/dom/rangelist.js', +# 'static/lib/trunk/core/skin.js', +# 'static/lib/trunk/core/_bootstrap.js', + #end of ckeditor debug + 'static/src/js/web_ckeditor4.js', + ], + 'installable': True, + 'auto_install': False, + 'certificate': '', +} diff --git a/web_ckeditor4/static/src/css/web_ckeditor4.css b/web_ckeditor4/static/src/css/web_ckeditor4.css new file mode 100644 index 00000000..6bfad78b --- /dev/null +++ b/web_ckeditor4/static/src/css/web_ckeditor4.css @@ -0,0 +1,6 @@ +.openerp .oe_form_field_text_ckeditor4.disabled, .openerp td.oe_form_field_text_ckeditor4, .openerp .oe_form_field_text_ckeditor4_raw.disabled.openerp, .openerp td.oe_form_field_text_ckeditor4_raw { + /* here we need to reset openerp's styles to + * have the HTML display as (probably) intended + */ + white-space: normal; +} diff --git a/web_ckeditor4/static/src/img/icon.png b/web_ckeditor4/static/src/img/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..841a7ed04536b2295e2ba16824ebf56c99e51c9a GIT binary patch literal 8279 zcmV-dAgJGoP)z^wUV3|#=O>sHKniCGpdbK*1c(v=N))`$1r>%xhl$4vS4KaEWtz>L<1ONTm(##NJ@l3fJic!AtZ=Q1c8;k z1;8Kw!oFu9*(`!q!)4VWTnNXSJh005b7iltj0UnG%3MRsU@H&77Q!qS` zpn%%3ExI*ZnT`DcoIlKq6h(` zum*Xt1;D*Oa{zvD<%j{W-#I+LwWzA=N^h5!Me!0d8?C%*3zJ_0k~h#xG7%n9?V`2C znFJ5O0#>kqA!3aOk6^tJlt5qrkKrdmCWa!Q5m5Q;&fkJ2LwrNpFXAk_nx{45i6R(JGTGOwJonMgS`lN(*tV zeqX8o-ZyUDKi8lxn$YzjVGlS5lkoAASKz|2Had>*0`?akA9`vE+o!si$P##jRITW{ zQizizyxQ#z&s?zn&`-qzKRK7LD)Zh$=KXpSFcHz>?S^#TJx zb^KeJT_flQ^h}ubhBF3RIAbuwyccddx`?xeT6puCp<_PR>Q;gq&RL6hJvxcMJ+y$4 z#4Q1DNq7Vj<<+YIT)*r9{-wnIM`m}(Y&`&j=)9tvqRFPAG_&Zs zsLKlgz=9VROjw>H8r*`FICcO$^|KPD)1#0Dm~s!*x3k>t8)O$peMgql*<*WsV;_ zVGLKV8pNl!uELKO3hY`e)p5c91%eF0P$EHH@lyftz|pyPLfXVoYdJ5;N4NCGm{kdH z29GB0!CT0pzKL^0C1KGU3xf(7MiPhDP7LDm@ea-&Zee{ZS^B5-RIkEGom3Z$b?_S- zM)0w{GZ;%9G7`_^mEQK_L%99?_4uWcHs85nRR3<*BP==aLr3qzl*AVv%sAAUbnlx1z z2OPDf)8b2pGhI5?!8t>%V?N8l!sEWV9N(Mj;TuP~c&1n4J;#sfqbIH4ROxZ@51z$n zLJ$OGn)c%BCI;~Nv(^9rCT@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H3+o14;k@002ovPDHLkV1h_Hb?g8D literal 0 HcmV?d00001 diff --git a/web_ckeditor4/static/src/js/ckeditor_basepath.js b/web_ckeditor4/static/src/js/ckeditor_basepath.js new file mode 100644 index 00000000..930a6c40 --- /dev/null +++ b/web_ckeditor4/static/src/js/ckeditor_basepath.js @@ -0,0 +1 @@ +CKEDITOR_BASEPATH='/web_ckeditor4/static/lib/ckeditor/' diff --git a/web_ckeditor4/static/src/js/web_ckeditor4.js b/web_ckeditor4/static/src/js/web_ckeditor4.js new file mode 100644 index 00000000..3fc59675 --- /dev/null +++ b/web_ckeditor4/static/src/js/web_ckeditor4.js @@ -0,0 +1,217 @@ +/* -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV () +# All Rights Reserved +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################*/ + +openerp.web_ckeditor4 = function(openerp) +{ + var ckeditor_addFunction_org = CKEDITOR.tools.addFunction; + //this is a quite complicated way to kind of monkey patch the private + //method onDomReady of ckeditor's plugin wysiwigarea, which causes problems + //when the editor is about to be destroyed but because of OpenERP's + //architecture updated one last time with its current value + CKEDITOR.tools.addFunction = function(fn, scope) + { + if(scope && scope._ && scope._.attrChanges && scope._.detach) + { + var scope_reference = scope; + return ckeditor_addFunction_org(function() + { + var self = this, + self_arguments=arguments; + setTimeout(function() + { + if(CKEDITOR.instances[self.editor.name]) + { + fn.apply(self, self_arguments); + } + }, 0); + }, scope); + } + return ckeditor_addFunction_org(fn, scope); + }; + + CKEDITOR.on('dialogDefinition', function(e) + { + _.each(e.data.definition.contents, function(element) + { + if(element.filebrowser!='uploadButton') + { + return + } + _.each(element.elements, function(element) + { + if(!element.onClick || element.type!='fileButton') + { + return + } + var onClick_org = element.onClick; + element.onClick = function(e1) + { + onClick_org.apply(this, arguments); + _.each(jQuery('#'+this.domId).closest('table') + .find('iframe').contents().find(':file') + .get(0).files, + function(file) + { + var reader = new FileReader(); + reader.onload = function(load_event) + { + CKEDITOR.tools.callFunction( + e.editor._.filebrowserFn, + load_event.target.result, + ''); + } + reader.readAsDataURL(file); + }); + return false; + } + }); + }); + }); + + openerp.web.form.widgets.add('text_ckeditor4', + 'openerp.web_ckeditor4.FieldCKEditor4'); + openerp.web.form.widgets.add('text_ckeditor4_raw', + 'openerp.web_ckeditor4.FieldCKEditor4Raw'); + openerp.web.form.widgets.add('text_html', + 'openerp.web_ckeditor4.FieldCKEditor4'); + openerp.web.form.widgets.add('html', + 'openerp.web_ckeditor4.FieldCKEditor4'); + + function filter_html(value, ckeditor_filter, ckeditor_writer) + { + var fragment = CKEDITOR.htmlParser.fragment.fromHtml(value); + ckeditor_filter.applyTo(fragment); + ckeditor_writer.reset(); + fragment.writeHtml(ckeditor_writer); + return ckeditor_writer.getHtml(); + }; + + default_ckeditor_filter = new CKEDITOR.filter( + { + '*': + { + attributes: 'href,src,style,alt,width,height,dir', + styles: '*', + classes: '*', + }, + 'html head title meta style body p div span a h1 h2 h3 h4 h5 img br hr table tr th td ul ol li dd dt strong pre b i': true, + }); + default_ckeditor_writer = new CKEDITOR.htmlParser.basicWriter(); + + openerp.web_ckeditor4.FieldCKEditor4 = openerp.web.form.FieldText.extend({ + ckeditor_config: { + removePlugins: 'iframe,flash,forms,smiley,pagebreak,stylescombo', + filebrowserImageUploadUrl: 'dummy', + extraPlugins: 'filebrowser', + }, + ckeditor_filter: default_ckeditor_filter, + ckeditor_writer: default_ckeditor_writer, + start: function() + { + this._super.apply(this, arguments); + + CKEDITOR.lang.load(openerp.session.user_context.lang.split('_')[0], 'en', function() {}); + }, + initialize_content: function() + { + var self = this; + this._super.apply(this, arguments); + if(!this.$textarea) + { + return; + } + this.editor = CKEDITOR.replace(this.$textarea.get(0), + _.extend( + { + language: openerp.session.user_context.lang.split('_')[0], + on: + { + 'change': function() + { + self.store_dom_value(); + }, + }, + }, + this.ckeditor_config)); + }, + store_dom_value: function() + { + this.internal_set_value(this.editor ? this.editor.getData() : openerp.web.parse_value(this.get('value'), this)); + }, + filter_html: function(value) + { + return filter_html(value, this.ckeditor_filter, this.ckeditor_writer); + }, + render_value: function() + { + if(this.get("effective_readonly")) + { + this.$el.html(this.filter_html(this.get('value'))); + } + else + { + if(this.editor) + { + var self = this; + if(this.editor.status != 'ready') + { + var instanceReady = function() + { + self.editor.setData(self.get('value') || ''); + self.editor.removeListener('instanceReady', instanceReady); + }; + this.editor.on('instanceReady', instanceReady); + } + else + { + self.editor.setData(self.get('value') || ''); + } + } + } + }, + undelegateEvents: function() + { + this._cleanup_editor(); + return this._super.apply(this, arguments); + }, + _cleanup_editor: function() + { + if(this.editor) + { + CKEDITOR.remove(this.editor); + this.editor.removeAllListeners(); + this.editor = null; + } + }, + destroy_content: function() + { + this._cleanup_editor(); + } + }); + openerp.web_ckeditor4.FieldCKEditor4Raw = openerp.web_ckeditor4.FieldCKEditor4.extend({ + filter_html: function(value) + { + return value; + } + }); +} + From f7824ab974e269a7cb1572d215bdc91a13f34e5c Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 31 Jan 2014 17:56:13 +0100 Subject: [PATCH 6/7] [FIX] accessing undefined variable --- web_ckeditor4/static/src/js/web_ckeditor4.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_ckeditor4/static/src/js/web_ckeditor4.js b/web_ckeditor4/static/src/js/web_ckeditor4.js index 3fc59675..c72b36a3 100644 --- a/web_ckeditor4/static/src/js/web_ckeditor4.js +++ b/web_ckeditor4/static/src/js/web_ckeditor4.js @@ -52,7 +52,7 @@ openerp.web_ckeditor4 = function(openerp) { _.each(e.data.definition.contents, function(element) { - if(element.filebrowser!='uploadButton') + if(!element || element.filebrowser!='uploadButton') { return } From 981dc8e902da760b07b888c0327812e2bf12e542 Mon Sep 17 00:00:00 2001 From: Launchpad Translations on behalf of webaddons-core-editors Date: Fri, 21 Feb 2014 06:37:48 +0000 Subject: [PATCH 7/7] Launchpad automatic translations update. --- web_export_view/i18n/es.po | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 web_export_view/i18n/es.po diff --git a/web_export_view/i18n/es.po b/web_export_view/i18n/es.po new file mode 100644 index 00000000..2b29d548 --- /dev/null +++ b/web_export_view/i18n/es.po @@ -0,0 +1,32 @@ +# Spanish translation for web-addons +# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 +# This file is distributed under the same license as the web-addons package. +# FIRST AUTHOR , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: web-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2013-10-21 11:59+0000\n" +"PO-Revision-Date: 2014-02-20 23:18+0000\n" +"Last-Translator: Pedro Manuel Baeza \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2014-02-21 06:37+0000\n" +"X-Generator: Launchpad (build 16916)\n" + +#. module: web_export_view +#. openerp-web +#: code:addons/web_export_view/static/xml/web_advanced_export.xml:7 +#, python-format +msgid "Export Current View" +msgstr "Exportar vista actual" + +#. module: web_export_view +#. openerp-web +#: code:addons/web_export_view/static/xml/web_advanced_export.xml:9 +#, python-format +msgid "Excel" +msgstr "Excel"