Commit Graph

112 Commits

Author SHA1 Message Date
Xavier Morel b45b7ad22c [IMP] import: only show second step once file has been uploaded
bzr revid: xmo@openerp.com-20111024140658-8t9csv9i6gd30luj
2011-10-24 16:06:58 +02:00
Xavier Morel a8b81ed575 [ADD] dropdown arrow next to import autocompletes
bzr revid: xmo@openerp.com-20111024135521-aikh791r9j94moal
2011-10-24 15:55:21 +02:00
Xavier Morel ce45893633 [FIX] Display 'don't import' placeholder when no value selected
bzr revid: xmo@openerp.com-20111024134413-kgcgemdzquwtn0ns
2011-10-24 15:44:13 +02:00
Xavier Morel ec18460aa3 [ADD] pagination buttons at the bottom of the list view
bzr revid: xmo@openerp.com-20111024084853-kcq2dflsk36r6pby
2011-10-24 10:48:53 +02:00
Turkesh Patel (Open ERP) 940b1138ae [IMP] Fixed the issue of buttons 'First', '<', '>', 'Last' would be nice at the bottom, too
bzr revid: tpa@tinyerp.com-20111024060926-f47bcg8jkmx449z2
2011-10-24 11:39:26 +05:30
Turkesh Patel (Open ERP) 75a57eed12 [IMP] Fixed the issue of buttons 'First', '<', '>', 'Last' would be nice at the bottom, too
bzr revid: tpa@tinyerp.com-20111021104441-k2lnnciqalsjii2j
2011-10-21 16:14:41 +05:30
Turkesh Patel (Open ERP) d049a25fa5 [FIX] Fixed the issue of buttons 'First', '<', '>', 'Last' would be nice at the bottom, too
lp bug: https://launchpad.net/bugs/878106 fixed

bzr revid: tpa@tinyerp.com-20111021065103-slbb7n124cuyvwhm
2011-10-21 12:21:03 +05:30
Fabien Meghazi 1d0b38d034 [FIX] No title on page trigered by an action
lp bug: https://launchpad.net/bugs/872148 fixed

bzr revid: fme@openerp.com-20111017122335-vov2sy95sdt3dwp9
2011-10-17 14:23:35 +02:00
Fabien Meghazi 8b1e88a47a [REM] Removed '& Edit' label in FormView's Save and Create buttons
bzr revid: fme@openerp.com-20111017100310-sxhudt74oi7eia10
2011-10-17 12:03:10 +02:00
Xavier Morel 405beaa3c6 [FIX] m2o values display in list views (mostly under onchange condition)
Normal m2o values are pairs of (id, name) (name_get format, basically)
but in some cases (lazyness & al), APIs (often onchange results) only
return the `id` part, which is not sufficient to display the m2o
as-is, a name_get has to be performed.

Added an intermediate step in displaying a table cell (in list view):
if we're displaying an m2o cell (~a cell for an m2o column) and the
value is a number, then dispatch a name_get and keep trucking (display
the rows without the m2o values).

When the name_get returns, it will simply refresh the row and diplay
the m2o name.

bzr revid: xmo@openerp.com-20111014084310-pv2mmmy28fwwk9sm
2011-10-14 10:43:10 +02:00
Antony Lesuisse 7b5b9d45ad [MERGE] notification cleanups by chs
bzr revid: al@openerp.com-20111014003056-3apcizt2i9qeb1ra
2011-10-14 02:30:56 +02:00
Christophe Simonis 00b269d1c0 [IMP] nivification of Notification Widget
bzr revid: chs@openerp.com-20111013102653-wox1v4o9mfplzt2b
2011-10-13 12:26:53 +02:00
Fabien Meghazi 65792ba3cb [MERGE] Change the way the sections and items are added to the sidebar
bzr revid: fme@openerp.com-20111012135735-6o905df1db7tmybh
2011-10-12 15:57:35 +02:00
Xavier Morel 039e42110f [IMP] copy colorization code from listview to treeview
bzr revid: xmo@openerp.com-20111011112924-ih7on411mirf5wmi
2011-10-11 13:29:24 +02:00
Fabien Meghazi 9b3903be98 [FIX] m2o of reference fields does not seem working
m2o needs additional properties from view.
reference template was broken
now hide the m2o widget when no value is selected

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

bzr revid: fme@openerp.com-20111011105426-2s4d82185q5ok4ry
2011-10-11 12:54:26 +02:00
Fabien Meghazi d31295d65b [IMP] Added display_title in action flags. ViewManager won't display title if false.
Will be used for dashboards, wizards, ...

