Commit Graph

1720 Commits

Author SHA1 Message Date
Olivier Dony 7ebc5bdba3 [IMP] refactored translation system to merge web translations with addons translations
- Moved the web *.po files to /i18n to be consistent
  with the addons convention. Using /po was considered
  for a while because it played better with LP's auto-
  detection of PO Templates, but that is not necessary
  anymore, we now have full control on LP templates.

- In order to support addons that contain translations
  for both the web addon and the regular addon part,
  both kinds of translations are now merged in a single
  addon/i18n/addon.pot file. Terms that are used by
  the web part are now marked with a PO annotation:
     #. openerp-web
  so the web client can recognize them and only load
  the relevant translations in the browser memory.
  This is important because a complete PO file can
  be rather large, e.g. account/i18n/de.po = 400KB.

- The web translation export scripts were updated to
  behave properly for addons that have a non-web
  part, and will merge the web translation in the
  original POT file, annotating the web translations
  as needed. These scripts are Unix-only and meant
  to be used by OpenERP packagers when needed.

- The GetText spec says that PO auto-comments indicating
  the source location have this form:
   #: /path/to/file:lineno
  However OpenERP's POT export system defaults to a modified
  version of this format with an extra 'type' field:
   #: type:/path/to/file:lineno
  The babel extractors we use have the GetText format 
  hardcoded so a small patch is needed on the server
  to make it more lenient and accept the standard
  source annotation, defaulting to 'code' type.
  This does not matter for openerp-web, but makes sure
  the server will not fail to load the new PO files 
  that contain openerp-web translations with standard
  annotations.
  The patch for making the server more lenient was
  checked in trunk at revision 4002 
  rev-id odo@openerp.com-20120202143210-05p1w24t6u77cyv8

- The existing translation sync and export wizards for
  regular addons have not been updated to consider
  web addons, so for the time being we will have
  to export regular addons terms first, and run the
  web export script (gen_translations.sh) on the
  addons directory afterwards. This could be improved
  later.

As soon as this change is merged we will have to
perform a full update of addons translation
templates in order to include the web terms as well.

bzr revid: odo@openerp.com-20120202145603-ffo0il0qnfp3r6gt
2012-02-02 15:56:03 +01:00
Launchpad Translations on behalf of openerp 7e2bb94661 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120202055911-xdbu6vwggylcbpq1
bzr revid: launchpad_translations_on_behalf_of_openerp-20120202061434-l5xlutw7q5besmme
2012-02-02 06:14:34 +00:00
Fabien Meghazi eddfc1a56a [IMP] Upgraded jQuery UI from 1.8.9 to 1.8.17
lp bug: https://launchpad.net/bugs/916342 fixed

bzr revid: fme@openerp.com-20120201163312-htze3vpzb3opgnoy
2012-02-01 17:33:12 +01:00
Fabien Meghazi 5e7b30e996 [FIX] Do not FormView#do_show() twice on cold do_load_state()
bzr revid: fme@openerp.com-20120201154442-gwbdm99wy8qahwie
2012-02-01 16:44:42 +01:00
Florent Xicluna 228c817c33 [IMP] faster implementation for Root.find_handler.
bzr revid: florent.xicluna@gmail.com-20120201143032-pshpu4uhvl61nr9z
2012-02-01 15:30:32 +01:00
Fabien Meghazi 8abe9402e2 [REM] QWeb: removed xpath support
bzr revid: fme@openerp.com-20120201132217-h2i9a3g082i9ui9y
2012-02-01 14:22:17 +01:00
Xavier Morel 309dccbc1f [FIX] if no list limit is specified anywhere, default to 80 on listview initialization
lp bug: https://launchpad.net/bugs/923805 fixed

