Commit Graph
107816 Commits
Author SHA1 Message Date
Nicolas Martinelli 66732acabf [FIX] hr_holidays: leaves by department
Backport of commit 80963c33b0

opw-702202
2016-12-28 11:24:13 +01:00
Fabien Pinckaers 347494c06b [FIX] gamification: avoid sending blank emails 2016-12-27 15:28:01 -08:00
Christophe Simonis aa09c52205 [FIX] account: correct query
fix up of commit e98c329039.

opw:702908 opw:702909 opw:702910 opw:702911 opw:702918
2016-12-27 21:02:14 +01:00
Nicolas Lempereur 2639d634bb [FIX] calendar: day of month is expected filled in code
Before this commit there was an error when we chose a monthly recurrence
with "Day of Month" of type "Day of" because the code expect them to be
set. In any case they are required field so if they are not field we
should just ignore it.

opw-702852
2016-12-27 16:50:39 +01:00
Nicolas Lempereur d36dca2d2d [FIX] website_sale: 2 state tags and same shipping change
If website_sale_delivery is installed, when we choose same invoice
address as shipping or another one, a new set of country/state are
displayed.

It is done since if we are using the invoicing address as shipping, the
address must be in the allowed shipping countries and states.

This was solved for some instances with 164b8ed01a but failed in other
instances.

With this fix the two state select tags have references to their own
options which allow us to have it alright for the several possibilities.

opw-693127
2016-12-27 15:44:55 +01:00
Nicolas Martinelli 80963c33b0 [FIX] hr_holidays: leaves by department
In the report "Leaves by Department", the start/end dates of the
holidays are computed based on the UTC datetime stored in the database.
This makes the report inconsistent with what is displayed in the
interface.

opw-702202
2016-12-27 15:20:30 +01:00
Nicolas Martinelli bf88647e8d [FIX] account: show maturity date
When creating a journal entry manually, the user needs to be able to
define the maturity date. It was always shown in v8.

opw-702652
2016-12-27 14:28:28 +01:00
Nicolas Lempereur a497300be8 [FIX] website_sale: star rating for first comment
For first comments on a product in the ecommerce we would not
have the star rating displayed till a page refresh, and the star widget
would not be reset after posting.

Also in other situations, we would get a 0 star widget when posting
comment without rating, but after a refresh the widget would dispappear.

With this change the new comment get the same stars as when refreshed.

opw-702608
2016-12-27 13:16:25 +01:00
Goffin Simon fe705b514c [FIX] point_of_sale: Product quantity in Orders Analysis
The product quantity in Orders Analysis must be expressed in the uom
of the product like in the Sales Analysis. In a POS order line, the uom
is always expressed in the uom of the product.

Closes #14599

opw:696927
2016-12-27 11:09:08 +01:00
Nicolas Martinelli cd3988e689 [FIX] base: duplicate ir.model.constraint
There is a contraint on `ir.model.constraint` that contrains the name to
be unique per module.

opw-702516
2016-12-27 10:14:02 +01:00
Nicolas Martinelli 285964b710 [FIX] event_sale: ticket price currency conversion
When adding a ticket to a SO, the currency of the SO is not taken into
account in order to convert the ticket price.

opw-702683
2016-12-26 16:25:45 +01:00
Goffin Simon e98c329039 [FIX] account: where_clause in function _credit_debit_get
The where_clause needed a "AND" to work.
The where_clause didn't contain allias for "account_move_line" so when
injecting a condition with "account_move_line" it crashed.

opw:702538
2016-12-26 13:35:11 +01:00
Nicolas Martinelli 634fb9f390 [FIX] purchase: purchase count
The field `purchase_count` is described as '# Purchases' (which is an
integer), so the user should expect the number of POs associated to the
product, not the quantity ordered as it is the case before this commit.

opw-697815
2016-12-26 13:27:01 +01:00
Nicolas Lempereur 46f84b0284 [FIX] mail: linkify livechat message so frontend has them
In ff56304f58 a solution was tried to have message posted from
backend livechat linkified for visitor in frontend. This was
forward-ported when it should not have been and introduced issues
including:

- `href="{link}"` would become `href="<a href="{link}">{link}</a>"`

- if html entities such as the ones for U+00A0, and entities <, >,
  ', " or ` were next to the link, the entity would be linkified
  too (up to the ;)

This happen because utils.linkify function is to be used with text
content and not html which was the case in this instance.

opw-693457
opw-702410
2016-12-26 12:18:09 +01:00
Nicolas Lempereur 88d7e7f646 Revert "[FIX] mail: livechat escaping"
This reverts commit 1c60a631df.

The fix was done to conciliate 83956d4 and ff56304f5 but ff56304f5 was
forward-ported erroneously and introduced other issues.

