diff --git a/trytond/ir/actions.xml b/trytond/ir/actions.xml index 866f3e44fc..d5281c971c 100644 --- a/trytond/ir/actions.xml +++ b/trytond/ir/actions.xml @@ -1,7 +1,7 @@ - + ir.actions.actions.form ir.actions.actions @@ -58,7 +58,7 @@ - ir.actions.report.form @@ -110,7 +110,7 @@ - ir.actions.act_window.form @@ -182,7 +182,7 @@ - ir.actions.wizard.form @@ -234,7 +234,7 @@ - diff --git a/trytond/ir/attachment.xml b/trytond/ir/attachment.xml index c0987edc89..29257a5bc8 100644 --- a/trytond/ir/attachment.xml +++ b/trytond/ir/attachment.xml @@ -54,7 +54,7 @@ - diff --git a/trytond/ir/cron.xml b/trytond/ir/cron.xml index 61819a90eb..cc21058066 100644 --- a/trytond/ir/cron.xml +++ b/trytond/ir/cron.xml @@ -64,7 +64,7 @@ - diff --git a/trytond/ir/exports.xml b/trytond/ir/exports.xml index 4ad90c20ff..49be0a1ab2 100644 --- a/trytond/ir/exports.xml +++ b/trytond/ir/exports.xml @@ -48,7 +48,7 @@ - diff --git a/trytond/ir/ir.xml b/trytond/ir/ir.xml index 12ebe1a8bc..057da56bf9 100644 --- a/trytond/ir/ir.xml +++ b/trytond/ir/ir.xml @@ -2,6 +2,6 @@ - + diff --git a/trytond/ir/model.xml b/trytond/ir/model.xml index 59941a332e..e58ef27203 100644 --- a/trytond/ir/model.xml +++ b/trytond/ir/model.xml @@ -57,7 +57,7 @@ - ir.model.fields.form @@ -107,7 +107,7 @@ - ir.model.access.tree @@ -161,7 +161,7 @@ - diff --git a/trytond/ir/property.xml b/trytond/ir/property.xml index f4023d76e2..9f7a9ddfa5 100644 --- a/trytond/ir/property.xml +++ b/trytond/ir/property.xml @@ -53,7 +53,7 @@ - Properties @@ -75,7 +75,7 @@ - diff --git a/trytond/ir/rule.xml b/trytond/ir/rule.xml index fc1980d6a8..56ae16500d 100644 --- a/trytond/ir/rule.xml +++ b/trytond/ir/rule.xml @@ -55,7 +55,7 @@ - ir.rule.form diff --git a/trytond/ir/sequence.xml b/trytond/ir/sequence.xml index 3927633977..1dd52c1df9 100644 --- a/trytond/ir/sequence.xml +++ b/trytond/ir/sequence.xml @@ -1,7 +1,7 @@ - + ir.sequence.form ir.sequence diff --git a/trytond/ir/translation.xml b/trytond/ir/translation.xml index df5f58262c..7c4fd5bf3b 100644 --- a/trytond/ir/translation.xml +++ b/trytond/ir/translation.xml @@ -53,7 +53,7 @@ - diff --git a/trytond/ir/values.xml b/trytond/ir/values.xml index 7db70eb195..0d0a758b0b 100644 --- a/trytond/ir/values.xml +++ b/trytond/ir/values.xml @@ -57,7 +57,7 @@ - diff --git a/trytond/res/lang.xml b/trytond/res/lang.xml index b2b5a67dcf..7e800fca0f 100644 --- a/trytond/res/lang.xml +++ b/trytond/res/lang.xml @@ -34,7 +34,7 @@ - diff --git a/trytond/res/request.xml b/trytond/res/request.xml index 0fb25201ea..390c5c06ca 100644 --- a/trytond/res/request.xml +++ b/trytond/res/request.xml @@ -83,7 +83,7 @@ - res.request.link.form diff --git a/trytond/res/res.xml b/trytond/res/res.xml index df803941bb..34c4dfd13c 100644 --- a/trytond/res/res.xml +++ b/trytond/res/res.xml @@ -1,6 +1,6 @@ - + diff --git a/trytond/res/users.xml b/trytond/res/users.xml index 96de8437f5..fee4fcfc15 100644 --- a/trytond/res/users.xml +++ b/trytond/res/users.xml @@ -77,7 +77,7 @@ - res.group.form @@ -133,7 +133,7 @@ - res.role.form @@ -194,9 +194,9 @@ - - diff --git a/trytond/tools/convert.py b/trytond/tools/convert.py index a03bdc31fb..566b69eb89 100644 --- a/trytond/tools/convert.py +++ b/trytond/tools/convert.py @@ -770,13 +770,11 @@ def convert_xml_import_dom(cursor, module, xmlstream, idref=None, mode='init', #$$ # Notes: -# - classe monolythique vs instancier des sous-classe par type de record -# (que l'on re-reference a la volee des qu'on lit le debut du record). -# - utilser des pointeur de fct plutot que que inTitle=1 + # - analyser le code _update, source d'amelioration # - ajouter un handler d'exception # - faire un cache en debut de traitement : {xml_id: (db_id, model)} - +# - prevoir du cache sur les action pour booster la creation des menuitems # tuto : http://pyxml.sourceforge.net/topics/howto/node14.html from xml import sax @@ -820,10 +818,17 @@ class MenuitemTagHandler: if values.get('action') : type_attr = attributes.get('type', 'act_window').encode('utf8') + action_id = self.mh.get_id(values['action']) values['action'] = "ir.actions.%s,%d" %\ - (type_attr, self.mh.get_id(values['action'])) + (type_attr, action_id) + + + if not values.get('name'): + res = self.mh.pool.get('ir.actions.act_window').read( + self.mh.cursor, self.mh.user, action_id, ['name']) + values['name'] = res['name'] + - print values self.values = values diff --git a/trytond/workflow/workflow.xml b/trytond/workflow/workflow.xml index 07178f7c94..f007a1d763 100644 --- a/trytond/workflow/workflow.xml +++ b/trytond/workflow/workflow.xml @@ -1,7 +1,7 @@ - + workflow.form workflow @@ -51,7 +51,7 @@ - workflow.activity.form @@ -133,7 +133,7 @@ - workflow.transition.form @@ -190,7 +190,7 @@ - workflow.instance.form @@ -236,7 +236,7 @@ - workflow.workitem.form @@ -287,7 +287,7 @@ -