Commit Graph
126133 Commits
Author SHA1 Message Date
Lucas Perais (lpe) 462681723b [FIX] web: search input date in another timezone
Put the browser in timezone Sao Paulo (Or like West of UTC)

Trigger the autocomplete (and the subsequent search) on a date field
by writing a date (in the locale format) in the search view

Before this commit, the domain sent to the server contained the date as the day
**before** the one asked for in the input

This is because, the string input is parsed and gives:
input = 12/02/2018
When creating the moment object:
> since there is no explicit time, moment will interpret it as 12am (midnight)
> We force moment to consider the string as being UTC (function: moment.utc())
> the moment contains, as output the time ** 2018-02-12T00:00:00 UTC **

When getting the facet value for making the domain
> we call toDate on the moment object, which, according to the browser is UTC and will
be converted to the locale timezone before formatting
> And the domain will use the date 2018-02-11T22:00:00 Brazil/SaoPaulo
which gives the day before the one we asked for

After this commit, this issue doesn't arise, because we don't convert the moment into a Date,
and we directly format that moment into a string

OPW 1903224

closes odoo/odoo#28689
2018-11-20 10:06:18 +00:00
Julien (juc) Castiaux 8ccc976c20 [FIX] website_crm_partner_assign: unpublised parter rendered empty
Unpublised parters were rendered empty instead of not rendered at
all in the resellerrs tab of website

opw-1903573

closes odoo/odoo#28917
2018-11-21 14:43:57 +00:00
mgh-odoo 52f13c5f6d [IMP] purchase: PO status changed to more suitable
purpose of this commit is to change invoiced status
    "No Bill to Receive" to "Fully Billed"

Task: 1857963
Closes: #25804
2018-11-20 10:03:53 +00:00
Géry Debongnie 6eb217ef79 [FIX] web: properly cleanup after notification tests
The NotificationService has a side effect: it adds a div inside
document.body. We could implement a cleanup mechanism for services, but this
seems a little overkill since services are not supposed to be destroyed anyway.

closes odoo/odoo#29099
2018-11-28 13:38:21 +00:00
Géry Debongnie 0e40d843d5 [DOC] doc: add warning in JS test documentation
This commit adds a warning for common causes of mistakes, while running
the JS test suite.  It is possible to lose a lot of time trying to make the
tests pass if one does not notice that the browser window is not zoomed at 100%.

Maybe this warning will help someone in the future...

closes odoo/odoo#29021
2018-11-28 12:47:55 +00:00
Robot Odoo 7f1f7794fb [MERGE] website(_*): reorganize the JS
Reorganize the javascript to use conventional website widgets, rpc calls, classes, ... This will allow to better improve, fix and extend the existing behaviors. This is also a first step towards automatically testing website features more correctly.

This work was started with  https://github.com/odoo/odoo/pull/27719

closes odoo/odoo#28404
2018-11-28 14:41:26 +01:00
Robot Odoo e48cc56b3b [IMP] mrp: unbuild ui improvements
Add some tooltips and rename labels for lot and source_location fields.
More details in specific commits

Task link : https://www.odoo.com/web?#id=39843&action=327&model=project.task&view_type=form&menu_id=4720
Pad link : https://pad.odoo.com/p/r.c50cfff56ca538324f15214213c860d9

closes odoo/odoo#27017
2018-11-28 14:41:02 +01:00
Darshil Trivedi b2ec6bc7ad [IMP] mrp: BoM and product as readonly when a MO is set on UB.
Since commit 2bd10fa757 when the user specify a MO the
unbuild use the existing moves raw and moves finished in order to create the unbuild
moves. In this case the bom_id and the product_id is not needed since we don't generate
unbuild move from the BoM

This commit is related to task ID 39843.
2018-11-28 11:50:24 +00:00
Darshil Trivedi e25b9c9ffa [IMP] mrp: unbuild tooltips and fields label rename
The purpose is to help the user if he has difficulties
to know the purpose of a field. The field for tracking
was named lot but it is also used for serial number. That
could be confusing for the end user. Also rename source as
source location in order to be coherent with destination
location