bzr revid: xmo@openerp.com-20120201131848-b0a0ity490s548c3
2012-02-01 14:18:48 +01:00
Fabien Meghazi ab447a4f13 [FIX] Use childnodes and not the whole extend node
bzr revid: fme@openerp.com-20120201124822-xo1msj0ou09o73uh
2012-02-01 13:48:22 +01:00
Fabien Meghazi 0839b0e4ee [FIX] QWeb template inheritance done right
bzr revid: fme@openerp.com-20120201122926-poh3q2157ra9tzjd
2012-02-01 13:29:26 +01:00
Launchpad Translations on behalf of openerp a6be92b62b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120201045611-6pg23l4ipzfnlpme
bzr revid: launchpad_translations_on_behalf_of_openerp-20120201051211-pvfvh4f562tv94rj
2012-02-01 05:12:11 +00:00
Antony Lesuisse 60c47d9f98 [FIX] restore support for session action used by edi
bzr revid: al@openerp.com-20120131205152-tbzx37vq3g4nef0p
2012-01-31 21:51:52 +01:00
Xavier Morel b9cb00f8de [IMP] change bounding function of tipsy to try to avoid tooltips being cut off
lp bug: https://launchpad.net/bugs/924286 fixed

bzr revid: xmo@openerp.com-20120131155208-ugzig1m90y4a86gk
2012-01-31 16:52:08 +01:00
Xavier Morel 4bee4fe7fc [ADD] support for id field type in search view
lp bug: https://launchpad.net/bugs/924296 fixed

bzr revid: xmo@openerp.com-20120131140210-b44fs5nfw109v81l
2012-01-31 15:02:10 +01:00
Xavier Morel 1ce98c610f [FIX] selection field default value selection in IE8
for some reason, @selected blows up (probably when converting the XML dom to HTML), but t-attf-selected works

bzr revid: xmo@openerp.com-20120131133807-wm549gl7ilg50uf7
2012-01-31 14:38:07 +01:00
Xavier Morel 11272c4737 [FIX] positioning of hidden file field of binary widget
bzr revid: xmo@openerp.com-20120131125431-sf5w5yxfctiwvk7r
2012-01-31 13:54:31 +01:00
Fabien Meghazi d6f406191a [FIX] reloading of menu should keep active menu hidden when folded
bzr revid: fme@openerp.com-20120131100324-xajoh1esyvj31zs0
2012-01-31 11:03:24 +01:00
Xavier Morel b52e034c43 [IMP] docstring for fix_view_modes
bzr revid: xmo@openerp.com-20120131095651-a249eben5d8xjkvd
2012-01-31 10:56:51 +01:00
Xavier Morel d5cac24bc8 [IMP] right-align labels in db-management screens
bzr revid: xmo@openerp.com-20120131094441-cmou5jfes0e9o3k5
2012-01-31 10:44:41 +01:00
Xavier Morel 73c1d7c3de [FIX] handling of being denied access to the list of databases in the database-management screen
lp bug: https://launchpad.net/bugs/922024 fixed

bzr revid: xmo@openerp.com-20120131094326-1am82v8u6f9fefuv
2012-01-31 10:43:26 +01:00
Xavier Morel 52fc5d5023 [FIX] double htmlescaping in m2o fields when selecting an autocomplete choice
When providing values to the autocomplete, there are two keys used by
the autocomplete system itself:
* A mandatory label
* An optional value

If the value is not specified, the autocomplete will use the label
*but* it will htmlescape the label's value before setting it on the
input, while the provided label is raw HTML.

