Commit Graph

185 Commits

Author SHA1 Message Date
Xavier Morel 85f95e6858 [FIX] handling of empty domains, context and view_id in action descriptors
* Some literal actions (not stored) provide an empty string for
  domains and contexts instead of (respectively) an empty array or an
  empty dict literal inside the string. Treat those case as nothing
  being provided.
* Likewise some literal actions provide nonsensical (but falsy, but
  not False) values for view_id (such as an empty list). Yield a
  ``False`` view_id for all falsy ``view_id`` received (``0`` should
  not be a valid view_id, so ``False`` works)

bzr revid: xmo@openerp.com-20120606123508-ndh3jpzw1nabf98n
2012-06-06 14:35:08 +02:00
Xavier Morel 5b6aed9576 [FIX] handling of empty lines in CSV file being imported (ignore them)
lp bug: https://launchpad.net/bugs/941977 fixed

bzr revid: xmo@openerp.com-20120606103353-k8z51yhp9j1u2irp
2012-06-06 12:33:53 +02:00
Ravi Gohil (Open ERP) 47815f1c0a [FIX] Performed boolean check for context and domain and removed redundant condition: (Maintenance Case : 574769)
bzr revid: rgo@tinyerp.com-20120521095011-4ji9wf6efbhr4yry
2012-05-21 15:20:11 +05:30
Ravi Gohil (Open ERP) b39904ad4a [FIX] To prevent the leak when domain and context passed blank and view_id is passed as blank list by the server action : (Maintenance Case : 574769)
bzr revid: rgo@tinyerp.com-20120517102359-7u10pq22ynd3219k
2012-05-17 15:53:59 +05:30
Xavier Morel 98362c1624 [FIX] context and domain of an action being added to a dashboard
* The action's context and domain are needed because they are
  explicitly ignored by those codepaths when the action is ultimately
  executed in the dashboard, and their data are needed: such flags as
  group_by_no_leaf may be set in the action's context, or things like
  the leads/opportunities filters which need to remain in the
  dashboard view.

* On the other hand, some keys in the action's context may be
  detrimental to the correct behavior of the action in the dashboard,
  one such key (group) is the search_default_*: these default values
  for the search view may have been unset by the user before adding to
  the dashboard, we must not add them back. And since the dashboard
  will instantiate a full action/view manager for each action there
  will be (empty) search views which will try to make use of those
  defaults.

As a result, add the action's context and domain to those of the
research while *creating* the dashboard action/section, *but* filter
out search_default_* context keys while doing so.

If new problematic context keys are discovered, they should be added
to the filter.

bzr revid: xmo@openerp.com-20120516153309-3eq957p1pbj99fun
2012-05-16 17:33:09 +02:00
Olivier Dony 601da46064 [FIX] manifest flag 'active' was renamed to 'auto_install' a while ago
The change occurred in server at revision 3989
and in addons at revision 6451, but had never
been done in openerp-web.
One indirect consequence was that the 'base'
modules was not considered auto-installable
anymore and its CSS files were not loaded on
web, causing layout issues, namely in the
modules kanban view.

Server rev 3989 = al@openerp.com-20120130211001-ytqx759fl920uegc
Addons rev 6451 = al@openerp.com-20120130211812-w0wu42hdu4l7koc4

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

bzr revid: odo@openerp.com-20120314181853-kzr6lgqxxcz7rreu
2012-03-14 19:18:53 +01:00
Xavier Morel 6501553263 [MERGE] synchronous db-creation call, significantly simplified db creation code
also removed custom blockUI and error management hooks since it's now a perfectly standard RPC call and webclient is already available

bzr revid: xmo@openerp.com-20120309140536-21u2ked9oc7eaie5
2012-03-09 15:05:36 +01:00
Olivier Dony 56ab278178 [MERGE] One more merge from 6.1 branch
bzr revid: xmo@openerp.com-20120307153105-nh5wbzwjnn8g880o
bzr revid: odo@openerp.com-20120307164049-ocu8jsyt19sbxsqr
2012-03-07 17:40:49 +01:00
Fabien Meghazi c0439810ef [FIX] Add to dashboard domain & context merging problems
bzr revid: fme@openerp.com-20120307160503-w1mha79xiznl4x6h
2012-03-07 17:05:03 +01:00
Xavier Morel 9a646fce10 [ADD] permanent loading of saved filters
When selecting a saved filter, its data is now saved inside the
searchview's state, and re-used any time there's a search performed
(until the filter is replaced or the search view is cleared).

Some cleanup of the support code for loading filters
(SearchView.get_filters) also had to be performed in order not to fill
contexts with (potentially incorrect) crap in case the filter is
re-saved.

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