This commit is related to task ID 39843.
2018-11-28 11:47:22 +00:00
qsm-odoo 5bb426c9de [FIX] website_slides: move JS in the correct file
Commit https://github.com/odoo/odoo/commit/6f5748d28854305bb33ffe54e5f94bab4a14828f
split and moved JS in different files... but in files which were in
different assets.
2018-11-28 10:28:53 +00:00
qsm-odoo 6d67ce5b7c [REF] website_*: review reorganization and enforce conventions
Review the JS reorganization made by direct parent commits and do more
to use our defined JS conventions. Also simplify JS which can be
obviously improved.
2018-11-28 10:28:53 +00:00
Andrea Ulliana c64c646d62 [REF] website_slides: reorganize javascript 2018-11-28 09:49:10 +00:00
Andrea Ulliana 08230abe3c [REF] website_sale_delivery: reorganize javascript 2018-11-28 09:49:10 +00:00
Andrea Ulliana eb5d6c212e [REF] website_mail_channel: reorganize javascript 2018-11-28 09:49:10 +00:00
Andrea Ulliana 1eab58bdbd [REF] website_links: reorganize javascript 2018-11-28 09:49:09 +00:00
Andrea Ulliana 2cdcdedef6 [REF] website_forum: reorganize javascript 2018-11-28 09:49:09 +00:00
Andrea Ulliana ed3c8d38ff [REF] website_event_track: reorganize javascript 2018-11-28 09:49:09 +00:00
Andrea Ulliana 0bd719caac [REF] website_crm_partner_assign: reorganize javascript 2018-11-28 09:49:09 +00:00
Andrea Ulliana af1244fb07 [REF] website_blog: reorganize javascript 2018-11-28 09:49:09 +00:00
jem-odoo 6e31e8d535 [IMP] sale_*: visible reinvoice policy rights
Impacted modules: sale, sale_timesheet, sale_expense

The purpose of this commit is to remove harcoded list of xml ids that
are not defined in the module 'sale'. This commit brings a new
implementation of the feature (hiding re-invoice policy on product
form view, depending of multiple user groups). The approach is more
modular and easy to extend than the previous one.
Therefore, this commit is completely technical and does not change any
functionnal behavior.

Task-1896095

closes odoo/odoo#28786
2018-11-27 14:46:26 +00:00
Raphael Collet 782885ab2f [FIX] base: translations lost after synchronization
Modifying a source term in an XML/HTML translated field can lose translations
if the same term is translated in several languages.

closes odoo/odoo#29082
2018-11-27 15:06:53 +00:00
Geoffroy Larue 5cfbead81e [REM] crm_project: remove module
Purpose : This module was allowing to quickly create tasks from
leads. It is now considered as useless, and an activity should be used
instead. We bring another module crm_helpdesk in enterprise to convert
leads to helpdesk tickets, which appears more useful.

Closes #28425 Task-1867574
2018-11-27 16:15:46 +00:00
David Arnold 30e4d89a62 [IMP] point_of_sale: allow to choose loaded categs
Before this commit, it was not possible to effectively limit the available
products when a company had several POS with different product offers.

This commit allows limiting the available product categories for a single POS.

Now, a company can serve different POS with different product offerings.

Anecdotal Note: This was especially annoying as the POS only shows 100 products.
If those happened to be the products not served by a signle POS, the only work
around was using the search bar (on a tablet?!?)

closes odoo/odoo#28393
2018-11-26 10:23:07 +00:00
Divyesh Patel 9215a40768 [IMP] mrp: attachments button on bom lines
There are two different icons on bom lines to distinct the ones having
attatchement links and the ones without. But those icons are not very
explicit and so we set the same icon for all lines and the number of
documents next to it.

TASK-ID: 1878242

closes odoo/odoo#26625
2018-11-27 08:35:05 +00:00
Haresh Shyara 240d191ba3 [IMP] stock: add company_id field on stock_move_line
There is no company_id field on stock.move.line and it is so impossible
to restrict easily the access rights on move lines (except by passing
through stock.move, but all stock move line don't always have a
stock.move)

To resolve this we've added a field company_id on stock.move.line, and a
constraint to force it having the same company_id than the one on stock
move.

Task ID : 1905232

closes odoo/odoo#28575
2018-11-28 05:39:06 +00:00
Darshil Trivedi aa4b686bac [IMP] product: Choose volume measure on products
Until now, the volume measure displayed on the product form was only in
m³. We now allow to choose between m³ and ft³.

So, we add volume selection field (m³/ft³) on general settings and it will
be display on product and product variants form view as configuration.

We also Remove tooltip from weight and volume field.

And display weight (kg or lb(s)) in product and product variants form view correctly,
because currently weight didn't display on product form view before save the product
but after this commit weight will be display.

This commit is related to task ID 1869002.

