Commit Graph
94295 Commits
Author SHA1 Message Date
Jeremy Kersten ff204d4cf6 [FIX] website_crm_partner_assign: only display website_published grades.
Typo in condition, result was the opposite of the expected behavior.
2015-03-16 20:29:02 +01:00
Christophe Simonis 24e2cc5b44 [FIX] web_calendar: do not use magic var event.
It works in Chrome, but not in Firefox.
2015-03-16 16:35:55 +01:00
Damien Bouvy 6922ec6123 [FIX] website_quote: t-field instead of t-raw avoid access rights problems
When displaying a field, it is usually preferable to use the 't-field' qweb tag
to avoid access problems: the name_get is automatic so you don't need to access
the model sub-field (in this case, you don't need to access the res.partner name)
2015-03-16 16:09:16 +01:00
rma-odoo f5a506743e [FIX] web_calendar: Selection fields used as color attributes of calendar view 2015-03-16 13:25:00 +01:00
Jérome Maes 71c624163c [FIX] sale, sale_layout : template crashing. Output pdf was unreadable due to colspan=100. Now using fixed number of column. 2015-03-16 13:18:53 +01:00
Olivier Dony 632ca11a94 [FIX] mail: no crash when generating footer on models w/o _get_access_link() 2015-03-16 11:37:03 +01:00
Olivier Dony 10b8f1c907 [FIX] forum: "Relevancy" is old-fashioned -> Relevance 2015-03-16 11:34:22 +01:00
Nandan Jani 6ffef2b053 [IMP] website_quote: improve navspy tracking, make history work and cleanup
Backport of master commit 742acbb454
2015-03-13 17:03:05 +01:00
Nandan Jani d1d8802a40 [IMP] website_quote: support printing for the customer
Backport of master commit ed9f8fdbb4
2015-03-13 16:55:11 +01:00
Olivier Dony 7eec97a584 [FIX] website, mass_mailing: restore original FieldTextHtml widget -> FieldTextHtmlFrame only for mass_mailing
The new `summernote in iframe` version of the
FieldTextHtml widget is not ready for prime time
yet.
Usability is not very good when used as a replacement
for the previous html editor, especially in email
composer windows, and initial loading is very slow.

For now we only enable it as FieldTextHtmlFrame for
mass_mailing templates, where isolation of the
style is important (so that recipients receive the
exact same result as was displayed on screen, without
side-effects caused by backend/frontend style)

In master the summernote version will be improved
and the old CLE version will be dropped completely.
2015-03-13 13:44:06 +01:00
Xavier Morel e93ead9093 [FIX] web_calendar: error in case of creation with quick_create disabled
Broken in 82fee7dfe8 porting of quick create to Bootstrap modals: in
case quick_create is disabled, the creation of the quick_create dialog
is bypassed and so is defining this.$input, but focus() calls still
happen and blow up.

Create a dummy $input in the constructor so it's alway possible to call
this.$input.focus().
2015-03-13 13:31:25 +01:00
Christophe Simonis e67372146d [FIX] hr_holidays: correct leave type order.
Leaves types must be ordered depending on the remaining leaves for the
current user.
2015-03-13 12:13:36 +01:00
Olivier Dony e9fe55b3d0 [FIX] crm: convert to opportunity wizard should not have a view switcher
`view_type` actually defaults to 'form', which is what
we want, but `view_mode` defaults to 'tree,form' which
is *not* what we want here
2015-03-13 11:32:33 +01:00
Josse Colpaert 242a76cc97 [FIX] stock: UoM of a product should not be changed when done stock moves exist.
The UoM of a product can be changed to whatever UoM if there have not been made any done stock moves.
If there are, you can not change the UoM.  If there are not done moves, you can not change the category
anymore as the conversion of the product_qty will give an error.

The reason we put the constraint is that we would need to change all the qty values of the quants
when we change UoM.  It is better to avoid this (e.g. rounding).  That is why we put the constraint.

There is no reason to restrict change of uom_po_id, except that it should
fall within the same category as the UoM.  (constraint)
2015-03-13 11:18:02 +01:00
Prashant Panchal 8fb4c02f4e [FIX] website_sale : publish button of variant jump to the correct page 2015-03-13 10:13:56 +01:00
Christophe Simonis 3440501fd0 [MERGE] forward port of branch 8.0 up to 890174b 2015-03-12 14:46:06 +01:00
Christophe Simonis 890174b976 [FIX] procurement_jit_stock: context are frozen. 2015-03-12 14:36:23 +01:00
Christophe Simonis f17a30259a [MERGE] Empty forward port of aa38a22.
This link module is not need in saas~6 as this behavior
is now part of `procurement_jit` module (see c5dc1288)
2015-03-12 14:34:01 +01:00
Christophe Simonis 97389d34da [MERGE] forward port of branch 8.0 up to 1ac4d31 2015-03-12 14:30:24 +01:00
Aaron Bohy 2c1e81a4a0 [FIX] Mail: mail.js Favorite search loading
In Messaging, default filters were never loaded because the action
wasn't given as argument to the searchview initialization. The action is
required for the filters to be loaded since rev. 5cd78b891b.
2015-03-12 14:16:45 +01:00
Aaron Bohy 10e13cdb25 [FIX] google_spreadsheet: 'add to spreadsheet' in Favorites
The option 'add to spreadsheet' works under the hypothesis that the
current action is a ViewManager. It crashes in other contexts (e.g. in
Messaging, mail box), as it tries to retrieve the list_view id of the
ViewManager.

We now only add the option in the Favorite menu if the current action is
a ViewManager.
2015-03-12 14:16:45 +01:00
Géry Debongnie f9cdd19cdb [FIX] web: fix searchview menus height
first, I want to say that I'm not proud of this.  Let's just say that it
is better than the previous code (of which I'm not proud either).

The issue is that the sub menus (filters/groupbys/favorites) aren't very
good when their height is too big, and they're hidden below the screen
without scrollbar.  Previous code tried clumsily to compute the correct
max height in js, but it was only done in filters menu, and did not
always work.  This code do the same in css.  This would be good except
that it is just an estimation: calc(100vh - 125px).  It assumes that
the header will approximately take 120px, and size the max-height
accordingly.
2015-03-12 11:46:33 +01:00
Denis Ledoux 43b3b28708 [FIX] account: Possibility to choose employees in bank statements
The domain on the partner field in the bank statement lines
was too restrictive: You should be able to select partners
that aren't either customer or suppliers. For instance, your
employees.

opw-630017
2015-03-12 11:34:15 +01:00
Aaron Bohy a1d319a8fb [FIX] Web: view_list.js: _.template()
The signature and behavior of function template() of underscore.js has
been changed from rev. 1.7.0. It doesn't accept an initial data object
anymore, and always returns a function.

This commits adapts our calls to _.template(). This fixes display bugs in
list views (e.g. the progressbar which was not displayed).
2015-03-12 11:16:06 +01:00
Denis Ledoux 2996fd0897 [FIX] website_membership: free members while not logged in.
By default public/portal users do not have the access
rights to read the partners.

opw-628857
2015-03-12 10:10:19 +01:00
Olivier Dony df4bd736f1 [FIX] search view: autocomplete: further improve support for rapid barcode scanning
This patch removes the asynchronous code that was
still used to open the autocompletion drawer.
Even with the setTimeout delay forced to 0, the
asynchronous handling meant the final ENTER
keyUp event could be processed before the opening
of the autocompletion drawer related to the last
key pressed. This would trigger the search with
the search string of the previous autocompletion
popup, missing the last few keys.

Also handle ENTER at keyDown, because in some
rare cases a barcode scanner may emit only
the keyDown event for ENTER, without the
corresponding keyUp, causing a merge of two
successive scanned barcodes.

Based on many tests conducted with different
barcode scanners, the only thing that
is guaranteed is the correct order of the keyPress
events for all regular characters, and the
fact that the ENTER keyDown and/or keyUp will
always be sent after them.

All other events can be mixed or simply missing
if you make a rapid succession of scans, especially
if done with a long series of barcodes.

Scanners tested (with 1ms data transmission delay):
 - Honeywell Eclipse MS5145
 - Dacomex Slim 50mm CCD scanner
2015-03-11 17:59:46 +01:00
Josse Colpaert db45099a27 [FIX] stock: Cancel button visible for picking in waiting another operation fixes #4718 2015-03-11 17:51:50 +01:00
Josse Colpaert aa38a2209e [IMP] stock: add procurement_jit_stock: improve performance by always doing runs of procurements to create stock moves in batch 2015-03-11 16:50:45 +01:00
Josse Colpaert 1ac4d31db7 [FIX] stock: Make sure we can do a return of a stock move with UoS 2015-03-11 16:23:23 +01:00
Josse Colpaert 656f5a4498 [FIX] mrp: Extra moves and multiple split corrections in consumed and produced moves
ORM will show lines in production.move_lines even if done (which the domain should avoid)
when processing the production (as they are probably still in cache).  We explicitly skip those lines.

When producing more with lots in consumed and produced, we added the consumed_for link as
the lot tracking requires to have this link between the consumed and produced moves.

The extra move of the produced goods should also be confirmed and not created as confirmed immediately.
That way it can still apply the push rules.  (Gabriel Demmerle)
2015-03-11 16:07:26 +01:00
Xavier Morel 4cba11a7d4 [FIX] ws doc: table border colors in right column
Table borders remained the same color as in the "light" half, an overly
bright gray (#ddd) on a very dark background rather than a very light
gray on a white background.

Convert to a shade of dark gray lighter than the background, but nowhere
near as light as the text itself.
2015-03-11 14:46:50 +01:00
Géry Debongnie 438c33ed5f [FIX] web: usability fix in searchview
* when users press ENTER after editing some custom search, the resulting
  filter is now applied.
* when users press ENTER in favorite menu, save current search, the
  current search is now saved
2015-03-11 13:58:17 +01:00
Géry Debongnie cda9221d7c [FIX] web: prevent graph view from crashing (sometimes)
if the graph view is set in bar mode, and does not have any groupby,
then it tried to read some property from its viewmanager, which results
in a crash.  It is most likely the remnants of the old code, this commit
correctly sets the string to the current measure.
2015-03-11 13:43:26 +01:00
Jaysinh Shukla be31cc299a [FIX] website_forum: fixed issue when voting the vote
area was not updated due to typo in JS.
2015-03-11 11:27:21 +01:00
Julien Laloux a20545a936 [IMP] web: add no update info on metadata view (debug mode) 2015-03-11 11:10:42 +01:00
Goffin Simon fddab4c20d [FIX]delivery: price of a delivery method not correct
get_price must check the total_amount price without the delivery amount
to compute the delivery prices.

opw:629233
2015-03-11 10:18:51 +01:00
Goffin Simon 0f943ef736 [FIX] account: Impossible to reconcile a partially reconciled invoice.
In Bank Statements,  reconciliation of a partially reconciled invoice
is possible.

opw:629443
2015-03-11 10:13:14 +01:00
Jay Patel 82ab5d0f0e [FIX] payment_adyen: update keys used to generate the merchant
signature + correctly raise errors in validation.
2015-03-11 09:59:47 +01:00
Christophe Simonis 648a558dd7 [IMP] stock: speed up _location_used method. 2015-03-10 19:07:26 +01:00
Christophe Simonis 41ab66be78 [FIX] point_of_sale: search tax_ids key in the right place 2015-03-10 19:01:04 +01:00
Christophe Simonis 9eccc71a14 [MERGE] forward port of branch 8.0 up to c0496ed 2015-03-10 18:33:30 +01:00
Christophe Simonis c0496ed03a [MERGE] forward port of branch saas-3 up to f8a9405 2015-03-10 18:00:43 +01:00
Christophe Simonis f8a94057e5 [MERGE] forward port of branch 7.0 up to a5e3269 2015-03-10 17:51:16 +01:00
Nicolas Lempereur a5e32690b0 [FIX] tests: UTC used in test when it should not
The test for account followup use UTC time, but the default `date_maturity`
and `date_due` of an account invoice come from fields.Date.context_today`.

One failing test for project_timesheet also used `today` instead of
`context_today`.

So depending on the test user timezone, an error of one day (if UTC time
and user time are on different day) occured which failed the tests.

For example:

* user has GMT+1 timezone, test fails 0:00am–1:00am (11:00pm-0:00am in UTC)
* user has GMT+3 timezone, test fails 0:00am–3:00am (9:00pm-0:00am in UTC)

This fix removes UTC use in the tests.
2015-03-10 17:33:43 +01:00
Xavier Morel ef020a2574 [FIX] web_calendar: conversion of moment format strings to fullcalendar
AM/PM format specifier wasn't correctly converted, and was thus
displayed as a literal A/a in fullcalendar
2015-03-10 17:31:08 +01:00
Xavier Morel ddab9f8125 [FIX] web_calendar: display view's @string in quick create dialog
The quick create popup tried to look up the parent's .string and
.name (or the parent's field_widget's) *but* the calendar view didn't
have a .string, and its .name gave priority to the view's name (as
returned by fields_view_get) as opposed to its @string.

Store the view arch's @string to CalendarView#string, so the quick
create dialog can find and use it.
2015-03-10 17:31:07 +01:00
Christophe Simonis 058cfd7a86 [FIX] hr_timesheet: correct context used in action 2015-03-10 17:28:18 +01:00
Xavier Morel 82fee7dfe8 [FIX] web_calendar: incorrect style of quick_create dialog
Replace jquery-ui dialog by bootstrap modal
* fixes general styling (jquery-ui styled heading)
* fixes z-index stacking (jquery-ui dialog appeared on top of
  "slow-create" boostrap modal)
* fixes disappeared close button
2015-03-10 17:03:19 +01:00
Denis Ledoux 89093a2616 [FIX] hr_timesheet_sheet: performance improvment of timesheet report
It always better to avoid doing the same join multiple times when
possible.

opw-629857
2015-03-10 16:20:40 +01:00
Nicolas Martinelli f7de3f0603 [FIX] account: product variants prices in invoices
when a customer invoice is created directly,
if a product variant is selected,
it now computes the price from the product variant and
not from the product template.

opw: 629285
2015-03-10 14:56:25 +01:00