bzr revid: xmo@openerp.com-20120307120323-pub0yuwjqk1r3y0p
2012-03-07 13:03:23 +01:00
Vo Minh Thu bfb9896ddd [FIX] database/create replaced by blocking database/create_database
(so we can use a multi-workers OpenERP server; otherwise polling
on the server would hit different workers resulting in errors).

bzr revid: vmt@openerp.com-20120307104632-w6cs6nxf04ltcpf1
2012-03-07 11:46:32 +01:00
Fabien Meghazi 34b03bd24d [FIX] Can't add to dashboard a view that includes a 'group_by'
lp bug: https://launchpad.net/bugs/948097 fixed

bzr revid: fme@openerp.com-20120306205955-zqgtbgtz1gtix4w9
2012-03-06 21:59:55 +01:00
Xavier Morel 532e60a007 [FIX] dependencies handling in modules listing of web client
* Correctly fetch dependencies from server
* Switch topological sort to a more formal algorithm (and test it)

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

bzr revid: xmo@openerp.com-20120306142010-zflycbrj4aq41mv3
2012-03-06 15:20:10 +01:00
Xavier Morel 10ba2bb9b1 [FIX] take dependencies in account when ordering modules for loading
bzr revid: xmo@openerp.com-20120305142948-2pkrgl8koizhcfbu
2012-03-05 15:29:48 +01:00
Xavier Morel 12825e4122 [FIX] correctly handle the user's menu_id being set to an action with domain=False (literally)
that's a bit stupid, but apparently people do set their menu action to a dashboard...

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

bzr revid: xmo@openerp.com-20120223134612-3sm2e4yq3hbjqnz7
2012-02-23 14:46:12 +01:00
Antony Lesuisse bfee2b7ae2 [FIX] database get_list use wsgi hostname
bzr revid: al@openerp.com-20120221185739-7utcld4kcnf39fg5
2012-02-21 19:57:39 +01:00
Fabien Meghazi a95db7c28c [FIX] Fix one million bugs in IE8
bzr revid: fme@openerp.com-20120213135611-ndrboz8urcg6kclu
2012-02-13 14:56:11 +01:00
Xavier Morel 919cf2a51f [FIX] get_last_modified in case no file is provided
lp bug: https://launchpad.net/bugs/931293 fixed

bzr revid: xmo@openerp.com-20120213091049-thhwo5fzadsy4671
2012-02-13 10:10:49 +01:00
Xavier Morel b79f91a0f5 [FIX] completely destroy the current openerp session on logout (but leave the webclient session), so other tabs using the same session get unlogged
lp bug: https://launchpad.net/bugs/925386 fixed

bzr revid: xmo@openerp.com-20120210164309-lyslwm4t94a4jd7g
2012-02-10 17:43:09 +01:00
Xavier Morel 3b565386c2 [IMP] move all the making-stuff-conditional-based-on-other-stuff code to a dedicated method of the WebClient controller
provides a single point of configuration if/when we decide to change the cache-control stuff, mostly

bzr revid: xmo@openerp.com-20120210141338-3aib9ls3b72gr4ez
2012-02-10 15:13:38 +01:00
Xavier Morel 10f215ef35 [IMP] conditional GET for concatenated JS and CSS files
bzr revid: xmo@openerp.com-20120210140021-uh5t5egr00dxdwr8
2012-02-10 15:00:21 +01:00
Xavier Morel a7354829cd [CNG] make forms worse but pagination not break in case of manyrecords
bzr revid: xmo@openerp.com-20120209170748-l70q7grxgsumha2i
2012-02-09 18:07:48 +01:00
Xavier Morel 77065685ca [FIX] don't blow up filters management if a filter uses an invalid syntax (or an unknown variable) and can't be evaluated
bzr revid: xmo@openerp.com-20120209161542-whs5ye637lijas26
2012-02-09 17:15:42 +01:00
Olivier Dony affdaf2566 [FIX] Application Tiles now heed the custom menu domain, just like the nain menu
This makes both behaviors consistent
and allows the portal module to work
properly.

bzr revid: odo@openerp.com-20120209141339-c2vs0lrx7ws6plzs
2012-02-09 15:13:39 +01:00
Xavier Morel c120ee72a6 [CNG] don't filter out function fields from import or export, only readonly fields
bzr revid: xmo@openerp.com-20120209090214-84d6jjr1jnf32kpi
2012-02-09 10:02:14 +01:00
Xavier Morel fda65c7c69 [FIX] menus handling in case user has no menu_id
also add comments to explain some strange-looking code's behavior