opw-702410
2016-12-26 10:26:21 +01:00
Nicolas Martinelli 562f141ffc [FIX] stock: hide "Run Reordering Rules"
This should only be accessible in debug mode, since it is already
possible to run the schedulers (with a simialr effect) manually.
2016-12-26 09:59:45 +01:00
Nicolas Martinelli bdbda19b6d [FIX] stock: prevent concurrent procurement creation
When the user clicks on "Run Reordering Rules", it might create
procurements. However, the cron "Run mrp scheduler" will also create
procurements and might already be running in the background. Therefore,
we need to make sure that both actions don't run concurrently.

Note that the same check is done for the wizard "Run Schedulers".

opw-695607
2016-12-26 09:59:45 +01:00
Goffin Simon 22fb76a002 [FIX] mrp: field resource_type in mrp.workcenter tree view
The field resource_type in mrp.workcenter tree view must be invisible because
this field was not available in the form view before f9f4bba

Adding resource_type in the form view had no business case.

opw:698183
2016-12-26 09:47:56 +01:00
Odoo Translation Bot b21d1ae98e [I18N] Update translation terms from Transifex 2016-12-25 04:42:15 +01:00
Odoo Translation Bot 534eab0c3b [I18N] Update translation terms from Transifex 2016-12-25 02:57:37 +01:00
Odoo Translation Bot c484abf7af [I18N] Update translation terms from Transifex 2016-12-25 00:30:02 +01:00
Jérome Maes 2f82aa8230 [FIX] website_mail: remove class which hide the attachment
Attachment should be visible in website chatter.
Due to a bad copy/paste, the attachments are hidden
when website_mail_channel is installed.
2016-12-23 14:05:29 +01:00
Nicolas Martinelli 600d8b00be [FIX] stock: stock location name
The tree view of the stock locations displayes the field
`complete_name`, which is not translated. This is disturbing since
everywhere else, the `display_name` (translated) is used.

opw-693723
2016-12-23 13:22:17 +01:00
Denis Ledoux 6cb5fc33dd [FIX] sale_order_dates: commitment date for policy all at once
When the policy of the sale order is set to
`Deliver all products at once`,
the commitment date should be the maximum of the order lines lead time
rather than the minimum, as you will deliver all lines at the same time

It looks like the former behavior is applied since Odoo 7.0
d8d0b88467

It should therefore actually be applied in 7.0/8.0/9.0,
but we consider the risk too high for databases
that are used to the former behavior, and expect the old behavior.

We therefore apply this revision only in 10.0, to minimize the risks.

opw-702271
2016-12-23 13:07:27 +01:00
Denis Ledoux f5d7727e2b [FIX] mass_mailing: crash with Firefox with the breadcrumb
- When opening a mass mailing
 - Editing it and making a change (e.g. add a block)
 - Click on the breadcrumb
 - Click "OK" on the warning popup telling your changes will be discarded
 - Choose another mass mailing

A crash occured. This is basically the same case than in the revision
7bf80d22dd
but for Firefox, for which `window` is still there
`!window` returns False
but is `closed`

opw-702211
2016-12-23 12:10:09 +01:00
Nicolas Martinelli 1c60a631df [FIX] mail: livechat escaping
- In a livechat window, type a URL, then end by a space. For example,
  type "https://odoo.com " (whithout quotes)
- Press enter

It is converted into "https://odoo.com&nbsp;".

opw-702410
2016-12-23 11:22:47 +01:00
Nicolas Lempereur dd363f03da [FIX] project_issue: new issue if create_date in view
The depends for an issue inactivity_days expects a set create_date but
this may not be the case (when creating the record for example with the
field create_date in the form view).

opw-702532
2016-12-23 10:58:42 +01:00
Nicolas Martinelli 3d777ad262 [FIX] mail: escape canned responses
Create a canned response containing the character "<". It is
automatically converted into "&lt;".

The substitution field is systematically escaped, for security reason.
This causes the substitution observed. However, the canned responses are
only used in text-only messages. The escaping is therefore not
necessary, since the HTML is not interpreted.

opw-693970
2016-12-22 17:46:59 +01:00
Nicolas Martinelli bb2a948216 [FIX] web: y-axis width in graph view
Simplifies the left margin calculation logic with a pre-defined width.
In practice, more use cases should be taken into account, and that could
just make the logic overkill.

opw-697626
2016-12-22 16:14:34 +01:00
Nicolas Martinelli 10a9287f2e [FIX] sale: expense price unit
The company currency is EUR, and GBP rates are:
- 0.8414 at day 1
- 0.8389 at day 2

Then:
- Create a SO in GBP at day 1 and confirm
- Create an expense in GBP at day 2 and choose the analytic account of
  the SO
- Validate the expense and post the journal entries

Problem:
- The amount of the expense is 93 GBP
- The amount of the sale order line is 93.28 GBP