bzr revid: fme@openerp.com-20111010141546-b19g0sr4fzicehss
2011-10-10 16:15:46 +02:00
Christophe Simonis 27869cac8b [IMP] change the way the sections and items are added to the sidebar
bzr revid: chs@openerp.com-20111010123432-619o61elz09jm9sy
2011-10-10 14:34:32 +02:00
Xavier Morel cecd7f5e55 [FIX] duplicated element_class on form widgets (on container and widget), and some incorrect element_id breaking click-on-label behavior
bzr revid: xmo@openerp.com-20111006114127-vc4mbflum68pjlbo
2011-10-06 13:41:27 +02:00
Xavier Morel 0fc5a423e3 [FIX] don't screw up typing of selection values in search view
bzr revid: xmo@openerp.com-20111006095301-98cda38m1y270f3m
2011-10-06 11:53:01 +02:00
Xavier Morel a3a45e18b3 [FIX] m2o fields with selection widget in search view
Plan was originally to just ignore this because "it should just work"
 but turns out m2o and m2o[@widget=selection] fields have very
 different behaviors when it comes to default values, especially
 custom domains and contexts:

 * An m2o field uses its string value always (behaves like a char
   field), for UI and clarity purposes we added an [[name, '=', id]]
   case when the user specifically selects an autocompletion value,
   but that's not "cannon", when it comes to dealing with custom
   domains (filter_domain) and contexts the field always uses its
   string value.

* An m2o[@widget=selection] field on the other hand uses its ids
  always (behaves like a selection field).

  That's not entirely true, really, because it has the converse to
  what we implemented on the m2o field in the web client (in the GTK
  client): if there is no @filter_domain *and* the user has entered a
  value which is not in the dropdown (it's a combobox in the GTK
  client), then it falls back on using 'ilike'. This string value is
  *not* used in custom domains and custom filters, which simply are
  not submitted.

  This second section has *not* been implemented so far in the web
  client, we'll come round to it if people actually need it.

bzr revid: xmo@openerp.com-20111006063949-fl5rbg3wwubcaay8
2011-10-06 08:39:49 +02:00
Xavier Morel 6bb8d8ea85 [ADD] readonly & movable form view
bzr revid: xmo@openerp.com-20110930081247-wl1d0i7hz206244o
2011-09-30 10:12:47 +02:00
Xavier Morel 3cde15fe01 [ADD] evaluator proof of concept: colors in list rows
bzr revid: xmo@openerp.com-20110929144036-7u2w6pf6lwkvzck0
2011-09-29 16:40:36 +02:00
niv-openerp b41131cdc6 [fix] problem with al making refactorings like a baraki de kermesse
bzr revid: nicolas.vanhoren@openerp.com-20110928123746-xudpsdgx353s2fnz
2011-09-28 14:37:46 +02:00
Christophe Simonis a578747e53 [FIX] wrap Login template
bzr revid: chs@openerp.com-20110928091958-3pbgyvug309bfmb1
2011-09-28 11:19:58 +02:00
Christophe Simonis e4c2cfb4ba [FIX] nivification of Login Widget
bzr revid: chs@openerp.com-20110927155347-dcqeg7hlyaq5djis
2011-09-27 17:53:47 +02:00
Xavier Morel 47094e8adb [ADD] import
bzr revid: xmo@openerp.com-20110926101440-y5j45bgie4xnhmqf
2011-09-26 12:14:40 +02:00
Xavier Morel c94872fc02 [ADD] basic colors support to listview via py.parse
bzr revid: xmo@openerp.com-20110925180407-n0asxrrjeb1oo5a4
2011-09-25 20:04:07 +02:00
Xavier Morel 25c38ca653 [IMP] move more import logic to javascript
bzr revid: xmo@openerp.com-20110923122202-hnp6o1ybwgugive4
2011-09-23 14:22:02 +02:00
Xavier Morel f42cacc5c1 [IMP] handle lines to skip in import preview
bzr revid: xmo@openerp.com-20110923095609-ogxc6q3wnd0tez8v
2011-09-23 11:56:09 +02:00
Xavier Morel 8d0a65ec94 [IMP] handle switch indicating whether the CSV file being imported has headers
bzr revid: xmo@openerp.com-20110923094500-0jn0tb3fgix9j8wg
2011-09-23 11:45:00 +02:00
Xavier Morel a7a71dea83 [IMP] split import check result in two different templates, wait before everything's ready to setup autocompletes and check required fields & al
bzr revid: xmo@openerp.com-20110923092346-007j09xf5wfzq9zo
2011-09-23 11:23:46 +02:00
Xavier Morel 99cd8a01a3 [REM] most of the fields-manipulation crapola of Import.detect_data, have headers be a simple list(str)
bzr revid: xmo@openerp.com-20110923085924-4gq1g660mcmb8bus
2011-09-23 10:59:24 +02:00
Xavier Morel 6bd754060e [REM] table of no use whatsoever
bzr revid: xmo@openerp.com-20110922155751-rkch0vpmhpolihxa
2011-09-22 17:57:51 +02:00
Xavier Morel 5b7ecef331 [IMP] add @for to import options labels, some help on skip
bzr revid: xmo@openerp.com-20110922153026-742c7cc76zv9f2t6
2011-09-22 17:30:26 +02:00
Xavier Morel 6a931ae104 [ADD] checkbox for the user to specify that his file does *not* have column headers
bzr revid: xmo@openerp.com-20110922152704-lu36gl07ijnkd3sl
2011-09-22 17:27:04 +02:00
Xavier Morel 51dbb70b8d [FIX] mitigate horrendous performance issues inserting options in Webkit
In some cases, at least with complex-enough views, inserting many
options in a document in a row will get progressively slower.