closes odoo/odoo#26542
2018-11-28 06:08:46 +00:00
Laurent Smet b8e32340c5 [FIX] account: Fix _convert in Aged Partner Report
Introduced by the forwart-port:
https://github.com/odoo/odoo/commit/4b8bd36219c1c11bb1ca36a9862baf632a995bad

closes odoo/odoo#28825
2018-11-20 09:47:32 +00:00
Nicolas Lempereur d36b42a779 [FIX] purchase: es_AR translation typo
Fixing it directly by commit since there is no es_AR on transifex.

The issue of the ticket has been solved by transifex, this is for
another similar issue that has been found.

opw-1907924
closes #28929
2018-11-21 17:17:08 +00:00
Nicolas Lempereur b642687d53 [FIX] lunch: BS4 previous order not just one column
In bootstrap 4 grid are based on flex and so flex items require a flex
container parent.

opw-1911572
closes #28905
2018-11-21 15:05:31 +00:00
Nicolas Lempereur 6d5df714a7 [FIX] mail: add mention no set focus on subject
In the extended composer, we focus on subject when adding a mention in
the body. Focusing in subject is wanted at the opening of the composer,
but not when adding a mention.

opw-1911566
closes #28910
2018-11-21 12:40:24 +00:00
Julien (juc) Castiaux d395accd94 [FIX] account: outstanding credit add button not shown in green
The "add" button shown in the outstanding credits menu in the
button right corner of a payment wasn't shown in green like the
other clickable elements.

opw-1907342

closes odoo/odoo#28908
2018-11-21 12:05:56 +00:00
RomainLibert 1d28525d6b [FIX] resource: increase the rounding factor in resource_mixin
In order to be more precise in the number of hours shown in leaves, we
need more precision in resource_mixin