bzr revid: xmo@openerp.com-20120209083554-2b8d8qlzz8y9fhan
2012-02-09 09:35:54 +01:00
Antony Lesuisse 98bd34a2eb [FIX] better fix for portal menu using res.users._menu_id reverting 2107 revid:al@openerp.com-20120203132249-pbkdci0q5fxz1k33
bzr revid: al@openerp.com-20120208001305-ef3c2w7a222ph7v0
2012-02-08 01:13:05 +01:00
Fabien Meghazi 739b0d4861 [FIX] Binary#save_as does not send context. Breaks some accounting downloadable reports.
Example of broken report was : Accounting > Reporting > Legal Reports > Belgium Statements > Periodical VAT Declaration

bzr revid: fme@openerp.com-20120208103935-cv9nn9kg1vssosgm
2012-02-08 11:39:35 +01:00
Olivier Dony 2e8f622f45 [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20120206153300-ql0qo3mf0j4x05n9
2012-02-06 16:33:00 +01:00
Olivier Dony 1e2b11a7b2 [FIX] typo in menu loading code changed in previous revision
lp bug: https://launchpad.net/bugs/926408 fixed

bzr revid: odo@openerp.com-20120204001404-82kaxklke0olehko
2012-02-04 01:14:04 +01:00
Antony Lesuisse 355e2d6e38 [FIX] use regular recursive menu loading because it breaks portal
bzr revid: al@openerp.com-20120203132249-pbkdci0q5fxz1k33
2012-02-03 14:22:49 +01:00
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
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 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 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
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
Xavier Morel ad461e18b4 [FIX] onchange: handlers can return 'False' instead of en empty dict when they don't want to return anything, don't blow up
lp bug: https://launchpad.net/bugs/920443 fixed

bzr revid: xmo@openerp.com-20120123144605-j2jqvaelro0dv28f
2012-01-23 15:46:05 +01:00
Xavier Morel 2e856ca443 [IMP] add ~ISO timestamps to db dump filenames
bzr revid: xmo@openerp.com-20120123100744-k8qatd18p18hd8y5
2012-01-23 11:07:44 +01:00
Antony Lesuisse 7d22e1eb8c [FIX] revert html_template is used by other modules. commit 2012 revid:nicolas.vanhoren@openerp.com-20120118161735-2yuxisndfq92ctoi
bzr revid: al@openerp.com-20120122233202-moq81q35qddjtlw8
2012-01-23 00:32:02 +01:00
Xavier Morel ee0c76d2c5 [ADD] support for 'domain' key in result of onchange handlers
bzr revid: xmo@openerp.com-20120120110543-29ebq5u0ghp32hkv
2012-01-20 12:05:43 +01:00
Xavier Morel 9b54bdeb18 [ADD] dynamic view: handle setting domains via onchange
lp bug: https://launchpad.net/bugs/911676 fixed

bzr revid: xmo@openerp.com-20120120105608-zjbam8ki4uoqer5v
2012-01-20 11:56:08 +01:00
Xavier Morel ccde5e2f5e [REM] unused imports mistakenly added in revision xmo@openerp.com-20120119144837-dp6r7vqx581b4mrt
bzr revid: xmo@openerp.com-20120119155425-kud19lwt56du1ym9
2012-01-19 16:54:25 +01:00
Xavier Morel f9cbad5bf6 [FIX] correctly display crash manager in case of report error
lp bug: https://launchpad.net/bugs/917227 fixed

bzr revid: xmo@openerp.com-20120119144837-dp6r7vqx581b4mrt
2012-01-19 15:48:37 +01:00
Christophe Simonis c078d23d16 [FIX] avoid blank page when the database assigned to the session has been removed
bzr revid: chs@openerp.com-20120119143057-pbqdh15jptyc7y0a
2012-01-19 15:30:57 +01:00
Xavier Morel 03c5fd00a2 [MERGE] various style and code improvements, and overly broad exception handlers fixes
bzr revid: xmo@openerp.com-20120119095236-0ge089y2yhpcz8h3
2012-01-19 10:52:36 +01:00
Florent Xicluna 3ec4ad3201 [REF] code review.
bzr revid: florent.xicluna@gmail.com-20120119085213-94b2p3268q25bni2
2012-01-19 09:52:13 +01:00
niv-openerp 3e7c98f5e5 [imp] cleared main html
bzr revid: nicolas.vanhoren@openerp.com-20120118161735-2yuxisndfq92ctoi
2012-01-18 17:17:35 +01:00
Vo Minh Thu 75b3fc0907 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120118101252-e81nlyzym2nkebf4
2012-01-18 11:12:52 +01:00
Xavier Morel aeebcf3dcc [FIX] un-nivity call of WebClient, IE8 does not like nobody to mess with its body:
bzr revid: xmo@openerp.com-20120117140213-u2n1l4cg1nz1xrea
2012-01-17 15:02:13 +01:00