opw-696375
2016-12-22 16:13:25 +01:00
Martin Trigaux 4a515a0415 [I18N] point_of_sale: update source terms 2016-12-22 15:05:56 +01:00
Denis Ledoux 798a10082c [FIX] google_calendar: fix allday timezone synchronisation
When syncrhonizing an allday event while being in a negative timezone
e.g. Dec 22 in US/Eastner (-5:00)

The event was synchronized the day before
e.g. Dec 21

because `context_timestamp` of `start date-time-` was used,
and then the time was removed to have the date of the all day event
e.g. 2016-12-22 00:00:00 converted to 2016-12-21 19:00:00 and then the time
removed 2016-12-21.

Instead of using the `start_datetime`, we now use the start
date which stores only the date, without timezone information
(and this is what you would like in the case of an all day event).

opw-697202
2016-12-22 14:48:11 +01:00
Jason Wu 7004dc827e [CLA] signature for jaronemo
Signature done at #13100
2016-12-22 13:34:06 +01:00
Noureddine LOUAHEDJ 68a0e9c518 [CLA] Signature for noureddineme
Closes #13122
2016-12-22 13:28:26 +01:00
Martin Malorni b67e002234 [CLA] Update Microcom contributors
Addition of two and removal of one

Signature done at #13524
2016-12-22 13:26:00 +01:00
Damien Crier 34e342f324 [CLA] add damdam-s to C2C signature
Closes #13500
2016-12-22 13:24:36 +01:00
Nicolas Martinelli a67ba328d7 [FIX] web: y-axis precision
In graph view, the y-axis always uses the standard float precision with
2 digits. This might not be enough if the precision was defined
differently for a given float type.

opw-697625
2016-12-22 11:25:59 +01:00
Denis Ledoux 09066fbbd5 [FIX] calendar: fix allday onchange user tz
While choosing a start/stop datetime in a timezone hour
were the UTC value is within the next day,
e.g.
Start time Dec 22 20:00 in US/Eastner (UTC -5:00)
Therefore, start time Dec 23 01:00 in UTC
Checking the "all day" box made the start time set to
Dec 23 instead of what the user expected, Dec 22.

This is because the onchange simply took the UTC datetime
(Dec 23 01:00) from which it removed the time (Dec 23).

This revision make sure to remove the time from the
user timezoned datetime instead, so the day set
remain the same day than what was set in the datetime.

opw-702065
2016-12-22 11:23:39 +01:00
Daniel M c480ec46cc [CLA] signature for damendieta
Signed at #13659
2016-12-22 11:16:03 +01:00
Henry Zhou 2455e17842 [CLA] signature for jlzhou
Done at #13888
2016-12-22 11:08:45 +01:00
Iker 3ed91cea17 [CLA] signature for iluque
Signed at #13976
2016-12-22 10:58:50 +01:00
smartupdo 22e563af5f [CLA] signature for smartupd
Signed at #14010
2016-12-22 10:57:01 +01:00
lnkdel fd985ffaf9 [CLA] signature for Liujianyun
Closes #14251
2016-12-22 10:52:26 +01:00
rigo1985 c0889a0763 [CLA] signature for rigo1985
Signed at #14553
2016-12-22 10:51:06 +01:00
jclopezar f96a872047 [CLA] signature for jclopezar
Signed at #14707
2016-12-22 10:50:15 +01:00
Martin Trigaux dae737eca1 [IMP] pos: better default start date
1;2802;0c
now() was bad as it excluded the orders of the latest session
midnight is not good either because
- midnight server != midnight user (timezone)
- some restaurant, bars start in the evening and finish after midgnight

With this default, with 4 sessions:
- POS A, start 2016-12-21 08:05:36
- POS B, start 2016-12-21 08:08:11
- POS A, start 2016-12-22 08:17:51
- POS B, start 2016-12-21 08:19:23

The default start date will be 2016-12-22 08:17:51 to include all orders of
both sessions.
2016-12-22 10:37:38 +01:00
Nicolas Martinelli a552a74f4f [FIX] web: rotate graph label
When there are too many labels to display on the x-axis, they overlap
and it simply becomes unreadable. By slightly rotating them, this can be
avoided in most cases.

opw-697625
opw-697626
2016-12-22 10:06:19 +01:00
Martin Trigaux eca8a08710 [FIX] point_of_sale: generates sale details using dates
The dates were lost when in render_html as replaced by the one in the context
(None so fallback on today).

Avoid calling twice get_sale_details

Fixes #14789
Replaces and closes #14790
2016-12-22 09:51:03 +01:00
Goffin Simon 804ef6f6c0 [FIX] account_asset: Wrong account set in Vendor Bill
When adding a product with an asset type in a vendor bill, the account
set on the line must be the asset account.
Inspired from 11e834a4c1

opw:697557
2016-12-21 16:32:09 +01:00
Raphael Collet 81a4830c73 [FIX] base: race condition in filestore GC (ir.attachment) 2016-12-21 16:14:25 +01:00