Commit Graph
7557 Commits
Author SHA1 Message Date
Bhumi Patel 90f3af6d2e [FIX] web: form views in popups were looking for the edit button (that is not showed in a popup), and crashed
exempli gratia: In calendar, open an existing meetings from the calendar view and then click somewhere in the view.
2015-04-21 14:26:14 +02:00
Jusab Sida 6047b88b5c [FIX] web: remove search tools from form view 2015-04-21 10:09:37 +02:00
Christophe Matthieu 680a174747 [IMP] web_tests: add a tour to test AbstractManyField widget and one2many and many2many python api communication and on change trigger 2015-04-20 10:51:02 +02:00
Christophe Matthieu b4cb456800 [FIX] web: AbstractManyField: many to one set dataset.ids without use abstract field api. Need to clone the list to avoid the duplicate record on create. 2015-04-20 10:51:02 +02:00
Christophe Simonis 2328174cfd [FIX] web: session.js: use compatibility layer to avoid Dependency
error.

Better solution welcome.
2015-04-18 14:27:05 +02:00
Christophe Simonis 816953f01c [FIX] web: break dependency cicle. 2015-04-17 19:33:38 +02:00
Christophe Simonis 107b589a11 [FIX] *: correct previous forward port
Due to files renaming, some patched should be applied manually to the
correct files.
Forgot to `git add` these files when committing the forward port...
2015-04-17 17:08:17 +02:00
Christophe Simonis a9471c43b9 [MERGE] forward port of branch saas-6 up to e941c0f 2015-04-17 15:33:00 +02:00
Christophe Simonis 63f2c13a87 [MERGE] forward port of branch 8.0 up to 2492503 2015-04-16 19:40:48 +02:00
Christophe Simonis 2492503dcc [MERGE] forward port of branch saas-3 up to 50665b4 2015-04-16 19:25:53 +02:00
Christophe Simonis 50665b499a [MERGE] forward port of branch 7.0 up to d0ef1b9 2015-04-16 19:13:56 +02:00
dhr-odoo d0ef1b938d [FIX] Fixed wrong digits format issue for float fields when thousand separator is '.'
The function was returning the number value directly before proceeding to any formatting.
2015-04-16 15:30:20 +02:00
Christophe Matthieu 8139ba5307 [FIX] web: AbstractManyField: simplify the set value from on_change methods; use the good object and toggle the internal flag 2015-04-16 14:31:06 +02:00
Christophe Matthieu e6fdfaf231 [FIX] web: on2many editable list: remove hanlder to relad the view because no need (the deferred are good). Reset the dataset in set_value because on change send a list of command with all values (link, update, created). Link id into the dataset when update cammand if needed. 2015-04-16 12:52:48 +02:00
Christophe Matthieu 7d3cda215a [IMP] web: web.form_relational: Change widgets to use AbstractManyField. Remove custom insertion in the DataSet to improve the managment of cache and the odoo commands list. this.get('value') return the list of ids and virtual ids and get_value return a commands list. 2015-04-15 13:31:20 +02:00
Christophe Matthieu 145beaf73f [IMP] web: remove unused widget x2many_counter 2015-04-15 13:31:20 +02:00
Christophe Matthieu d8c52d677b [IMP] web: remove unused widget many2oneButton 2015-04-15 13:31:20 +02:00
Christophe Matthieu 64ce3df5d7 [FIX] web_kanban: display add button for many2many kanban view 2015-04-15 13:31:20 +02:00
Christophe Simonis 0e2a453fe2 [MERGE] forward port of branch 8.0 up to ba54a66 2015-04-14 12:22:33 +02:00
Nicolas Lempereur 00099db4f3 [FIX] css: move ie9 targetted rules to ie.css
Moving existing rules targetting IE9 or less to addons/web/static/src/css/ie.css
2015-04-13 18:24:10 +02:00
Nicolas Lempereur 8a285e6a62 [FIX] css: ie9 specific fixes
Create a new stylesheet for IE9 and less custom css.

The issue #6198 and #6201 is present in IE9 since a div with height 100% inside
a table-cell (i.e: td tag) element only take the minimum height possible for the
content.

For issue #6198: in IE9 a kanban tile could not be moved to an empty kanban,
this fix sets a minimum height for a empty column (80px, the size of two empty
tiles) so now a tile can be moved in the 80px in the top of the column.

For issue #6201: graphs took the minimum height in IE9, this fix set a fixed
height to improve the situation.