While this protects the input, if the label was already htmlescaped
(because it's user-provided data and may contain e.g. ampersands) in
order not to break the autocompletion list, it will end up
double-escaped with e.g. `&` characters replaced by `&` in
user-visible text.

The fix is to use the `value` key and set it to unescaped text data,
the widget will escape it before setting it on the field yielding the
correct user-facing result.

lp bug: https://launchpad.net/bugs/922666 fixed

bzr revid: xmo@openerp.com-20120131090226-8r64u4w3bb36se7n
2012-01-31 10:02:26 +01:00
Launchpad Translations on behalf of openerp 69910d967c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120131050031-o00wn1tnzbkgjt6j
bzr revid: launchpad_translations_on_behalf_of_openerp-20120131050331-w0omtl1lmfqzciwq
bzr revid: launchpad_translations_on_behalf_of_openerp-20120131052309-jtfsc2m4h3liyzb5
2012-01-31 05:23:09 +00:00
Xavier Morel 94240c8a04 [IMP] remove [Invalid Username or Password] note as soon as a new login is submit, don't wait for page reload while checking for login correctness
lp bug: https://launchpad.net/bugs/921575 fixed

bzr revid: xmo@openerp.com-20120130115255-dt39hk25ri9u0whu
2012-01-30 12:52:55 +01:00
Xavier Morel ceaf203ce9 [IMP] remove fixed todo
bzr revid: xmo@openerp.com-20120130095339-x3cmsfrzxpwtl8u6
2012-01-30 10:53:39 +01:00
Xavier Morel b50afe59fb [FIX] don't forget to set py.bool in context of py.eval/py.evaluate
py.eval really needs to automatically have builtins in its evaluation context...

lp bug: https://launchpad.net/bugs/922651 fixed

bzr revid: xmo@openerp.com-20120130085557-oqmjs0owgdrwshu0
2012-01-30 09:55:57 +01:00
Xavier Morel 05b60e8afb [IMP] only protect crashmanager creation as other children are destroyed and recreated every time
bzr revid: xmo@openerp.com-20120127164332-4mw5pxzoep0newgo
2012-01-27 17:43:32 +01:00
Xavier Morel 2c073283df [FIX] don't initialize common controls twice in WebClient root, causes duplicated error popups if going through login page
lp bug: https://launchpad.net/bugs/922296 fixed

bzr revid: xmo@openerp.com-20120127163446-a2i3vfzzxz0yaujn
2012-01-27 17:34:46 +01:00
Antony Lesuisse cb750d4121 [FIX] always show model in url
bzr revid: al@openerp.com-20120127132438-nth4lyqq1xp55hfc
2012-01-27 14:24:38 +01:00
Xavier Morel 28bdd074d5 [FIX] issue with OpenERP's weird arabic locale leading to datejs not knowing what locale file to load, and the client not correctly loading as a result
lp bug: https://launchpad.net/bugs/922490 fixed

bzr revid: xmo@openerp.com-20120127131746-aiyudmhd4irzex7w
2012-01-27 14:17:46 +01:00
Xavier Morel c5c224752f [FIX] CSS paths adaptation when running openerp-web (python side) in Windows
lp bug: https://launchpad.net/bugs/920938 fixed

bzr revid: xmo@openerp.com-20120127113033-5jb9bcfothcd30ly
2012-01-27 12:30:33 +01:00
Xavier Morel eaa1fbca72 [FIX] strange draggable behavior in Chrome 15/Linux
dragging any other row than the first one in a sortable table (table with sequences)
has the row going way to the right of the table, in both editable list views (e.g.
tasks) and relational fields (e.g. Accounting > Configuration > Financial Accounting
> Taxes > Taxes[form] > Child Tax Accounts

bzr revid: xmo@openerp.com-20120127091938-z79e7aj6wjcmfmmz
2012-01-27 10:19:38 +01:00
niv-openerp 32eaff93d3 [imp] added doc
bzr revid: nicolas.vanhoren@openerp.com-20120126152911-s5idtdwgp454v8i5
2012-01-26 16:29:11 +01:00
niv-openerp 7760df3d44 [fix] problem with date and time parsing
bzr revid: nicolas.vanhoren@openerp.com-20120126152822-z98udmqoj1qc9cx6
2012-01-26 16:28:22 +01:00
Fabien Meghazi 1b011182da [FIX] Tooltips stays visible after it's trigger element has been removed
bzr revid: fme@openerp.com-20120126143734-7zl3gczn5x61k2u1
2012-01-26 15:37:34 +01:00
Fabien Meghazi 0a692eb7de [FIX] Changed tooltip plugin that caused problems under firefox
bzr revid: fme@openerp.com-20120126141408-zdkf21qqjxx019pq
2012-01-26 15:14:08 +01:00
Fabien Meghazi 06061d4872 [FIX] Changed tooltip plugin that caused problems under firefox
bzr revid: fme@openerp.com-20120126132441-wxg1gumrq9uetd70
2012-01-26 14:24:41 +01:00
Xavier Morel e23c373f75 [ADD] uid field in context used when requesting a view, so modifiers processing can eval uid
lp bug: https://launchpad.net/bugs/920033 fixed

bzr revid: xmo@openerp.com-20120126105152-ou54c38vmohibs0c
2012-01-26 11:51:52 +01:00
Xavier Morel d0141aa5ce [FIX] race condition on selecting saved filters
Deferreds can't "go through" al callbacks, so even when searchviews
correctly wait on this.on_clear it can't get the information on when
the other view is done clearing, and it lauches two concurrent views.

In this precise case though, there's no need to launch a search after
this clear, just want to remove all searchview state.

bzr revid: xmo@openerp.com-20120126092304-fe79ulj6txkgy411
2012-01-26 10:23:04 +01:00
Xavier Morel 1059bb758d [IMP] clear search after deselecting a filter
bzr revid: xmo@openerp.com-20120126085636-3mja4a43yhywd6ga
2012-01-26 09:56:36 +01:00
Xavier Morel a01106ca30 [IMP] don't reset filters select after selecting a saved filter
bzr revid: xmo@openerp.com-20120126085526-21rjfs2beykv00rv
2012-01-26 09:55:26 +01:00
Xavier Morel 53274ea397 [FIX] handling of encoding of field names when serializing to export data files
lp bug: https://launchpad.net/bugs/921470 fixed

bzr revid: xmo@openerp.com-20120125162558-1lfs3xb5xi35xjym
2012-01-25 17:25:58 +01:00
Xavier Morel a4a8e0eee1 [IMP] avoid losing error message when DOM parser fails to initialize in MSIE
bzr revid: xmo@openerp.com-20120125160949-5pr4h7aquohykdn2
2012-01-25 17:09:49 +01:00
Fabien Meghazi df0dde74a6 [FIX] Using the "id" field in a view used in pop-up creates errors
lp bug: https://launchpad.net/bugs/919184 fixed

bzr revid: fme@openerp.com-20120125150506-g84vyw5pmsk59l9s
2012-01-25 16:05:06 +01:00
Xavier Morel 7f1c184bb4 [IMP] invert sorting arrows
http://notes.ericjiang.com/posts/456

bzr revid: xmo@openerp.com-20120125150201-82vkms4pxyn2qbsu
2012-01-25 16:02:01 +01:00
Xavier Morel f854b4b9f8 [IMP] only set auto_search on flags if not already set, so flags can be used to override action's auto_search
bzr revid: xmo@openerp.com-20120125142043-o9znm8qphrm9rlsp
2012-01-25 15:20:43 +01:00
Xavier Morel e90d6ac735 [FIX] front page kanban: incorrect boolean conversion of action.auto_search to flag
bzr revid: xmo@openerp.com-20120125141945-ifyboezexfanw9hi
2012-01-25 15:19:45 +01:00
Fabien Meghazi c0b2ee7dc2 [IMP] Use a different controller for fields @type=id always readonly
bzr revid: fme@openerp.com-20120125140438-rr1bh20st75rq45y
2012-01-25 15:04:38 +01:00
Vaibhav (OpenERP) a93daf3b98 [FIX] helper clone for dragged element.
lp bug: https://launchpad.net/bugs/920349 fixed

bzr revid: vda@tinyerp.com-20120125131528-twjtq49lhzr214vr
2012-01-25 18:45:28 +05:30
niv-openerp 921543ab32 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20120125131453-sblhwsshiahe4qsw
2012-01-25 14:14:53 +01:00
Fabien Meghazi 1d077e0a95 [IMP] id special case, keep original @type
bzr revid: fme@openerp.com-20120125112325-xup3ol7ns99l02rp
2012-01-25 12:23:25 +01:00
Fabien Meghazi 4ffe5f5545 [FIX] Special case id fields
lp bug: https://launchpad.net/bugs/919184 fixed

bzr revid: fme@openerp.com-20120125111628-vsz6mwptd7bm8hlm
2012-01-25 12:16:28 +01:00