closes odoo/odoo#28907
2018-11-21 13:04:55 +00:00
Rémi Rahir a874760d41 [IMP] doc: Update iap flow for 12.0
closes odoo/odoo#28866
2018-11-21 13:07:08 +00:00
RomainLibert 4a2c73d1a5 [FIX] hr_holidays: change selection keys from floats to integers
In the following commit (https://github.com/odoo/odoo/commit/744de4ee1cec5e43aa77ac3eccc7a9b1224f8fa1) we introduced some floats as keys
to Selection fields (namely request_hour_from and request_hour_to)

This lead to the ORM creating a column of type `int4` to store this
field which rounded the values.

In order to repair that faulty behaviour we use negative integer values
for the half hours, which is then transformed back into a float in the
code.

closes odoo/odoo#28877
2018-11-21 10:49:02 +00:00
Goffin Simon f3b3875305 [FIX] mrp: field result on 'quality.check' displayed False as uom
Steps to reproduce the bug:

- In the Manufacturing App , enable Work Orders and Quality
- Configure your products,BOM and Routing
- Create steps in routing with type='Register Consumed Materials'

Bug:

When you finished your Work Order operations it displayed "False" value in
the "Finished Steps" tab instead of the uom of the finished product.

Technically:

The function "record_production" unlinks the temporary stock.move.line that can
be linked to a quality.check. So the component_uom_id of the quality.check could not
be found when computing the field 'result' on model "quality.check' with function "_compute_result".

opw:1909768

closes odoo/odoo#28865
2018-11-21 09:34:20 +00:00
Nicolas Martinelli f533ddab43 [FIX] hr_timesheet: total in list view
opw-1911593

closes odoo/odoo#28872
2018-11-21 10:30:20 +00:00
Nicolas Martinelli 6d42f2f0bb [FIX] event: expected attendees
The 'Expected attendees' text is replaced by the number of attendees.

opw-1911577

closes odoo/odoo#28868
2018-11-21 10:06:29 +00:00
Nicolas Lempereur 3455a4d0e7 [FIX] account: send several invoices => state sent
When we print or post_message of an invoice it is set as sent.

But when we multiprint, we do not use each invoice post_message but
create directly mail.mail then send them in batch.

Thus the invoices are not set as "Sent".

With this change we make a special case.

opw-1910937
closes #28852
2018-11-21 10:00:36 +00:00
Odoo Translation Bot c487d2c26c [I18N] Update translation terms from Transifex 2018-11-21 09:40:22 +01:00
Yannick Tivisse 602f7ea0bc [FIX] lunch: Fix unreviewed new feature from a2f69ca
Purpose
=======

As we try to open a mail.compose.message on a model that doesn't inherit
from mail.thread (Mimic a cowboy yellin' "Yihaaa" while shooting into the air
with one revolver in each hand).

Specification
=============

The only way to fix this issue while keeping the feature (Open a
mail composer) is to open the mail composer in mass_mail mode and
to remove the model on which it should be called.

The template won't be rendered in the mail composer but will
be rendered when sending the mass_mailing obviously, while avoiding
the unavoidable traceback when clicking on the 'Send' button

closes odoo/odoo#28849
2018-11-20 14:40:16 +00:00
Laurent Smet bd90026c67 [IMP] account: check match_partner in the default reconcile rule 2018-11-19 16:01:02 +00:00
Julien (juc) Castiaux 82f7fdd66b [FIX] gengo_base: Unable to uninstall module
The gengo module is used for automatic translation, if you try to
uninstall the module, at some point the required models/fields of
gengo no more exist but the module is still in use by odoo for
every translation.

This commit fixes the problem by disabling the gengo translations
when the system is installing/uninstalling a module.

opw-1906293

closes odoo/odoo#28806
2018-11-19 15:14:55 +00:00
Julien (juc) Castiaux f197498058 [FIX] google_drive: button in config not cross-browser
The "Get authorization code" button in the General Settings >
Integrations > Google drive was not correctly rendered on firefox.

This PR fixes that bug by correcly rendering the button, it has
been tested on both Firefox and Chrome

opw-1907644

closes odoo/odoo#28672
2018-11-20 10:02:45 +00:00
Toufik Ben Jaa 69c2b0a7d1 [FIX] portal: force cache clearing at access_token generation
- The value returned by the method `_portal_ensure_token` is False due
  to a cache issue.

  The value is generated written using the `sudo` environment while in
  the current user environment the cached value is `False`.
  After generating the value, the cache is not cleared, thus letting the
  method return `False`

closes odoo/odoo#28836
2018-11-20 11:49:17 +00:00
Alexandre Kühn a13db188f3 [FIX] mail: notify when resetting unread counter of thread
Before this commit, we had the following issue:

1. Open two tabs A & B.
2. Receive a message from a channel in tab A.
3. Mark it as read in tab A by clicking on the
   chat window of the channel.

> The unread counter is correct in tab A: no
  unread messages on this channel, and the
  messaging menu counter has been updated.
> The unread counter is not correct in tab B:
  it still has unread messages on this channel,
  and the messaging menu counter has not been
  updated.

The issue was caused by not notifying the updated
unread counter to the widgets when receiving the
'channel_seen' notification from the longpoll.
It was working in tab A because this is were we made
the action, so that it already marked messages as
read without waiting for the longpoll response.
However, Tab B has to wait for the longpoll response
to update the unread counter. It was updating the
counter, but it was not notifying the widgets.

This commit fixes the issue by letting the widgets
know when the unread counter has been reset.

Task-ID 1911239

closes odoo/odoo#28833
2018-11-20 10:52:26 +00:00
Nicolas Martinelli 09a2ef2e7c [FIX] l10n_fr_fec: date
The FEC report fails to generate because of an incorrect variable type.

opw-1908541

closes odoo/odoo#28832
2018-11-20 10:49:47 +00:00
Aaron Bohy 49e78f46ee [IMP] web: tests: backport of new helpers
This rev. is a partial backport of abf32b8b, so that the newly
introduced helpers are already available in 12.0.

closes odoo/odoo#28827
2018-11-20 10:17:37 +00:00
len-odoo 24ca67b545 [FIX] mail: execute only once when setting automated actions at record update
Fine-tuning of commit: d60f2ab0e2
Which applied when the next action was to create a new activity.
However the problem is also present when the next action is to send an email.
We extract the logic in a new private function to share the code in both cases.

opw 1904156

closes odoo/odoo#28819
2018-11-19 19:36:14 +00:00
qsm-odoo 180de24df0 [FIX] website: allow publishers to save their website edition
On save, the editor will ask to parent widgets if something needs to be
done first. The website navbar will receive that demand and asks to its
action-capable components to do something. For example, the content menu
handles page-related options saving. However, some users with limited
access rights do not have the content menu... but the website navbar
expects that the save action is performed. So, this empty action is
defined here so that all users have an 'on_save' related action.

This was only happening since 12.0 as 'on_save' actions were introduced
there to save page-related options.

closes odoo/odoo#28810
2018-11-20 10:05:54 +00:00
Ivan Yelizariev a0bda6bcf2 [FIX] account: fix code of transfer account
Transfer accounts created for payment acquirers was ignoring the prefix of the main transfer accounts and was always creating accounts with code 000001, 000002, etc.

The reason is because the method was called on an empty recordset

closes odoo/odoo#28789
2018-11-20 07:41:48 +00:00