For issue #6200: in IE9, the list view could wrongly not go the next line
even if its width is 100%. For the given case, the display CSS property of
these listview is set to value "block".

opw-632415 opw-632417 opw-632416
2015-04-13 18:23:58 +02:00
Christophe Simonis 3206a35aed [MERGE] forward port of branch 8.0 up to 8ac8281 2015-04-13 12:07:58 +02:00
Aaron Bohy b4dd0b6f8c [IMP] Web: ControlPanel: properly and securely expose nodesets 2015-04-10 15:34:12 +02:00
Cedric Snauwaert 9d87d15db6 [ADD] new fields.Monetary + updated widgets
Enhance current widget="monetary" client-side feature and
convert it to a first-class type of field, allowing proper
server-side behavior.

- fields: add field.Monetary, similar to fields.Float but
  supporting a `currency_field` attribute instead of the
  decimal_precision attribute.
  `currency_field` indicates the field holding the
  related currency on the same record.
  The symbol of that currency is used when displaying
  the field, and the rounding of the currency is applied
  instead of the usual decimal precision.
- avoids application of a second decimal precision rounding,
  as was the case when the model field was a `fields.float`.
- removes the need for adding explicit boilerplate to each
  view containing a monetary field, i.e.:
    widget="monetary" options="{'currency_field': 'currency_id'}"
- res.currency: add new field decimal_places needed to round
  value at the correct decimal places
- web: cache all currencies, rounding and symbols at
  webclient startup to speedup monetary fields
- new widget monetary for list view + adapt widget monetary
  on form view

Limitations:
- if the currency_field is a related field, the server-side
  application of currency rounding will only work when the
  record already exists, not during creation (to be fixed)
- this field is only supported in the new API
2015-04-09 19:05:44 +02:00
Aaron Bohy d1056939ad [FIX] Web: pager for ListView in One2Many fields
The pager was not displayed in One2Many List views. This fix applies the
same behavior as in One2Many Kanban views, which is probably not the
best way to do it, but which works fine.

The issue was caused by 2 things:
   - The One2Many.FormView template removes the condition around  the
     buttons/pager divs of the FormView template. However, it was using a
     selector that does not seem to be used anymore. We thus removed it
     and the buttons/pager divs are now in the rendered One2Many List View
   - The rendered pager was appended to this.options.$pager whereas it
     should be appended to the corresponding div in its own template.

This commit should not be forwardported
2015-04-08 10:48:50 +02:00
Christophe Matthieu 8df3f14f4b [IMP] web: new AbstractManyField in order to avoid duplicated code 2015-04-07 14:06:58 +02:00
Christophe Matthieu 03d04fe5bb [FIX] web: wrong crash manager variable name 2015-04-07 14:06:58 +02:00
Nicolas Lempereur 37959d45f3 [FIX] qweb: css minified in multiple page for IE
On internet explorer 6, 7, 8 and 9, the limit of CSS rules in a stylesheet is
4095 (http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/10164546.aspx).

This commit breaks down a CSS bundle in several pages for these IE versions.

To do this, the CSS tag added is of the kind : /web/css.0/{xmlid}/{version} in
which there is:

- the whole CSS if there is no more than one page,
- a list of @import pointing to the multiple pages.

note: if a modification lowers the number of page, an old page may stay in
ir_attachment (e.g: go from 4 to 3 pages, the old 4th page of another version
will not be deleted untill the number goes again up to 4).

Note: the method css(self) previously returned an unicode variable (the first
time) or an str variable (the following times, if already cached), the fix
also correct this so an str variable is always returned.

fixes #5050

