diff --git a/bin/addons/base/base_update.xml b/bin/addons/base/base_update.xml index 26da68633f4..622d570d3d3 100644 --- a/bin/addons/base/base_update.xml +++ b/bin/addons/base/base_update.xml @@ -79,8 +79,10 @@ + context="{'user_id': self, 'user_preference': 1}" groups="base.group_multi_company"/> + @@ -114,12 +116,14 @@ - + - + + + @@ -148,7 +152,7 @@ - + @@ -159,10 +163,10 @@ search - - - - + + + + diff --git a/bin/addons/base/i18n/de.po b/bin/addons/base/i18n/de.po index 775438ef1c9..89a660d7220 100644 --- a/bin/addons/base/i18n/de.po +++ b/bin/addons/base/i18n/de.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-12-18 08:39+0000\n" -"PO-Revision-Date: 2010-08-24 04:52+0000\n" -"Last-Translator: Ferdinand @ ChriCar \n" +"PO-Revision-Date: 2010-08-25 05:51+0000\n" +"Last-Translator: Ferdinand-chricar \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: 2010-08-25 03:51+0000\n" +"X-Launchpad-Export-Date: 2010-08-26 03:53+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/i18n/hr.po b/bin/addons/base/i18n/hr.po index c7b57254a67..c289c07a59e 100644 --- a/bin/addons/base/i18n/hr.po +++ b/bin/addons/base/i18n/hr.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-12-18 08:39+0000\n" -"PO-Revision-Date: 2010-08-24 05:46+0000\n" +"PO-Revision-Date: 2010-08-26 06:44+0000\n" "Last-Translator: Goran Kliska \n" "Language-Team: openerp-translators\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-25 03:51+0000\n" +"X-Launchpad-Export-Date: 2010-08-27 03:37+0000\n" "X-Generator: Launchpad (build Unknown)\n" "Language: hr\n" diff --git a/bin/addons/base/i18n/it.po b/bin/addons/base/i18n/it.po index 3a5c77df161..35d7d297e01 100644 --- a/bin/addons/base/i18n/it.po +++ b/bin/addons/base/i18n/it.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-12-18 08:39+0000\n" -"PO-Revision-Date: 2010-08-24 05:43+0000\n" +"PO-Revision-Date: 2010-08-26 06:37+0000\n" "Last-Translator: OpenERP Administrators \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: 2010-08-25 03:51+0000\n" +"X-Launchpad-Export-Date: 2010-08-27 03:37+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/i18n/ja.po b/bin/addons/base/i18n/ja.po index c4eb2f68dec..da3ae552e65 100644 --- a/bin/addons/base/i18n/ja.po +++ b/bin/addons/base/i18n/ja.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-server\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2009-12-18 08:39+0000\n" -"PO-Revision-Date: 2010-08-24 05:38+0000\n" +"PO-Revision-Date: 2010-08-26 06:47+0000\n" "Last-Translator: Harry (Open ERP) \n" "Language-Team: Japanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-08-25 03:51+0000\n" +"X-Launchpad-Export-Date: 2010-08-27 03:37+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/i18n/pt_BR.po b/bin/addons/base/i18n/pt_BR.po index 428bae6c3c7..fc7c4b76089 100644 --- a/bin/addons/base/i18n/pt_BR.po +++ b/bin/addons/base/i18n/pt_BR.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: pt_BR\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-12-18 08:39+0000\n" -"PO-Revision-Date: 2010-08-24 05:48+0000\n" +"PO-Revision-Date: 2010-08-26 06:38+0000\n" "Last-Translator: OpenERP Administrators \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: 2010-08-25 03:52+0000\n" +"X-Launchpad-Export-Date: 2010-08-27 03:37+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/i18n/sv.po b/bin/addons/base/i18n/sv.po index 714da197d2a..8a1dafae5a7 100644 --- a/bin/addons/base/i18n/sv.po +++ b/bin/addons/base/i18n/sv.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-12-18 08:39+0000\n" -"PO-Revision-Date: 2010-08-24 05:34+0000\n" +"PO-Revision-Date: 2010-08-26 06:50+0000\n" "Last-Translator: Anders Wallenquist \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: 2010-08-25 03:51+0000\n" +"X-Launchpad-Export-Date: 2010-08-27 03:37+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/i18n/uk.po b/bin/addons/base/i18n/uk.po index 1aa0b90de61..8c1a9984849 100644 --- a/bin/addons/base/i18n/uk.po +++ b/bin/addons/base/i18n/uk.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.0\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-12-18 08:39+0000\n" -"PO-Revision-Date: 2010-08-24 05:41+0000\n" +"PO-Revision-Date: 2010-08-26 06:41+0000\n" "Last-Translator: Fabien (Open ERP) \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: 2010-08-25 03:51+0000\n" +"X-Launchpad-Export-Date: 2010-08-27 03:37+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/i18n/zh_CN.po b/bin/addons/base/i18n/zh_CN.po index 5de537f9c40..b634346da8f 100644 --- a/bin/addons/base/i18n/zh_CN.po +++ b/bin/addons/base/i18n/zh_CN.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2009-12-18 08:39+0000\n" -"PO-Revision-Date: 2010-08-24 05:44+0000\n" +"PO-Revision-Date: 2010-08-26 06:49+0000\n" "Last-Translator: Eleanor Chen \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: 2010-08-25 03:52+0000\n" +"X-Launchpad-Export-Date: 2010-08-27 03:38+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/ir/ir.xml b/bin/addons/base/ir/ir.xml index 75dd05c3c87..efc6fa88063 100644 --- a/bin/addons/base/ir/ir.xml +++ b/bin/addons/base/ir/ir.xml @@ -10,34 +10,71 @@ 20
- - - - - - - - - - - - - - - + + + + + + + + + + + + + ir.values.tree.action + ir.values + tree + + + + + + + + + + + + ir.values.search.action + ir.values + search + + + + + + + + + - Connect Actions To Client Events + Client Actions ir.actions.act_window ir.values form - form,tree - + tree,form + [('key','=','action')] {'read':'default','default_object':1} + + + + tree + + + + + + + form + + + @@ -89,8 +126,6 @@ {'read':'default'} - - @@ -239,8 +274,8 @@ form
- - + + @@ -256,6 +291,17 @@
+ + ir.actions.actions.search + ir.actions.actions + search + + + + + + + Actions @@ -263,6 +309,7 @@ ir.actions.actions form + @@ -276,8 +323,8 @@
- - + + @@ -298,14 +345,34 @@ tree - - + + + + + + + ir.filters.search + ir.filters + search + + + + + + + + + + + + + @@ -315,6 +382,7 @@ ir.filters form + @@ -329,8 +397,8 @@ form - - + + @@ -347,6 +415,23 @@ + + ir.actions.report.custom.search + ir.actions.report.custom + search + + + + + + + + + + + + + Report Custom @@ -354,6 +439,7 @@ ir.actions.report.custom form + @@ -418,6 +504,26 @@ + + ir.actions.report.xml.search + ir.actions.report.xml + search + + + + + + + + + + + + + + + + Report Xml @@ -425,6 +531,7 @@ ir.actions.report.xml form + @@ -503,11 +610,31 @@ + + ir.actions.windows.search + ir.actions.act_window + search + + + + + + + + + + + + + + + Window Actions ir.actions.act_window ir.actions.act_window form + @@ -542,20 +669,38 @@ form
- - - + + + - + + + + +
- + + + ir.actions.wizard.search + ir.actions.wizard + search + + + + + + + + + Wizards ir.actions.act_window ir.actions.wizard form + @@ -645,7 +790,7 @@ form
- + @@ -675,6 +820,18 @@ + + res.roles.search + res.roles + search + + + + + + + + Roles Structure ir.actions.act_window @@ -691,6 +848,7 @@ ir.actions.act_window res.roles form + @@ -821,6 +979,24 @@ + + ir.attachment.search + ir.attachment + search + + + + + + + + + + + + + + Attachments @@ -828,6 +1004,7 @@ ir.attachment form + @@ -1228,12 +1405,20 @@ form + + - - - - + + + + + + + + + + @@ -1309,28 +1494,43 @@
- - + + - - - - + + + + +
+ + + ir.ui.menu.search + ir.ui.menu + search + + + + + + + + Manage Menus ir.ui.menu form + - + @@ -1484,7 +1698,7 @@ - + @@ -1499,8 +1713,8 @@ - - + +
+ + Record rules + ir.rule + search + + + + + + + + Record Rules ir.rule form + - + Property multi-company @@ -1556,10 +1783,10 @@
- - - - + + + + @@ -1570,12 +1797,12 @@ - - + + - + @@ -1594,9 +1821,9 @@ - + - + @@ -1641,6 +1868,25 @@ + + + ir.actions.server.search + ir.actions.server + search + + + + + + + + + + + + + + Server Actions @@ -1649,6 +1895,7 @@ form tree,form + {'key':'server_action'} diff --git a/bin/addons/base/ir/ir_actions.py b/bin/addons/base/ir/ir_actions.py index b888906b5d7..3094b7935dc 100644 --- a/bin/addons/base/ir/ir_actions.py +++ b/bin/addons/base/ir/ir_actions.py @@ -210,12 +210,14 @@ class act_window(osv.osv): return res def _get_help_status(self, cr, uid, ids, name, arg, context={}): - cr.execute(""" SELECT action.id, - CASE WHEN r.uid IS NULL THEN True ELSE False END - AS help_status FROM ir_act_window action - LEFT JOIN ir_act_window_user_rel r ON - (action.id = r.act_id AND (r.uid IS NULL or r.uid= %s)) WHERE action.id = ANY(%s)""",(uid,ids,)) - return dict(cr.fetchall()) + activate_tips = self.pool.get('res.users').browse(cr, uid, uid).menu_tips + if activate_tips: + cr.execute(""" SELECT action.id, + CASE WHEN r.uid IS NULL THEN True ELSE False END + AS help_status FROM ir_act_window action + LEFT JOIN ir_act_window_user_rel r ON + (action.id = r.act_id AND (r.uid IS NULL or r.uid= %s)) WHERE action.id = ANY(%s)""",(uid,ids,)) + return dict(cr.fetchall()) _columns = { 'name': fields.char('Action Name', size=64, translate=True), diff --git a/bin/addons/base/ir/ir_model.py b/bin/addons/base/ir/ir_model.py index 39e5f7567c0..87cd37eec48 100644 --- a/bin/addons/base/ir/ir_model.py +++ b/bin/addons/base/ir/ir_model.py @@ -232,24 +232,7 @@ class ir_model_grid(osv.osv): ''' % (view_type,) for group in groups_br: - xml += '''''' % (group.id, ) + xml += '''''' % (group.id, ) xml += '''''' % (view_type,) result['arch'] = xml result['fields'] = self.fields_get(cr, uid, cols, context) diff --git a/bin/addons/base/ir/ir_translation.py b/bin/addons/base/ir/ir_translation.py index 85f4e5369f0..29c7ca308b4 100644 --- a/bin/addons/base/ir/ir_translation.py +++ b/bin/addons/base/ir/ir_translation.py @@ -64,20 +64,30 @@ class ir_translation(osv.osv): def _auto_init(self, cr, context={}): super(ir_translation, self)._auto_init(cr, context) + + # FIXME: there is a size limit on btree indexed values so we can't index src column with normal btree. cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_ltns',)) - if not cr.fetchone(): - cr.execute('CREATE INDEX ir_translation_ltns ON ir_translation (lang, type, name, src)') + if cr.fetchone(): + #temporarily removed: cr.execute('CREATE INDEX ir_translation_ltns ON ir_translation (name, lang, type, src)') + cr.execute('DROP INDEX ir_translation_ltns') cr.commit() + cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_lts',)) + if cr.fetchone(): + #temporarily removed: cr.execute('CREATE INDEX ir_translation_lts ON ir_translation (lang, type, src)') + cr.execute('DROP INDEX ir_translation_lts') + cr.commit() + + # add separate hash index on src (no size limit on values), as postgres 8.1+ is able to combine separate indexes + cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_src_hash_idx',)) + if not cr.fetchone(): + cr.execute('CREATE INDEX ir_translation_src_hash_idx ON ir_translation using hash (src)') cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_ltn',)) if not cr.fetchone(): - cr.execute('CREATE INDEX ir_translation_ltn ON ir_translation (lang, type, name)') + cr.execute('CREATE INDEX ir_translation_ltn ON ir_translation (name, lang, type)') cr.commit() - cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = %s', ('ir_translation_lts',)) - if not cr.fetchone(): - cr.execute('CREATE INDEX ir_translation_lts ON ir_translation (lang, type, src)') - cr.commit() + @tools.cache(skiparg=3, multi='ids') def _get_ids(self, cr, uid, name, tt, lang, ids): diff --git a/bin/addons/base/ir/workflow/workflow.py b/bin/addons/base/ir/workflow/workflow.py index dae77781503..8074d784e3c 100644 --- a/bin/addons/base/ir/workflow/workflow.py +++ b/bin/addons/base/ir/workflow/workflow.py @@ -146,11 +146,17 @@ class wkf_transition(osv.osv): _columns = { 'trigger_model': fields.char('Trigger Object', size=128), 'trigger_expr_id': fields.char('Trigger Expression', size=128), - 'signal': fields.char('Signal (button Name)', size=64), - 'role_id': fields.many2one('res.roles', 'Role Required'), - 'condition': fields.char('Condition', required=True, size=128), - 'act_from': fields.many2one('workflow.activity', 'Source Activity', required=True, select=True, ondelete='cascade'), - 'act_to': fields.many2one('workflow.activity', 'Destination Activity', required=True, select=True, ondelete='cascade'), + 'signal': fields.char('Signal (button Name)', size=64, + help="When the operation of transition comes from a button pressed in the client form, "\ + "signal tests the name of the pressed button. If signal is NULL, no button is necessary to validate this transition."), + 'role_id': fields.many2one('res.roles', 'Role Required', + help="The role that a user must have to validate this transition."), + 'condition': fields.char('Condition', required=True, size=128, + help="Expression to be satisfied if we want the transition done."), + 'act_from': fields.many2one('workflow.activity', 'Source Activity', required=True, select=True, ondelete='cascade', + help="Source activity. When this activity is over, the condition is tested to determine if we can start the ACT_TO activity."), + 'act_to': fields.many2one('workflow.activity', 'Destination Activity', required=True, select=True, ondelete='cascade', + help="The destination activity."), 'wkf_id': fields.related('act_from','wkf_id', type='many2one', relation='workflow', string='Workflow', select=True), } _defaults = { diff --git a/bin/addons/base/ir/workflow/workflow_view.xml b/bin/addons/base/ir/workflow/workflow_view.xml index 8431cdd43d7..a0f016e94c9 100644 --- a/bin/addons/base/ir/workflow/workflow_view.xml +++ b/bin/addons/base/ir/workflow/workflow_view.xml @@ -92,40 +92,56 @@ form - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -138,19 +154,33 @@ - - + + + workflow.activity.search + workflow.activity + search + + + + + + + + + + Activities workflow.activity form + @@ -167,8 +197,8 @@ form
- - + + @@ -186,22 +216,32 @@ - - - + + workflow.transition.search + workflow.transition + search + + + + + + + + - - Transitions - workflow.transition - form - - - + + Transitions + workflow.transition + form + + + +