In import, this issue is hit on trying to import partners: partners
have a humongous number of fields (direct and on their o2m), ~940,
which yields a correspondingly huge number of options in the
selection.

A basic partner export also has quite high a number of columns (~50
without exporting o2m fields), so this list of 940 options is inserted
50 times in a row (literally too, they're all in the same table row)..

While not all that fast, Firefox 5/6 has no significant issue with
this (~18ms/insertion, where an insertion is a full select with all
its options). Webkit browsers (Chrome and Safari) on the other hand
start out fair (~10ms/insertion), but get slower and slower until they
end up at 3~5 *seconds* for each insertion (3s if inserting a
DocumentFragment, 5s if inserting text via innerHTML). This means the
preview table takes up to *two minutes* to display, even the best
cases (pre-generating everything that can be and optimizing everything
I could think of) take 75 *seconds* for the insertions (the
pregeneration of a given select and its options is ~100ms, the base
template rendering is ~20ms).

rendering divs or inputs does not have this issue, I did not manage to
reduce or fix the issue directly so I replaced the options by
jQuery-ui's autocomplete widget. This is not issues-free: when tabbing
through the fields lists, when reaching the edge of the popup the
browser will automatically scroll the field back into view. However,
this is done *after* autocomplete's popup has opened, and as a result
the popup opens in the wrong place (at the popup's edge, instead of
under the now-moved field).

bzr revid: xmo@openerp.com-20110922085812-3u1esk6czraskm01
2011-09-22 10:58:12 +02:00
niv-openerp ca01681811 [fix] one more problem with css in date widget
bzr revid: nicolas.vanhoren@openerp.com-20110921123858-l2146cjg1qb10bwc
2011-09-21 14:38:58 +02:00
niv-openerp 1d68e2903e [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110921120434-ds3i74ey8ihc72ml
2011-09-21 14:04:34 +02:00
niv-openerp e281efe866 [imp] used datetime widget in advanced search
bzr revid: nicolas.vanhoren@openerp.com-20110921120347-rx8xhwa4igswtsx7
2011-09-21 14:03:47 +02:00
niv-openerp 7d65aca167 [imp] used datetime widget in search view
bzr revid: nicolas.vanhoren@openerp.com-20110921115054-mgd5ts19sk1olvgu
2011-09-21 13:50:54 +02:00
niv-openerp 8df96caa72 [imp] refactored datetime components to allow usage in the search view
bzr revid: nicolas.vanhoren@openerp.com-20110921104136-pu8yvny228jyi5so
2011-09-21 12:41:36 +02:00
Fabien Meghazi 5e1bdbeb26 [MERGE] New menus. Get rid of jQuery accordion. Added folding and floating menus.
bzr revid: fme@openerp.com-20110920134853-te0a54mv2s5dyauv
2011-09-20 15:48:53 +02:00
Fabien Meghazi 873cc6f5e0 [FIX] Many fixes
bzr revid: fme@openerp.com-20110920134142-jccggvzzu46708kx
2011-09-20 15:41:42 +02:00
Fabien Meghazi e616188971 [IMP] Menu is now working ok in folded mode
bzr revid: fme@openerp.com-20110920102350-je1313hpdtnvg1yp
2011-09-20 12:23:50 +02:00
Xavier Morel f896a2571e [MERGE] trunk improvements
bzr revid: xmo@openerp.com-20110920101957-zl6tiuf49rzc0l2v
2011-09-20 12:19:57 +02:00
Fabien Meghazi 4b5f671582 [IMP] Improved menu
bzr revid: fme@openerp.com-20110919214904-5vxnkt80rx48shjo
2011-09-19 23:49:04 +02:00
Fabien Meghazi a195b6912b [IMP] Improved float submenu positioning
bzr revid: fme@openerp.com-20110919211045-6kqn99p5d8lece6t
2011-09-19 23:10:45 +02:00
Fabien Meghazi 744be5db04 [ADD] Float menu (WIP)
bzr revid: fme@openerp.com-20110919155943-fdx57kbr0q9a2ywe
2011-09-19 17:59:43 +02:00
Xavier Morel 7b98c70f75 [ADD] hacky toggle between readonly and editable form modes
bzr revid: xmo@openerp.com-20110919151549-olblr39dlhtryfj0
2011-09-19 17:15:49 +02:00
Fabien Meghazi 3efa2e0a1a [ADD] Menu folding (WIP)
bzr revid: fme@openerp.com-20110919144631-b534cjz9iw598f3j
2011-09-19 16:46:31 +02:00