opw-627116
2015-04-07 09:56:44 +02:00
Denis Ledoux 8121f29848 [FIX] web: float seen as changed with digits set to 0
Do not check float_is_zero for float fields with
digits specifically set to 0, it means
the rounding precision is infintie for those ones,
and tmp === val is enough.
2015-04-03 16:37:28 +02:00
Jérome Maes 093e39bd17 [IMP] web, website_blog, website_forum, website_sale : uniformize the way to add comment by redirecting to login form (if not logged) and keep the parameters (i.e. the comment) when redirecting to the comment route. The comment route must now be GET and POST. 2015-04-03 13:29:58 +02:00
Géry Debongnie d12bf0eb4a [FIX] web: don't crash when switching views in firefox
For some weird reasons, IE and Chrome (or jquery?) bind the global
variable 'event' to the last triggered event (I guess).  Of course,
our code depended on that behavior, but Firefox does not like it and
crashes when we try to read the 'event' variable.  This fix simply gets
the variable as first argument.
2015-04-03 11:13:53 +02:00
Christophe Matthieu e8e3a4bedf [IMP] web: allow to start the functional modules even if other modules are wrong. Adds the list of missing modules in modules can not be started. 2015-04-02 11:47:05 +02:00
Christophe Simonis 16f23dd43a [MERGE] forward port of branch 8.0 up to 8ad1105 2015-04-01 19:31:22 +02:00
Christophe Simonis 8ad11055bb [MERGE] forward port of branch saas-3 up to 12f600c 2015-04-01 19:13:25 +02:00
Christophe Simonis 12f600cec9 [MERGE] forward port of branch 7.0 up to 35077af 2015-04-01 19:07:59 +02:00
Cedric Snauwaert 80d3adc1f3 [FIX] web: when converting a node back to xml, correctly escape node content 2015-04-01 11:02:31 +02:00
David Monjoie 27594146b5 [IMP] web: added readonly checkmarks fix in saas file
I forgot to put the new rule of cc9f2919be in the saas file.
opw 630611
2015-03-31 14:28:52 +02:00
Yannick Tivisse 981b978a35 [IMP] web: responsive centering of the 'Try to reconnect' banner + color uniformization 2015-03-31 10:06:07 +02:00
David Monjoie cc9f2919be [FIX] web: fixed opacity of readonly checkboxes
Apparently, browsers decide how they want to style readonly inputs,
and it seems like Firefox is greying them out while Chrome doesn't.
We use an opacity: 0.5 rule to grey them out ourselves in Chrome,
but in Firefox they are not dark enough to read easily because of
the double greying. I checked with the designers but they don't
have any better fix for that.
2015-03-30 15:00:34 +02:00
Christophe Simonis cd08281979 [IMP] web: debug menu extra actions available to users in "Configuration" group 2015-03-27 13:14:46 +01:00
Géry Debongnie a35badc00b [FIX] web: graph view should respect graph type
The graph view is supposed to load in a given mode, as described by the
type attribute ('bar', 'line', 'pie').  However, the type attribute in
the fieldviewget was ignored, which means that the graph view was
always loaded in bar mode.
2015-03-27 10:05:11 +01:00
Christophe Simonis adbc6ae5e9 [MERGE] forward port of branch saas-6 up to 58d6bb3 2015-03-26 19:28:16 +01:00
Christophe Simonis 313acf87a2 [MERGE] forward port of branch 8.0 up to d780014 2015-03-26 18:44:22 +01:00
Christophe Simonis d780014248 [MERGE] forward port of branch saas-3 up to ce69064 2015-03-26 18:00:06 +01:00
Christophe Simonis ce690649e9 [MERGE] forward port of branch 7.0 up to 2a0c018 2015-03-26 17:56:05 +01:00
Goffin Simon b83f5a8ef9 [FIX] ir_filters: filters not in the language of the user
the context must be passed to the get_filters function to take into account
the language of the user.

opw:630057
2015-03-26 14:41:54 +01:00
Géry Debongnie 9333c88d71 [IMP] web: pivot view should allow explicitely defined measures
In some rare cases (non stored functional fields), the pivot view should
allow it as a valid measure.  This commit changes the pivot view in such
a way that any explicitely defined measure will be added to the list,
even if it should not work, like for the non stored functional fields.

The pivot view has no way to know if a generic model has overrided the
read group method in a correct way to make it work, it is up to the
developer to make sure that measures defined in the xml are valid.
2015-03-26 09:46:18 +01:00
Nicolas Lempereur aaf9badbce [FIX] account: context/domain in move line tree
On a line write in a account.move.line tree view, the on_write return all the
sibling move lines of the written move line. The lines are then displayed even
if they do not match the current search domain.

This fix adds the context on the given on_write callback request, and in
on_create_write use a on_write_domain in this context to filter the returned ids.

fixes #3161, closes #5727

opw-630093
2015-03-26 08:59:23 +01:00
Christophe Simonis 2565aa60e0 [MERGE] forward port of branch saas-6 up to c2b4766 2015-03-25 19:14:46 +01:00
Christophe Simonis c2b4766860 [MERGE] forward port of branch 8.0 up to c54d83e 2015-03-25 18:39:17 +01:00