Commit Graph

206 Commits

Author SHA1 Message Date
Christophe Simonis 3658063fa0 [FIX] rename cookie when direct login
bzr revid: chs@openerp.com-20120507130256-czruw5y9riqhg20z
2012-05-07 15:02:56 +02:00
Xavier Morel e7ab44929f [MERGE] from trunk
bzr revid: xmo@openerp.com-20120419081213-m3fhofkgydj6gp1m
2012-04-19 10:12:13 +02:00
Antony Lesuisse 77ec66a20e bye bye page view
bzr revid: al@openerp.com-20120409205334-tbgk3fz7q7q60o3t
2012-04-09 22:53:34 +02:00
Antony Lesuisse eac3ebb87e [MERGE] trunk
bzr revid: nicolas.vanhoren@openerp.com-20120406123856-vpw1mk9rq642ur6n
bzr revid: al@openerp.com-20120406140537-z5em6fgqv8cnyj1t
2012-04-06 16:05:37 +02:00
Xavier Morel e7e7548869 [MERGE] new searchview
fp orders

bzr revid: xmo@openerp.com-20120406120250-dlwt0kvt0y1e2snr
2012-04-06 14:02:50 +02:00
niv-openerp 6b8e4e0832 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20120405081401-pmd3e12tzar3yubg
2012-04-05 10:14:01 +02:00
Xavier Morel 9678b25a9b [FIX] encoding issues when concatenating CSS or paths which may contain non-ascii
The concatenator tries to only work with bytes without ever wondering
what is in the byte bucket: files are read to `str`, concatenated with
`str` (via join) and returned as `str`, usually considered to be utf-8
encoded. It's the author's job to correctly encode files to utf-8.

So far so good.

On runbot, there's apparently an issue in some CSS files in some cases
on the runbot: `web_dir` finds itself to be typed `unicode` (because
it contains non-ascii characters? Not sure at all), as a result
`re.sub` will decode the corresponding file data when trying to inject
the dir as replacement and the CSS reader will return a `unicode`
object.

Then, when concat_files try to compute the checksum it will need bytes
thus re-encode everything using the default codec (ascii) and the
non-ascii character(s) will blow up the encoding with a
UnicodeEncodeError.

Solution:

* Assume CSS files can contain non-ascii characters (they can, and
  do), decode them using `utf-8` to get `unicode` strings in the CSS
  reader
* Inject web_dir as usual via replacement, this still yields a
  `unicode` object (a `str` web_dir will simply be decoded using the
  ASCII codec, a non-ascii web_dir should have been decoded to
  `unicode` using sys.getfilesystemencoding)
* Cleanly re-encode evrything to utf-8, so that the code outside the
  reader only ever manipulates 8-bit "byte" strings

bzr revid: xmo@openerp.com-20120405070711-vjyw8g4mge2goyik
2012-04-05 09:07:11 +02:00
Xavier Morel 45c48d6842 [MERGE] from trunk
bzr revid: xmo@openerp.com-20120403110724-a6z2wrnxgf8jbspx
2012-04-03 13:07:24 +02:00
Thibault Delavallée 8cefe9a5e1 [MERGE] Merged with main web
bzr revid: tde@openerp.com-20120402072422-tsjaxjbfrngqnodp
bzr revid: tde@openerp.com-20120403071448-x3ng76yc17pcy266
2012-04-03 09:14:48 +02:00
Antony Lesuisse d2e213844a [FIX] edi loading, partially revert commit 2226 revid:nicolas.vanhoren@openerp.com-20120217134701-7t3iklv6ndv30hln
bzr revid: al@openerp.com-20120402140020-a4d8nd6rnp625l9w
2012-04-02 16:00:20 +02:00
Thibault Delavallée a3a5ea21ed [IMP] Propagated ir.ui.menu new fields name change.
bzr revid: tde@openerp.com-20120330125928-ku9oqpb0pq4ehu6m
2012-03-30 14:59:28 +02:00
Turkesh Patel (Open ERP) f8510eee62 [IMP] Improved code to show need action counter
bzr revid: tpa@tinyerp.com-20120330105731-ss03y3l4fi5mq3jd
2012-03-30 16:27:31 +05:30
niv-openerp a15c065071 [rollback 2367] due to blocking bug during login
bzr revid: nicolas.vanhoren@openerp.com-20120326104430-0tntoj5k6n578n49
2012-03-26 12:44:30 +02:00
niv-openerp 2059123918 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20120326095842-mf8v3nhizeqcfp8j
2012-03-26 11:58:42 +02:00
Xavier Morel 7353e02e2e [MERGE] from trunk
bzr revid: xmo@openerp.com-20120322143331-iajlifomw1hohbht
2012-03-22 15:33:31 +01:00
Fabien Meghazi 9678e570e4 [REM] Removed height=100% from html homepage
bzr revid: fme@openerp.com-20120322132617-q6a4f0am02g2tayh
2012-03-22 14:26:17 +01:00
Xavier Morel 1da49a44a5 [MERGE] 6.1 fixes into trunk
bzr revid: xmo@openerp.com-20120322113142-gim4svx01p336nxm
2012-03-22 12:31:42 +01: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
Fabien Meghazi e125dd5f63 [WIP] Form v2
bzr revid: fme@openerp.com-20120312153452-x6zhyeheu4579ak3
2012-03-12 16:34:52 +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 e178185b4f [MERGE] bug fixes form 6.1 branch
bzr revid: xmo@openerp.com-20120305070634-li0eloj7vhsljguu
2012-03-05 08:06:34 +01:00
Antony Lesuisse e7f72af654 [IMP] menu load action
bzr revid: al@openerp.com-20120229095345-ll5rbc3h4m7f29as
2012-02-29 10:53:45 +01:00
Xavier Morel e6f5d4c211 [ADD] Model API, reimplement DataSet/DataSetSearch on top of it (as much as possible)
TODO: traversal state API, removing even more method (e.g. completely remove DataSet.call in the Python API)

bzr revid: xmo@openerp.com-20120227135626-yxqh0gc6jwrdkshs
2012-02-27 14:56:26 +01:00
Antony Lesuisse 73becbfe0b [IMP] sass2scss taken from ~cto-openerp/+junk/sass2scss with minor cleanups
bzr revid: al@openerp.com-20120223234806-8tg83pph08dsvqie
2012-02-24 00:48:06 +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
Antony Lesuisse a0493e2e48 [FIX] database get_list use wsgi hostname
bzr revid: al@openerp.com-20120221185853-6qjxwktk7pnehz9w
2012-02-21 19:58:53 +01:00
niv-openerp 8036408be5 [imp] made the body css properties be included only in full web-client mode
bzr revid: nicolas.vanhoren@openerp.com-20120220095238-lxwtctbpo46ekpul
2012-02-20 10:52:38 +01:00
niv-openerp feaade623a [imp] put openerp into body
bzr revid: nicolas.vanhoren@openerp.com-20120217110152-x66rfhyfkqao04k0
2012-02-17 12:01:52 +01:00
niv-openerp 39d514678c [imp] repaired illogic al's code
bzr revid: nicolas.vanhoren@openerp.com-20120217105636-61tk67zbx9calc1b
2012-02-17 11:56:36 +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