Commit Graph
94259 Commits
Author SHA1 Message Date
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
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
David Monjoie 6758b4cfc5 [FIX][REF] purchase: prevent confirming order if no stockable item
After discussing with jco, we decided to keep it simple and have a coherent behavior between different versions, we then changed the behavior from the one of jbefficient PR at https://github.com/odoo-dev/odoo/commit/92adf673f7bed26b89b441b8fcd4d4061d685fb3.
2015-03-10 14:22:32 +01:00
Nicolas Lempereur 9abf7a2010 [FIX] mass mailing: keep menu when back in backend
The menu was not present in 8.0 when going back from the mass mailing email
composer to the backend. This fix adds the current action id as a return_action
query string parameter and return to the correct action.

fixes #5591

opw-629526
2015-03-10 13:51:08 +01:00
Jérome Maes f798d84322 [FIX] website_rating_project_issue : fix the domain to retrieve rating of particular project and use website.image_url to display user avatar. 2015-03-10 13:05:44 +01:00
Denis Ledoux 9e4a8e814f [FIX] mail: suggested recipient for emails without author
When a message had no author (this is accepted),
a recipient without full_name, name and email address
was added to the suggested recipients of the thread,
leading to a "(no email address)" within the suggested recipients,
which is not really useful.

opw-629797
2015-03-10 11:38:44 +01:00
Géry Debongnie 1fe4cef530 [FIX] web: fix issue with search view input
This patch hopefully solves an annoying issue with the search view:
when the user types really fast (or uses a barcode scanner for example),
the resulting search string was (sometimes) missing the last few
characters.  I'm unclear on the exact reason why it happens.  From the
code, I can only guess that it happens because the scanner use a TAB
key instead of ENTER (TAB is handled in keydown event, ENTER in keyup),
or that the key events aren't in a correct order (if the user press a
key A, then press ENTER, then release ENTER, then release A, it results
in an empty key).

Anyway, the way this patch probably solves the issue is by using the
keypress event for triggering the search view.  I hope that in every
case, the keypress event are correctly ordered.  It leads to some code
I'm not really proud of this patch, but the key event handling are
quite messy.  Also, I need to handle the search string also when the
keyup event is fired, because it might change the search (for example
backspace trigger a keyup, but not a keypress).
2015-03-10 11:28:56 +01:00
Denis Ledoux a8d520552b [FIX] website_quote: do not display notifications in website quote
Some information should be hidden from the customer.
Changes of price, for instance.

opw-629746
2015-03-10 10:39:43 +01:00
Goffin Simon 9562bf8398 [FIX] account_payment: supplier invoice on more then one payment oder
The field move_line_id only shows account move lines that still have
an amount to pay. This was lost during 333e83fc5b.

opw: 625946
2015-03-10 09:14:14 +01:00
Ajay Patel 87ac4da807 [IMP] hr_timesheet_invoice: add default type to "Contract" when configuring timesheet accounts 2015-03-09 22:19:10 +01:00
Yannick Tivisse ee91d1e09c [FIX] website_hr_recruitment: partner created on application form creation
This is a huge PITA for our HR department because they have to re-create
partner for every applicant (even the refused ones...)
2015-03-09 21:22:47 +01:00
Christophe Matthieu 74497a667f [FIX] website_sale: If there is no description_sale for the product set the cart display the product name and 'False' 2015-03-09 20:34:01 +01:00
Christophe Matthieu 513d1a26d1 [FIX] summernote: Summernote change the native id of the editable area if a script use a unique id, summernote break the default comportment. Replace id by data-note-id to set the editor 'id' 2015-03-09 16:33:03 +01:00
Nicolas Martinelli 2cc09e86af [FIX] web: on_change event on one2many fields was not fired if an attribute is mandatory (courtesy of Christophe Matthieu)
opw: 626974
2015-03-09 16:20:36 +01:00
Christophe Simonis 6cce8d5a55 [FIX] website_forum: remove duplicated method 2015-03-09 16:07:44 +01:00
Christophe Simonis 0894bdafe2 [MERGE] forward port of branch 8.0 up to 5e3e41b 2015-03-09 16:06:29 +01:00
Frédéric van der Essen 18a44a5476 [FIX] point_of_sale: automatically add a default payment method when entering payment amount if there was none. 2015-03-09 15:46:28 +01:00
Frédéric van der Essen c11edf0423 [FIX] pos_loyalty: hilight the reward button if there's available rewards. 2015-03-09 15:33:43 +01:00
Frédéric van der Essen 6ca0ccbd57 [FIX] point_of_sale: centering the icon in the circle. 2015-03-09 15:33:43 +01:00
Frédéric van der Essen 1e4b6b87b7 [FIX] point_of_sale: larger payment buttons 2015-03-09 15:33:43 +01:00
Christophe Matthieu 1b71399de2 [FIX] ir.qweb: The name of the template should not added to the first tag of a template. 2015-03-09 15:28:49 +01:00
qdp-odoo 5e3e41b730 [FIX] mrp_repair: removing deprecated and confusing tooltip on guarantee_limit 2015-03-09 15:12:31 +01:00
Olivier Dony 3a8ce072cd [FIX] sale_stock: context is generally frozen in 8.0 2015-03-09 15:03:19 +01:00
Olivier Dony 64da3c5e17 [FIX] website_forum: hide questions coming from abusive users
When a user's karma is driven to a negative value
due to repeated abuse or the posting of spam,
automatically hide all their posts from public
view.
This will reduce the effectiveness of their abuse,
and simplify moderation and cleanup.
2015-03-09 14:41:14 +01:00
Olivier Dony 13476c844d [FIX] fields.html, forum: opt-in stripping of @style attrs
For public-facing HTML content provided by the user,
`<style>` tags and `style` attributes should be stripped
automatically, as they can easily be abused to deface
pages for abusive users and spammers.
<style> tags were already stripped, the optional `strip_style`
for fields.html enables the automatic stripping of style
attributes.

