summaryrefslogtreecommitdiff
path: root/addons/process
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-09-17 13:44:55 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-09-17 13:44:55 +0200
commitccb15e76f64f324f2dc2e446cac43f05c3a0aab2 (patch)
tree4f9f7732b0071ba48544d3767591545ada04265f /addons/process
parent7488a675b4d9a8e99cf2b9b25c194e114babcafb (diff)
parent84094e0c39bf20499aefccc6c78143aeb2227d18 (diff)
[MERGE] latest trunk
bzr revid: abo@openerp.com-20120917114455-nygv16c93qwcwnsx
Diffstat (limited to 'addons/process')
-rw-r--r--addons/process/__openerp__.py24
-rw-r--r--addons/process/i18n/ar.po4
-rw-r--r--addons/process/i18n/bg.po4
-rw-r--r--addons/process/i18n/bs.po4
-rw-r--r--addons/process/i18n/ca.po4
-rw-r--r--addons/process/i18n/cs.po4
-rw-r--r--addons/process/i18n/da.po4
-rw-r--r--addons/process/i18n/de.po4
-rw-r--r--addons/process/i18n/el.po4
-rw-r--r--addons/process/i18n/es.po4
-rw-r--r--addons/process/i18n/es_AR.po4
-rw-r--r--addons/process/i18n/es_CL.po4
-rw-r--r--addons/process/i18n/es_CR.po4
-rw-r--r--addons/process/i18n/et.po4
-rw-r--r--addons/process/i18n/fi.po4
-rw-r--r--addons/process/i18n/fr.po4
-rw-r--r--addons/process/i18n/gl.po4
-rw-r--r--addons/process/i18n/hi.po4
-rw-r--r--addons/process/i18n/hr.po4
-rw-r--r--addons/process/i18n/hu.po4
-rw-r--r--addons/process/i18n/id.po4
-rw-r--r--addons/process/i18n/it.po4
-rw-r--r--addons/process/i18n/ja.po4
-rw-r--r--addons/process/i18n/ko.po4
-rw-r--r--addons/process/i18n/lt.po4
-rw-r--r--addons/process/i18n/mn.po4
-rw-r--r--addons/process/i18n/nl.po4
-rw-r--r--addons/process/i18n/nl_BE.po4
-rw-r--r--addons/process/i18n/pl.po4
-rw-r--r--addons/process/i18n/pt.po4
-rw-r--r--addons/process/i18n/pt_BR.po11
-rw-r--r--addons/process/i18n/ro.po4
-rw-r--r--addons/process/i18n/ru.po4
-rw-r--r--addons/process/i18n/sk.po4
-rw-r--r--addons/process/i18n/sl.po4
-rw-r--r--addons/process/i18n/sq.po4
-rw-r--r--addons/process/i18n/sr.po4
-rw-r--r--addons/process/i18n/sr@latin.po4
-rw-r--r--addons/process/i18n/sv.po4
-rw-r--r--addons/process/i18n/tlh.po4
-rw-r--r--addons/process/i18n/tr.po4
-rw-r--r--addons/process/i18n/uk.po4
-rw-r--r--addons/process/i18n/vi.po4
-rw-r--r--addons/process/i18n/zh_CN.po4
-rw-r--r--addons/process/i18n/zh_TW.po4
-rw-r--r--addons/process/process.py4
-rw-r--r--addons/process/process_view.xml36
-rw-r--r--addons/process/static/src/css/process.css70
-rw-r--r--addons/process/static/src/img/button-a-a.pngbin0 -> 6595 bytes
-rw-r--r--addons/process/static/src/img/cta-a.gifbin0 -> 108 bytes
-rw-r--r--addons/process/static/src/img/iconset-a-help.gifbin0 -> 379 bytes
-rw-r--r--addons/process/static/src/img/node-current.pngbin0 -> 3143 bytes
-rw-r--r--addons/process/static/src/img/node-gray.pngbin0 -> 3128 bytes
-rw-r--r--addons/process/static/src/img/node-subflow-gray.pngbin0 -> 6837 bytes
-rw-r--r--addons/process/static/src/img/node-subflow.pngbin0 -> 6851 bytes
-rw-r--r--addons/process/static/src/img/node.pngbin0 -> 3205 bytes
-rw-r--r--addons/process/static/src/js/process.js249
-rw-r--r--addons/process/static/src/xml/process.xml93
58 files changed, 531 insertions, 128 deletions
diff --git a/addons/process/__openerp__.py b/addons/process/__openerp__.py
index 1c592f3771b..f0ece3704dc 100644
--- a/addons/process/__openerp__.py
+++ b/addons/process/__openerp__.py
@@ -28,22 +28,32 @@
This module shows the basic processes involved in the selected modules and in the sequence they occur.
======================================================================================================
-Note: This applies to the modules containing modulename_process_xml
-e.g product/process/product_process_xml
+**Note:** This applies to the modules containing modulename_process.xml.
+
+**e.g.** product/process/product_process.xml.
""",
'author': 'OpenERP SA',
'website': 'http://www.openerp.com',
'depends': ['base'],
- 'init_xml': [],
- 'update_xml': [
- 'security/ir.model.access.csv',
- 'process_view.xml'
+ 'data': [
+ 'security/ir.model.access.csv',
+ 'process_view.xml'
],
- 'demo_xml': [],
+ 'demo': [],
'installable': True,
'auto_install': False,
'certificate': '0055447636669',
'images': ['images/process_nodes.jpeg','images/process_transitions.jpeg', 'images/processes.jpeg'],
+ 'js': [
+ 'static/src/js/process.js'
+ ],
+ 'css': [
+ 'static/src/css/process.css'
+ ],
+ 'qweb': [
+ 'static/src/xml/*.xml'
+ ],
+ 'auto_install': True
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/process/i18n/ar.po b/addons/process/i18n/ar.po
index f9b7c6bd8b2..1f8a418420e 100644
--- a/addons/process/i18n/ar.po
+++ b/addons/process/i18n/ar.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/bg.po b/addons/process/i18n/bg.po
index 879f692ce86..b4b61b81513 100644
--- a/addons/process/i18n/bg.po
+++ b/addons/process/i18n/bg.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/bs.po b/addons/process/i18n/bs.po
index 167cfd52100..79d02bcd13a 100644
--- a/addons/process/i18n/bs.po
+++ b/addons/process/i18n/bs.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/ca.po b/addons/process/i18n/ca.po
index 2a0b2090a50..e489bdeb340 100644
--- a/addons/process/i18n/ca.po
+++ b/addons/process/i18n/ca.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/cs.po b/addons/process/i18n/cs.po
index 87e5d78e254..e18003598ba 100644
--- a/addons/process/i18n/cs.po
+++ b/addons/process/i18n/cs.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
"X-Poedit-Language: Czech\n"
#. module: process
diff --git a/addons/process/i18n/da.po b/addons/process/i18n/da.po
index 4ed12454a08..445c28cef8a 100644
--- a/addons/process/i18n/da.po
+++ b/addons/process/i18n/da.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/de.po b/addons/process/i18n/de.po
index d41cc85818e..e4d8ab46e0a 100644
--- a/addons/process/i18n/de.po
+++ b/addons/process/i18n/de.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/el.po b/addons/process/i18n/el.po
index 46586728b0a..dbb11c959a5 100644
--- a/addons/process/i18n/el.po
+++ b/addons/process/i18n/el.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
"X-Poedit-Country: GREECE\n"
"X-Poedit-Language: Greek\n"
"X-Poedit-SourceCharset: utf-8\n"
diff --git a/addons/process/i18n/es.po b/addons/process/i18n/es.po
index a74876481a1..0e650a8d320 100644
--- a/addons/process/i18n/es.po
+++ b/addons/process/i18n/es.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/es_AR.po b/addons/process/i18n/es_AR.po
index efc43032013..b7e548dea15 100644
--- a/addons/process/i18n/es_AR.po
+++ b/addons/process/i18n/es_AR.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/es_CL.po b/addons/process/i18n/es_CL.po
index a4441a559f9..4ce8d0c8ec6 100644
--- a/addons/process/i18n/es_CL.po
+++ b/addons/process/i18n/es_CL.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/es_CR.po b/addons/process/i18n/es_CR.po
index 2fc47f4be95..e84b52af219 100644
--- a/addons/process/i18n/es_CR.po
+++ b/addons/process/i18n/es_CR.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
"Language: \n"
#. module: process
diff --git a/addons/process/i18n/et.po b/addons/process/i18n/et.po
index 4816d35ca5a..a007f19e9a1 100644
--- a/addons/process/i18n/et.po
+++ b/addons/process/i18n/et.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/fi.po b/addons/process/i18n/fi.po
index 3872fbbb063..4e5966a4ca3 100644
--- a/addons/process/i18n/fi.po
+++ b/addons/process/i18n/fi.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/fr.po b/addons/process/i18n/fr.po
index 7aee9fbe467..d79fa3c1c1e 100644
--- a/addons/process/i18n/fr.po
+++ b/addons/process/i18n/fr.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/gl.po b/addons/process/i18n/gl.po
index 75c98c376d9..48c75307d90 100644
--- a/addons/process/i18n/gl.po
+++ b/addons/process/i18n/gl.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/hi.po b/addons/process/i18n/hi.po
index 8d89616f26b..bd42d103519 100644
--- a/addons/process/i18n/hi.po
+++ b/addons/process/i18n/hi.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/hr.po b/addons/process/i18n/hr.po
index 2b96a2ac0fd..5581507896f 100644
--- a/addons/process/i18n/hr.po
+++ b/addons/process/i18n/hr.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
"Language: hr\n"
#. module: process
diff --git a/addons/process/i18n/hu.po b/addons/process/i18n/hu.po
index 99bbe4c6030..5ac5b8a5401 100644
--- a/addons/process/i18n/hu.po
+++ b/addons/process/i18n/hu.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/id.po b/addons/process/i18n/id.po
index 8badbf8b7d8..f16c9616f18 100644
--- a/addons/process/i18n/id.po
+++ b/addons/process/i18n/id.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/it.po b/addons/process/i18n/it.po
index 606afd7fd43..9235db05af0 100644
--- a/addons/process/i18n/it.po
+++ b/addons/process/i18n/it.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/ja.po b/addons/process/i18n/ja.po
index 3c84adafcaf..24adcdc7825 100644
--- a/addons/process/i18n/ja.po
+++ b/addons/process/i18n/ja.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/ko.po b/addons/process/i18n/ko.po
index a8da2d1b114..2ede3cc39dc 100644
--- a/addons/process/i18n/ko.po
+++ b/addons/process/i18n/ko.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/lt.po b/addons/process/i18n/lt.po
index 7f9f6534a4c..49cf211691e 100644
--- a/addons/process/i18n/lt.po
+++ b/addons/process/i18n/lt.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/mn.po b/addons/process/i18n/mn.po
index 2f3bfd7fa58..344b8aaa667 100644
--- a/addons/process/i18n/mn.po
+++ b/addons/process/i18n/mn.po
@@ -20,8 +20,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/nl.po b/addons/process/i18n/nl.po
index a73416976aa..51ddebd5d17 100644
--- a/addons/process/i18n/nl.po
+++ b/addons/process/i18n/nl.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/nl_BE.po b/addons/process/i18n/nl_BE.po
index 2d904730f20..c73996c9b6d 100644
--- a/addons/process/i18n/nl_BE.po
+++ b/addons/process/i18n/nl_BE.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/pl.po b/addons/process/i18n/pl.po
index 8eed73d8907..88700b7d88a 100644
--- a/addons/process/i18n/pl.po
+++ b/addons/process/i18n/pl.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/pt.po b/addons/process/i18n/pt.po
index b9fdc9846db..723c4b5e3fe 100644
--- a/addons/process/i18n/pt.po
+++ b/addons/process/i18n/pt.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/pt_BR.po b/addons/process/i18n/pt_BR.po
index 1ff2d4fab85..2541f6cf928 100644
--- a/addons/process/i18n/pt_BR.po
+++ b/addons/process/i18n/pt_BR.po
@@ -7,14 +7,15 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2012-02-08 00:36+0000\n"
-"PO-Revision-Date: 2011-01-17 18:46+0000\n"
-"Last-Translator: Emerson <Unknown>\n"
+"PO-Revision-Date: 2012-07-28 19:10+0000\n"
+"Last-Translator: Fábio Martinelli - http://zupy.com.br "
+"<webmaster@guaru.net>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
@@ -256,7 +257,7 @@ msgstr "Processo"
#. module: process
#: view:process.node:0
msgid "Search ProcessNode"
-msgstr ""
+msgstr "Procurar Processo/Nó"
#. module: process
#: view:process.node:0
diff --git a/addons/process/i18n/ro.po b/addons/process/i18n/ro.po
index 2615166c3ed..2f9a0f1b5c5 100644
--- a/addons/process/i18n/ro.po
+++ b/addons/process/i18n/ro.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/ru.po b/addons/process/i18n/ru.po
index d31fb87b703..3aed803c6df 100644
--- a/addons/process/i18n/ru.po
+++ b/addons/process/i18n/ru.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/sk.po b/addons/process/i18n/sk.po
index 3f366d7a34e..d8ecdac5172 100644
--- a/addons/process/i18n/sk.po
+++ b/addons/process/i18n/sk.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/sl.po b/addons/process/i18n/sl.po
index a73766c7a0d..35cf18b30f6 100644
--- a/addons/process/i18n/sl.po
+++ b/addons/process/i18n/sl.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/sq.po b/addons/process/i18n/sq.po
index f1f9039f6ed..b73768d1916 100644
--- a/addons/process/i18n/sq.po
+++ b/addons/process/i18n/sq.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/sr.po b/addons/process/i18n/sr.po
index 5a9f9b183d7..d46e50844f2 100644
--- a/addons/process/i18n/sr.po
+++ b/addons/process/i18n/sr.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/sr@latin.po b/addons/process/i18n/sr@latin.po
index 6b376655bf3..0ad6f4d252d 100644
--- a/addons/process/i18n/sr@latin.po
+++ b/addons/process/i18n/sr@latin.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/sv.po b/addons/process/i18n/sv.po
index 1e21592d0a4..b1bf7a9d00e 100644
--- a/addons/process/i18n/sv.po
+++ b/addons/process/i18n/sv.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/tlh.po b/addons/process/i18n/tlh.po
index e5229757094..e63a1c1a5e7 100644
--- a/addons/process/i18n/tlh.po
+++ b/addons/process/i18n/tlh.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/tr.po b/addons/process/i18n/tr.po
index d407a900c03..a7e5bb3ac6e 100644
--- a/addons/process/i18n/tr.po
+++ b/addons/process/i18n/tr.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/uk.po b/addons/process/i18n/uk.po
index ab50e3e6890..d33d881d50d 100644
--- a/addons/process/i18n/uk.po
+++ b/addons/process/i18n/uk.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/vi.po b/addons/process/i18n/vi.po
index 3e973eb4087..e3c3bff2a60 100644
--- a/addons/process/i18n/vi.po
+++ b/addons/process/i18n/vi.po
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/zh_CN.po b/addons/process/i18n/zh_CN.po
index 48cd856f0ac..fca3f4035ac 100644
--- a/addons/process/i18n/zh_CN.po
+++ b/addons/process/i18n/zh_CN.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/i18n/zh_TW.po b/addons/process/i18n/zh_TW.po
index 465228134f1..7d875e7a464 100644
--- a/addons/process/i18n/zh_TW.po
+++ b/addons/process/i18n/zh_TW.po
@@ -13,8 +13,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-07-14 05:49+0000\n"
-"X-Generator: Launchpad (build 15614)\n"
+"X-Launchpad-Export-Date: 2012-08-28 06:07+0000\n"
+"X-Generator: Launchpad (build 15864)\n"
#. module: process
#: model:ir.model,name:process.model_process_node
diff --git a/addons/process/process.py b/addons/process/process.py
index f9744608c50..fa7596287a3 100644
--- a/addons/process/process.py
+++ b/addons/process/process.py
@@ -195,8 +195,8 @@ class process_process(osv.osv):
if nodes[nid].get('directory_id', False):
resource['directory'] = self.pool.get('document.directory').get_resource_path(cr, uid, nodes[nid]['directory_id'], ref_model, ref_id)
- resource['name'] = refobj.name_get(context)[0][1]
- resource['perm'] = pool.get(ref_model).perm_read(cr, uid, [ref_id], context)[0]
+ resource['name'] = pool.get(ref_model).name_get(cr, uid, [ref_id], context=context)[0][1]
+ resource['perm'] = pool.get(ref_model).perm_read(cr, uid, [ref_id], context=context)[0]
for r in relatives:
node = nodes[r]
diff --git a/addons/process/process_view.xml b/addons/process/process_view.xml
index c5c152f9930..7e0f9c25f47 100644
--- a/addons/process/process_view.xml
+++ b/addons/process/process_view.xml
@@ -11,7 +11,6 @@
<record model="ir.ui.view" id="view_process_form">
<field name="name">process.process.form</field>
<field name="model">process.process</field>
- <field name="type">form</field>
<field name="arch" type="xml">
<form string="Process" version="7.0">
<sheet>
@@ -97,7 +96,6 @@
<record model="ir.ui.view" id="view_process_tree">
<field name="name">process.process.tree</field>
<field name="model">process.process</field>
- <field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Process">
<field name="name"/>
@@ -110,15 +108,10 @@
<record id="view_process_filter" model="ir.ui.view">
<field name="name">process.process.filter</field>
<field name="model">process.process</field>
- <field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Process">
- <group>
- <field name="name" string="Process"/>
- <separator orientation="vertical"/>
- <field name="model_id"/>
- </group>
- <newline/>
+ <field name="name" string="Process"/>
+ <field name="model_id"/>
<group expand="0" string="Group By...">
<filter string="Object" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'model_id'}"/>
</group>
@@ -142,7 +135,6 @@
<record model="ir.ui.view" id="view_process_node_tree">
<field name="name">process.node.tree</field>
<field name="model">process.node</field>
- <field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Process Nodes">
<field name="name"/>
@@ -157,7 +149,6 @@
<record model="ir.ui.view" id="view_process_node_form">
<field name="name">process.node.form</field>
<field name="model">process.node</field>
- <field name="type">form</field>
<field name="arch" type="xml">
<form string="Process Node" version="7.0">
<sheet layout="auto">
@@ -214,16 +205,11 @@
<record id="view_process_node_filter" model="ir.ui.view">
<field name="name">process.node.filter</field>
<field name="model">process.node</field>
- <field name="type">search</field>
<field name="arch" type="xml">
<search string="Search ProcessNode">
- <group>
- <field name="name" string="Process Node"/>
- <separator orientation="vertical"/>
- <field name="model_id"/>
- <field name="kind" />
- </group>
- <newline/>
+ <field name="name" string="Process Node"/>
+ <field name="kind" />
+ <field name="model_id"/>
<group expand="0" string="Group By...">
<filter string="Object" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'model_id'}"/>
<filter string="Kind Of Node" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'kind'}"/>
@@ -250,7 +236,6 @@
<record model="ir.ui.view" id="view_process_transition_tree">
<field name="name">process.transition.tree</field>
<field name="model">process.transition</field>
- <field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Process Transition">
<field name="name"/>
@@ -263,7 +248,6 @@
<record model="ir.ui.view" id="view_process_transition_form">
<field name="name">process.transition.form</field>
<field name="model">process.transition</field>
- <field name="type">form</field>
<field name="arch" type="xml">
<form string="Process Transition" version="7.0">
<sheet >
@@ -307,15 +291,11 @@
<record id="view_process_transition_filter" model="ir.ui.view">
<field name="name">process.transition.filter</field>
<field name="model">process.transition</field>
- <field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Process Transition">
- <group>
- <field name="name" string="Process Transition"/>
- <separator orientation="vertical"/>
- <field name="source_node_id"/>
- <field name="target_node_id"/>
- </group>
+ <field name="name" string="Process Transition"/>
+ <field name="source_node_id"/>
+ <field name="target_node_id"/>
<!--
<newline/>
<group expand="0" string="Group By..." colspan="4" col="4">
diff --git a/addons/process/static/src/css/process.css b/addons/process/static/src/css/process.css
new file mode 100644
index 00000000000..7442db9bc4a
--- /dev/null
+++ b/addons/process/static/src/css/process.css
@@ -0,0 +1,70 @@
+
+a.cta-a {
+ float: left;
+ padding: 5px 10px;
+ border: 1px solid #ccc;
+ border-radius: 5px;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ background: #eeeded url(/process/static/src/img/cta-a.gif) repeat-x;
+ box-shadow: 0 1px 0 #fff;
+ -moz-box-shadow: 0 1px 0 #fff;
+ -webkit-box-shadow: 0 1px 0 #fff;
+ color: #8c8c8c;
+ font-size: 0.9em;
+ text-transform: uppercase;
+ font-weight: bold;
+ text-shadow: #fff 0 1px 0;
+ margin: 2px;
+}
+
+a.cta-a span {
+ float: left;
+ padding: 7px 0 5px 5px;
+ background-position: 0 50%;
+ background-repeat: no-repeat;
+ cursor: pointer;
+}
+
+a.cta-a strong {
+ display: block;
+ color: #393939;
+}
+.process-links {
+ padding: 5px 10px;
+ text-align: center;
+ display: table;
+ margin: auto;
+}
+.process-links a.cta-a {
+ display: table-cell;
+}
+.process_canvas{
+ border: 1px solid #aaa;
+ background-color:#FFF;
+}
+.process_canvas svg{
+ height:500px;!important;
+ padding:15px;
+}
+.oe_process {
+ height: 20px;
+ margin-top:3px;
+ padding: 0;
+ width: 24px;
+ cursor: pointer;
+ display: block;
+ background: url(/web/static/src/img/iconset-a-help.png) no-repeat center center;
+ float: left;
+}
+
+.process-help-text {
+ float: left;
+ padding:5px 10px;
+ min-height:56px;
+ font-size: 120%;
+}
+
+td.process_fields,button.toggle_fields span:last-child {
+ display: none;
+}
diff --git a/addons/process/static/src/img/button-a-a.png b/addons/process/static/src/img/button-a-a.png
new file mode 100644
index 00000000000..bd046bbbef7
--- /dev/null
+++ b/addons/process/static/src/img/button-a-a.png
Binary files differ
diff --git a/addons/process/static/src/img/cta-a.gif b/addons/process/static/src/img/cta-a.gif
new file mode 100644
index 00000000000..daa561e29f5
--- /dev/null
+++ b/addons/process/static/src/img/cta-a.gif
Binary files differ
diff --git a/addons/process/static/src/img/iconset-a-help.gif b/addons/process/static/src/img/iconset-a-help.gif
new file mode 100644
index 00000000000..5400acec57b
--- /dev/null
+++ b/addons/process/static/src/img/iconset-a-help.gif
Binary files differ
diff --git a/addons/process/static/src/img/node-current.png b/addons/process/static/src/img/node-current.png
new file mode 100644
index 00000000000..51f86b04c78
--- /dev/null
+++ b/addons/process/static/src/img/node-current.png
Binary files differ
diff --git a/addons/process/static/src/img/node-gray.png b/addons/process/static/src/img/node-gray.png
new file mode 100644
index 00000000000..972013540cf
--- /dev/null
+++ b/addons/process/static/src/img/node-gray.png
Binary files differ
diff --git a/addons/process/static/src/img/node-subflow-gray.png b/addons/process/static/src/img/node-subflow-gray.png
new file mode 100644
index 00000000000..ffafe1bd681
--- /dev/null
+++ b/addons/process/static/src/img/node-subflow-gray.png
Binary files differ
diff --git a/addons/process/static/src/img/node-subflow.png b/addons/process/static/src/img/node-subflow.png
new file mode 100644
index 00000000000..fd2a480204d
--- /dev/null
+++ b/addons/process/static/src/img/node-subflow.png
Binary files differ
diff --git a/addons/process/static/src/img/node.png b/addons/process/static/src/img/node.png
new file mode 100644
index 00000000000..853ac85cd56
--- /dev/null
+++ b/addons/process/static/src/img/node.png
Binary files differ
diff --git a/addons/process/static/src/js/process.js b/addons/process/static/src/js/process.js
new file mode 100644
index 00000000000..bbf9080de95
--- /dev/null
+++ b/addons/process/static/src/js/process.js
@@ -0,0 +1,249 @@
+openerp.process = function (instance) {
+var QWeb = instance.web.qweb,
+ _t = instance.web._t;
+instance.web.ViewManager.include({
+ start: function() {
+ var self = this;
+ var _super = this._super();
+ this.process_help = this.action ? this.action.help : '';
+ self.process_help = $(this.process_help).text();
+ if(this.action) {
+ this.process_model = this.action.res_model;
+ } else {
+ this.process_model = this.dataset.model;
+ }
+ this.$el.on('click', '.oe_process', function(ev) { self.initialize_process_view(ev);});
+ return _super;
+ },
+ initialize_process_view: function(ev) {
+ var self = this;
+ this.record_id = false;
+ if(this.active_view == 'form') {
+ this.record_id = this.views[this.active_view].controller.datarecord.id;
+ }
+ this.process_get_object().pipe(function(process) {
+ if(process && process.length) {
+ if(process.length > 1) {
+ self.process_selection = process;
+ } else {
+ self.process_id = process[0][0],
+ self.process_title = process[0][1];
+ }
+ }
+ return $.Deferred().resolve();
+ }).pipe(function() {
+ var def = $.Deferred();
+ if(self.process_id) {
+ $.when(self.process_graph_get()).done(function(res) {
+ self.process_notes = res.notes;
+ self.process_title = res.name;
+ self.process_subflows = _(res.nodes).chain()
+ .filter(function (node) { return node['subflow'] !== false; })
+ .uniq(false, function (node) { return node['subflow'][0]; }).value();
+ self.process_related = res.related;
+ def.resolve(res);
+ });
+ } else def.resolve();
+ return def.promise();
+ }).done(function(res) {
+ $.when(self.process_render_view()).done(function() {
+ if(res) {
+ self.process_draw_graph(res);
+ }
+ });
+ });
+ },
+ process_graph_get: function() {
+ var self = this;
+ var def = $.Deferred();
+ this.process_id = parseInt(this.process_id, 10);
+ this.process_dataset
+ .call("graph_get",[self.process_id, self.model || self.dataset.model, self.record_id, [80,80,150,100], self.session.user_context])
+ .done(function(res) {
+ self.process_dataset
+ .call("search_by_model",[self.model || self.dataset.model, self.session.user_context])
+ .done(
+ function(r) {
+ res['related'] = r;
+ def.resolve(res);
+ });
+ });
+ return def.promise();
+ },
+ process_get_object : function() {
+ var self = this,
+ def = $.Deferred();
+ if(this.process_id)
+ return def.resolve().promise();
+ this.process_dataset = new instance.web.DataSet(self, "process.process", self.session.user_context);
+ this.process_dataset
+ .call("search_by_model", [self.process_model,self.session.user_context])
+ .done(function(res) {
+ if (!res.length) {
+ self.process_model = false;
+ self.process_get_object().done(def.resolve);
+ }
+ else {
+ def.resolve(res);
+ }
+ })
+ .fail(def.reject);
+ return def.promise();
+ },
+ process_render_view : function() {
+ var self = this;
+ this.$el.html(QWeb.render("process.ProcessView", this));
+ this.$el.addClass('oe_view_process').css({'background-color':'#F0EEEE'});
+ this.$el.find('#edit_process').click(function() {
+ self.process_edit_view();
+ });
+ var $parent = this.getParent().$el;
+ $parent.find('#change_process').click(function() {
+ self.process_selection = false,
+ self.process_id = $parent.find('#select_process').val(),
+ self.process_title = $.trim($parent.find('#select_process option:selected').text());
+ self.initialize_process_view();
+ });
+ this.$el.find(".process_subflow").click(function() {
+ self.process_id = this.id;
+ self.initialize_process_view();
+ });
+ },
+ process_draw_graph : function(result) {
+ var self = this;
+ var res_nodes = result['nodes'];
+ var res_edges = result['transitions'];
+ var id_to_node = {};
+ var canvas = $('div.process_canvas').empty().get(0);
+ var style = {
+ edge_color: "#A0A0A0",
+ edge_label_font_size: 10,
+ edge_width: 2,
+ edge_spacing: 40,
+ edge_loop_radius: 200,
+
+ node_label_color: "#333",
+ node_label_font_size: 12,
+ node_outline_color: "#333",
+ node_outline_width: 1,
+ node_outline_color: "#F5F5F5",
+ node_outline_width: 0,
+ node_selected_width: 0,
+ node_size_x: 150,
+ node_size_y: 100,
+
+ gray: "#DCDCDC",
+ white: "#FFF",
+ viewport_margin: 50
+ };
+ var r = new Raphael(canvas,'100%','100%');
+ var graph = new CuteGraph(r,style,canvas.parentNode);
+ var render_process = function(r,nodes){
+ //For Image
+ var image_node = nodes.kind == "subflow" ? "node-subflow" : "node";
+ image_node = nodes.gray ? image_node + "-gray" : image_node;
+ image_node = nodes.active ? 'node-current': image_node;
+ var img_src = '/web_process/static/src/img/'+ image_node + '.png';
+ var image = r['image'](img_src, nodes.x-25, nodes.y,150, 100).attr({"cursor": "default"}) .mousedown(function() { return false; });
+ //For Node
+ var process_node = r['rect'](nodes.x, nodes.y, 150, 150).attr({stroke: "none"});
+ // Node text
+ if(nodes.name.length > 18){
+ var text = nodes.name.substr(0,16) + '...'
+ }
+ var node_text = r.text(nodes.x+60, nodes.y+10,(text || nodes.name.substr(0,18))).attr({"fill": "#fff","font-weight": "bold", "cursor": "default","title":nodes.name});
+ //Node Description
+ var new_notes = nodes.notes;
+ if(nodes.notes.length > 25) {
+ var to;
+ var temp_str = new_notes = '';
+ var from = to = 0;
+ while (1) {
+ from = 25;
+ temp_str = nodes.notes.substr(to, 25);
+ if (temp_str.lastIndexOf(" ") < 25 && temp_str.length >= 25) {
+ from = temp_str.lastIndexOf(" ");
+ }
+ new_notes += "\n" + nodes.notes.substr(to, from);
+ if (new_notes.length > 80){
+ break;
+ }
+ to += from;
+ }
+ }
+ if(nodes.res)
+ new_notes = nodes.res.name + '\n' + new_notes;
+ if(nodes.notes.length > 60){
+ var notes = new_notes.substring(0,60) +'..';
+ }
+ r.text(nodes.x+60, nodes.y+30, (notes || new_notes)).attr({"title":nodes.notes,"cursor": "default"});
+ if(nodes.menu) {
+ r['image']('/web/static/src/img/icons/gtk-jump-to.png', nodes.x+100, nodes.y+75, 16, 16)
+ .attr({"cursor": "pointer", "title": nodes.menu.name})
+ .click(function() {
+ self.process_jump_to_view(nodes.res_model, nodes.menu.id);
+ });
+ }
+ var process_set =r.set().push(process_node);
+ process_set.mousedown(function() {
+ return false;
+ });
+ return process_set;
+ }
+ _.each(res_nodes, function(node,id) {
+ node['res_model'] = self.model,
+ node['res_id'] = false,
+ node['color'] = 'gray'
+ var n = new CuteNode(
+ graph,
+ node.x + 50, //FIXME the +50 should be in the layout algorithm
+ node.y + 50,
+ CuteGraph.wordwrap("", 14));
+ n.id = id;
+ id_to_node[id] = n;
+ return render_process(r,node);
+ });
+ _.each(res_edges, function(edge) {
+ var e = new CuteEdge(
+ graph,
+ CuteGraph.wordwrap(" ",0),
+ id_to_node[edge.source],
+ id_to_node[edge.target] || id_to_node[edge.source]);
+ e.id = edge.id;
+ });
+ },
+ process_jump_to_view: function(model,id) {
+ var self = this;
+ var dataset = new instance.web.DataSet(this, 'ir.values', this.session.user_context);
+ var action_manager = new instance.web.ActionManager(self);
+ dataset.call('get',
+ ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context],
+ function(res) {
+ var action = res[0][res[0].length - 1];
+ self.rpc("/web/action/load", {
+ action_id: action.id,
+ context: dataset.context
+ }, function(result) {
+ action_manager.replace(self.$el);
+ action_manager.do_action(result.result);
+ })
+ });
+ },
+ process_edit_view: function() {
+ var self = this;
+ var pop = new instance.web.form.FormOpenPopup(self);
+ pop.show_element(
+ self.process_dataset.model,
+ self.process_id,
+ self.context || self.dataset.context,
+ {
+ title: _t('Process')
+ });
+ var form_controller = pop.view_form;
+ pop.on_write_completed.add_last(function() {
+ self.initialize_process_view();
+ });
+ }
+});
+};
+// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax:
diff --git a/addons/process/static/src/xml/process.xml b/addons/process/static/src/xml/process.xml
new file mode 100644
index 00000000000..b1a39aa6ce8
--- /dev/null
+++ b/addons/process/static/src/xml/process.xml
@@ -0,0 +1,93 @@
+<template>
+<!-- vim:fdl=1:
+-->
+<t t-extend="ViewManagerAction">
+ <t t-jquery="h2.oe_view_title" t-operation="after">
+ <t t-if="widget.session.debug &amp;&amp; widget.flags.display_title !== false">
+ <a class="oe_process" title="Process View" href="javascript: void(0)"></a>
+ </t>
+ </t>
+</t>
+<t t-name="process.ProcessView">
+ <table class="view" border="0" width="auto" height="auto" cellpadding="0" cellspacing="0">
+ <tr>
+ <td width="70%" valign="top" class="fields collapsed">
+ <div class="oe_view_manager oe_view_manager_current">
+ <div class="oe_view_manager_header" style="padding: 8px;">
+ <div class="oe_header_row">
+ <h2 class="oe_view_title">
+ <span class="oe_view_title_text oe_breadcrumb_title"><t t-esc="action.name"/> (<t t-esc="action.res_model"/>)</span>
+ </h2>
+ </div>
+ </div>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td style="padding-left:10px;">
+ <p><t t-esc="process_help"/></p>
+ </td>
+ </tr>
+ <tr>
+ <td style="padding-left:10px;">
+ <h2> <t t-esc="process_title"/> Process </h2>
+ <t t-if="process_notes">
+ <p>
+ <strong>Notes:</strong> <t t-esc="process_notes"/>
+ </p>
+ <p>
+ <strong>Last modified by:</strong> N/A
+ </p>
+ <t t-if="process_subflows.length">
+ <strong>Subflows:</strong>
+ <t t-foreach="process_subflows" t-as="subflow">
+ <t t-if="subflow.subflow[0] != process_id">
+ <p>
+ <a class="oe_bold process_subflow" t-att-id="subflow.subflow[0]" href="javascript: void(0)">
+ <t t-esc="subflow.subflow[1]"/>
+ </a>
+ </p>
+ </t>
+ </t>
+ </t>
+ <t t-if="process_related.length and process_related[0][0] != process_id">
+ <strong>Related:</strong>
+ <p>
+ <a class="oe_bold process_subflow" t-att-id="process_related[0][0]" href="javascript: void(0)">
+ <t t-esc="process_related[0][1]"/>
+ </a>
+ </p>
+ </t>
+ </t>
+ </td>
+ </tr>
+ <tr t-if="process_selection">
+ <td style="padding-left:10px;">
+ <fieldset>
+ <legend>
+ Select Process
+ </legend>
+ <select id="select_process">
+ <t t-foreach="process_selection" t-as="prc">
+ <option t-att-value="prc[0]">
+ <t t-esc="prc[1]"/>
+ </option>
+ </t>
+ </select>
+ <button class="oe_button oe_highlight" id="change_process">Select</button>
+ </fieldset>
+ </td>
+ </tr>
+ <tr t-if="process_id">
+ <td>
+ <div class="process_canvas"></div>
+ </td>
+ </tr>
+ <tr t-if="process_id">
+ <td style="padding-left:10px;">
+ <button class="oe_button oe_highlight" id="edit_process">Edit Process</button>
+ </td>
+ </tr>
+ </table>
+</t>
+</template>