This is opt-in because custom style attributes are still
desirable in trusted HTML fields.
2015-03-09 14:41:14 +01:00
Christophe Simonis 40d9f7c7d8 [FIX] mrp: correct import 2015-03-09 13:30:01 +01:00
Christophe Simonis 449f601f8e [MERGE] forward port of branch 8.0 up to 948befb 2015-03-09 12:40:57 +01:00
Denis Ledoux 948befbb34 [FIX] mrp: set decimal precsion on qty field for produce wizard
In manufacturing bom lines, digits_compute is set
to the precision 'Product Unit of Measure'.

It should be the case as well in the produce wizard,
otherwise you won't be able to change the quantity
within this wizard to the according product quantity precision

opw-629657
2015-03-09 12:23:14 +01:00
Denis Ledoux 20173836b1 [FIX] mrp: preserve bom lines order within produce wizard
BOM Lines are ordered by a sequence field,
the "handle" widget makes even possible the lines reordering.
The order was respected within the mrp.production
(in o2m products to consume and consumed products)
but not within the mrp.product.produce wizard

opw-629629
2015-03-09 12:14:24 +01:00
Richard Mathot 4e8eacdbbf [REM] account: unused view call
This view was hidden before saas-6, it seems it is a leftover from old
code.
2015-03-09 12:11:34 +01:00
Christophe Simonis 416f0246ac [MERGE] forward port of branch saas-3 up to 4a3c471 2015-03-09 12:03:22 +01:00
Denis Ledoux d93c4bef1d [FIX] mrp: always use float_compare to compare floats
When comparing a float value to 0.0,
it can happen the float value is very near to 0.0,
but not exactly 0. This is the point to use float_compare,
```float_compare(qty, 0, self.pool['decimal.precision'].precision_get(cr, uid, 'Product Unit of Measure'))´´´
will compare qty to 0, with the product unit of measure precision (0.01 by default).
So, if qty is equal to 0.00001, this means the qty is regarded as equal to 0.0.
(float_compare will return 1).
2015-03-09 11:49:41 +01:00
Christophe Matthieu fb8da05e42 [FIX] website: snippet editor: Many2one autosearch a location for the event is working, but result is not saved 2015-03-09 11:26:17 +01:00
Christophe Simonis 4a3c4713e9 [MERGE] forward port of branch 7.0 up to 209ce6f 2015-03-09 11:24:32 +01:00
Thibault Delavallée 9497af4905 [FIX] website_event_track: do not copy tracks and sponsors when duplicating an event 2015-03-09 10:21:02 +01:00
Xavier Morel 8bc89de4d6 [IMP] ws doc: selectivity of the highlight right-alignment 2015-03-09 09:53:00 +01:00
odoo-tac 209ce6f48c [FIX] Fixed a typo in project.py exception message 2015-03-06 17:11:57 +01:00
jesusVMayor 591d207ff9 [FIX] sale: reset state of exception procurements only
During the delivery of a picking the procurents in exception or canceled are
reset to confirm state.
As the list of picking was a list shared in the loop, other procurements may be
reset to confirm as well.
2015-03-06 16:00:54 +01:00