Commit Graph
134182 Commits
Author SHA1 Message Date
Victor Feyens 25cf56e49b [FIX] point_of_sale: ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
Victor Feyens 5f7a4c8113 [FIX] mrp: ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
Victor Feyens 570e2b3105 [FIX] hr_expense: ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
Victor Feyens e5f1ba0e42 [FIX] delivery: ensure properties are read with the correct company 2020-02-27 12:19:24 +00:00
Victor Feyens 7187f21b09 [FIX] account: ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
Antoine Prieels a200c6ddf8 [REM] hw_drivers, hw_posbox_homepage, pos: Remove MPD
Remove the MPD server and Six configuration from the IoT Box.
MPD will be replaced by TIM, which doesn't require the IoT Box.

closes odoo/odoo#46424

Taskid: 2188566
X-original-commit: 9d43308a8f6b521d3d18f7fc472303f58f56a0c3
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-02-27 11:17:15 +00:00
Swapnesh Shah f0def7414d [IMP] uom: Add group by Category on Units of Measure
closes odoo/odoo#46385

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-02-27 09:56:33 +00:00
Jigar Vaghela d9c116f2b0 [FIX] l10n_in: support 0% tax in report
Add zero rated tax report line so we show 0% tax line in report

here problem is when 0% tax is created then no tax line is there so this fix is needed.

closes odoo/odoo#46408

Opw: 2200619
X-original-commit: a0e2afd5c552a0703da5f94c2ea342907cd83599
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-02-27 09:11:06 +00:00
Odoo's Mergebot 6f6fb8266e [IMP] event: improve views
# Purpose

- Improve the form and kanban view of event
- Improve the frontend view after posting a track

# Specifications

- The avatar is round and not square in the kanban view
- The kanban_state field is displayed on the form of an event in read_only and edit mode.
- When the user post a track he is redirect to the form page where the form is replaced by the confirmation message.

task-2198634

closes odoo/odoo#45599

Related: odoo/enterprise#8516
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-26 21:26:19 +01:00
Jérémy Hennecart 3fecfca25c [IMP] event: improve kanban and form view
Now the avatar on the kanban view is round as
in the others kanban views.

task 2198634
2020-02-26 19:52:41 +00:00
Jérémy Hennecart 53e4b3c83e [IMP] website_event_track: improve display after track post
When the user posted new tracks it was redirect to a page
where a message with no style. Now, after a post the user
can see the page where he was before with the form replace
by the confirmation message.

task-2198634
2020-02-26 19:52:25 +00:00
lejeune quentin 314410458b [FIX] hw_drivers: In IoT update route list after loading driver
For update correctly the route list of IoT after loading driver
we need set 'http.addons_manifest' to a empty json

Linked to 97c09e1c77284836c7c46b4e70d4f12eb48ce91b

Reboot not needed after a update

Linked to b77486753b7ae220a531ee09c529fb5eb944b0e2
Linked to 181a62cb57e143611ca1fbf0779cfd041d2a3cf8

closes odoo/odoo#46386

X-original-commit: 87b127efed97c1f6fad18d6ee6b5924a9b2c70f2
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-02-26 17:32:05 +00:00
Sébastien TheysandRaphael Collet 5d62e4954f [FIX] core: fix _flush_search() when _order depends on m2o
closes odoo/odoo#46365

X-original-commit: 604b6a22db8eddfb37f9be31d3826394e25bd86c
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Co-authored-by: Raphael Collet <rco@odoo.com>
Co-authored-by: Sébastien Theys <seb@odoo.com>
2020-02-26 17:56:32 +00:00
Samuel Degueldre 382f17f462 [FIX] website_blog: fix s_latest_post using undefined theme color
In odoo/odoo#42466 , the s_latest_posts snippet options that were
theme-specific were brought into standard from various themes. One of
those options is hover effects, and one of those hover effects used the
beta theme color, which is not defined in theme_bootswatch, and would
cause assets_frontend to fail to build when that theme was selected.

This commit fixes that by changing it to use the secondary theme-color
instead, which is available in all themes.

closes odoo/odoo#46387

X-original-commit: 75c44836580ed71f035d8b23097a4998a1109917
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-26 17:44:18 +00:00
Arnaud Baes 76ecf3761e [FIX] website_customer: Force 128px max on partners logos
Force partners images to never exceed 128x128 thus preventing
breaking the layout of the pages where they are rendered.

closes odoo/odoo#46384

X-original-commit: 3619c1e58d82697f5444f7c03537b95e859ea9e9
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-02-26 17:12:10 +00:00
jvm-odoo 3da7db8cb6 [FIX] hr: fix employee creation from user form
Issue

- Install Employees
- Create a new user
- Click on "Create employee"

Traceback

Cause

In 999ced42989f, we add the user_id key but we
already have in the action_create_employee method

The key is duplicated so this is why there is a
traceback

Solution

Remove the key in action_create_employee since
we have it in _sync_user

OPW-2205354

closes odoo/odoo#46375

X-original-commit: e0c29f1a4cd8d95654963b024fd0b0e1b0578776
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-02-26 16:31:34 +00:00
Romain Derie 4c57e5bb30 [FIX] website: typo in toastr 'Congratulations'
Missing a `s`. Congratulation > Congratulations (fdba9a878f).

task-2144335

closes odoo/odoo#46380

X-original-commit: 7d743029dde14fac18fb3b5331c43fe1d940a772
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2020-02-26 16:56:14 +00:00
Krupa Patel 88bce4e010 [FIX] auth_signup: fix layout size of reset password page
Before this commit, the layout size of the reset password page was not
correct. This commit fixes and enhances the layout design.

task-2191603

closes odoo/odoo#45350

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-26 15:44:14 +00:00
Debauche Stéphane 991eb9a17b [FIX] sms: ensure chatter / SMS have the same content
When we send a SMS in the contact form view, exact body is sent by SMS and
displayed in chatter. If some manual HTML is added chatter will display it
as HTML while sms receive HTML tags.

We want that the SMS content in the chatter is the same as the SMS sent and
that HTML tags are removed to avoid being interpreted.

To achieve that goal we call html2plaintext in ``_message_sms`` and in
``prepare_log_body_value`` that are two entry points to send SMS.

We also update ``html2plaintext`` to strip result in order to avoid having
unnecessary spaces left.

Task ID 2126123
PR #40441

closes odoo/odoo#46362

X-original-commit: 4b7b14a5ea5e6ab521838c01813fa478154682fd
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-26 15:12:03 +00:00
Raphael Collet 232a00f116 [FIX] account: wrong computation of line.company_id in tests
closes odoo/odoo#46345

X-original-commit: 666df909aaadf20dbac131a8970331779d6e045c
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-02-26 12:57:06 +00:00
Raphael Collet 229075205f [FIX] core: compute fields in batch on new records
Remove a leftover special case of the ORM from a former version.
This fixes a performance issue, where an onchange recomputes a field on
one2many lines one by one.

X-original-commit: 16a75d85741db8a1f87c1d26503a9bb75197cf83
2020-02-26 12:57:05 +00:00
lejeune quentin b2d2badac2 [FIX] point_of_sale: IoT Box reboot after checkout
Correction of b77486753b7ae220a531ee09c529fb5eb944b0e2

closes odoo/odoo#46330

X-original-commit: 6ee5ff0412227417392b98e010cd3f62fb9adbd1
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-02-26 11:25:37 +00:00
Aurélien Warnon a6d9decdd5 [REF] mass_mailing: clean unused utm statistic fields
This commit cleans several unused computed utm statistics fields related to
mass_mailing along with their compute methods.

Upgrade PR odoo/upgrade#823
Task 2082816

closes odoo/odoo#38246

Related: odoo/upgrade#823
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-24 13:56:00 +00:00
Dharmraj Jhala d628ec05ed [FIX] survey: fix incorrect behavior while retaking the test survey
Before this commit, while retaking a survey with 'Retry' button, the test
mode was not retained leading to unexpected behavior. This commit fixes the
issue by populating required parameters while retrying the survey that ensures
proper behavior for both test and non-test entries.

Task ID 2170720
Closes #43806

closes odoo/odoo#44187

X-original-commit: 65d77b7101acf63fb4316187b5fd94b050b945c3
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-29 11:52:13 +00:00
Goffin Simon 6e1121c30d [FIX] account: Partner on move created from statement line
Steps to reproduce the bug:

- Let's consider a customer C
- Create a customer invoice I for C for 100€ and reference R
- Create a bank statement with a line L for C and the reference R
- Reconcile I and L and go in the jouranl entries

Bug:

The account move created for the reconciliation had no partner set.

opw:2200679

closes odoo/odoo#46332

X-original-commit: c454b661668a54240ff32ede78f0ad963e3fcd25
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-02-26 11:35:48 +00:00
Raphael Collet 687793adca [IMP] core: do not warn about crappy upgrades in test modules
This allows modifications of models of test modules in stable versions.

closes odoo/odoo#46329

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-02-26 12:16:22 +00:00
Loan (lse) 04052fa21e [FIX] delivery: multiple tracking on web preview
Steps to reproduce:
- install sales and easypost shipping
- have a delivery order of multiple packages with easypost
- click "send confirmation email"

Previous behavior:
the template does not handle multiple package references
and the associated link is wrong

Current behavior:
each reference is set in a separated link.

previous fix in 5ed27d470cd76d0a742c25e2be473124428d0798
opw-2199339

closes odoo/odoo#46334

X-original-commit: 7a3479c14b58a1a588bf50d859ee437eb504fcef
Signed-off-by: mightyjol <jhk-odoo@users.noreply.github.com>
2020-02-26 12:01:02 +00:00
Goffin Simon 499853e273 [FIX] hr_expense: Email creation for Expense
Steps to reproduce the bug:

- Let's consider an expense product P with internal reference = 1 and sales price = 100€
- Let's consider an employee E with a work email address W
- Configure your domain alias as odoo.com
- Configure the expense alias as expense
- Send an email from W to expense@odoo.com with '1 P 100' as subject

Bug:

An expense had been created for E with P as product and 0€ as price

opw:2191939

closes odoo/odoo#46314

X-original-commit: bde7d4ecb2b4e7954753ff932467ce5618720580
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-02-26 10:15:15 +00:00
Romain Estievenart 806cb4aa43 [FIX] mail: preview image distorted on mobile
This commit fix the o_mail_preview_image css by applying the same
rules as desktop.

Task ID: 2200099

closes odoo/odoo#46328

X-original-commit: f4a106c7fa5ba21bba2811d5c51cbf5bf57f4dc9
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-02-26 11:18:00 +00:00
Nicolas Martinelli 609e948739 [FIX] payment: False in reference
- Activate a payment provider (e.g. Stripe)
- As an unconnected user, visit
  website_payment/pay?reference=MY_REF&amount=1337&acquirer_id=ACQUIRER
- Pay

After payment, the user is redirected to the `website_payment/confirm`
page. However, the generated reference contains `False`, which is
confusing.

This happens because the route is generated with the `False` string,
which is used later on in the computation reference.

We fix the URL generation by not adding the partner if it is not set.

opw-2201289

closes odoo/odoo#46277

X-original-commit: 7c5f5958a4ef20ac67ad6c87c3ea0c94b858a74b
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-02-25 16:16:10 +00:00
Siddarth Gajjar 8b88f743b7 [ADD] doc: gantt view cell_create attribute.
closes odoo/odoo#46205

Related: odoo/enterprise#6327
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-02-25 12:22:20 +00:00
Rémy Baranx (bar) 51b70b6fc4 [FIX] sale_timesheet_purchase: move_id.type has been renamed as move_id.move_type
The 'type' field in the 'account.move' model has been recently renamed to 'move_type'.

This bug fix consists in using the new field name in the search call.

closes odoo/odoo#45935

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-02-21 10:40:34 +00:00
Mathieu Duckerts-Antoine 743d551331 [FIX] web: Regroup and order date groupby options
A previous commit makes the graph view render only the finer interval
option for each date/datetime field.
The fact is that in the control panel, different options can be selected
in any order along with other groupbys. This can lead to situations like

'Foo > Date: Day > Bar > Date: Month'

and becomes unreadable.
For that reason we choose to regroup and order options. For the previous
situation, this leads to the following global groupby

'Foo > Date: Month > Date: Day > Bar'.

Our choice also make more sense in a list view for instance.

Task ID: 2198846

closes odoo/odoo#46269

X-original-commit: 59afc869233165e21ef94f485b91d33ac4543b24
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-02-25 15:30:06 +00:00
Mathieu Duckerts-Antoine c7851add36 [FIX] web: graph renders only finer date groupby option
Rendering a graph view with several options selected for a given
date groupby can take too much time and block the page.
Since grouping on the same date/datetime field several times
barely makes sense in a graph view, we choose to use only the finer
option, e.g. 'week' is prefered to 'quarter'.

Task ID: 2198846

X-original-commit: 7e36bee14e18ca17e15de1bacb7ff26010d0b372
2020-02-25 15:30:04 +00:00
aab-odoo a39cc6bc00 [FIX] web: grouped list with pager: reset offset on search
Have a grouped list view with enough groups to have several pages.
Go to the second page, and toggle a filter s.t. it only remains a
single page of groups.

Before this commit, no group is displayed (like if there was no
record matching the domain), whereas it should display groups of
page 1. The issue occurs because we didn't reset the group offset
to 0, like we do for the regular offset.

Bug reported in the v13 migration pad.

closes odoo/odoo#46257

X-original-commit: c6a4123b25e884495c5c44287d4d9fed061eeaa4
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-02-25 14:15:32 +00:00
Nicolas Lempereur 36d4ff5c4c [FIX] website_form: binary work with website_crm_phone_validation
With this change, a binary field in a website form works when
website_crm_phone_validation (website_crm in 13.0) is installed.

The module website_crm_phone_validation would call `extract_data` method
to do some things, but when extract_data was called a second time to
really save data, the FileStorage werkzeug object would already consumed
and files would erroneously appear as empty.

opw-2191873

closes odoo/odoo#46241

X-original-commit: a168fe23cc6d9b817b44c189822952a1ee98d81d
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-02-25 13:19:39 +00:00
Alexandre Kühn 5da3454499 [FIX] im_livechat: pin "chat" channels on message post
Revision on https://github.com/odoo/odoo/commit/abeb75ae6006b50dace9397db35c08c90f6cc568

Commit above fixed an issue where livechat channels were not pinned
on the UI after page refresh. To do so, it marked channels of type
"chat" and "livechat" as chat channels.

However, this failed marking channels of type "chat" as chat
channels, because it mistakenly unset these channels while
processing livechat channels. As a result, chat channels were not
marked as pinned, resulting in this channel not being visible in
the interface.

Steps to reproduce:

1. Connect as Admin.
2. Have unpinned conversation with Demo.
3. Receive a new private message from Demo.
4. Refresh page
=> the conversation is not visible in Discuss app or in systray
   messaging menu.

This commit fixes the issue by not overriding channels that have not
been marked as `is_chat`. This way, channels of type "chat" and
"livechat" are correctly considered as chat channels.

closes odoo/odoo#46266

X-original-commit: 72a9498ac93d15767f221e3db9b94f38f1c2e8b5
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-02-25 14:50:22 +00:00
Alexandre Kühn 86fd7ab4f0 [FIX] mail: improve discuss new channel handling in mobile
Revision on https://github.com/odoo/odoo/commit/8e5b6ab02aa95c204ea7bd241e6b8944d5972d43

Intent of commit above was to remove server-side synchronization of
chat windows in mobile. To do so, it prevented sending RPCs for chat
window state in mobile, in addition to not automatically adapt state
of chat windows in mobile from longpolling notification.

This implementation, while functionally working as intended, had
disturbing intermediate logic that could potentially lead to bugs
in the future. Specifically, on mobile, new channel did not directly
trigger a re-render of discuss widgets. However, and thankfully, the
related new message was triggering the rendering, so that UI
correctly has channel and its notification.

This commit simply improves code so that new channel always triggers
a rendering, even in mobile, like before the commit above. Of course,
to preserve the intent of not synchronizing chat windows in mobile,
new detached channels must still not auto-open a chat window, and
this commit clarifies this intended behaviour in the code.

X-original-commit: 1046d063ca46aacb1e186599b5d4a02ef9c8e18d
2020-02-25 14:50:21 +00:00
Yoshi Tashiro 06d842d31f [IMP] base: use unnaccent Japanese prefectures
Very few people in Japan know how to type accented characters, which
brings a usability issue when the Japanese prefectures are defined
with accented characters.

closes odoo/odoo#46258

X-original-commit: db4ea065fee3e0344a65d2386799ffa6e7e47abc
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-02-25 14:16:20 +00:00
lejeune quentin a85032bcc8 [IMP] point_of_sale: New version for IoTBox 20.02
We release a new version of IoT Box 20.02
With new version of Raspbian

closes odoo/odoo#46256

X-original-commit: d58151c37c6e464c42a73171a0b5b3834f9b4d10
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-02-25 14:12:05 +00:00
lejeune quentin 17c181ac74 [FIX] hw_drievrs: Replace SSID on the first boot
We replace the SSID of the IoTBox with a unique SSID

closes odoo/odoo#46255

X-original-commit: c847c1cb149e386331ff2e5b19a58862e1b66714
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-02-25 14:08:49 +00:00
Thibault Delavallée 965eef99d8 [FIX] mail: make followers computation compatible with postgresql < 10
Follow up of be06eb47bdf8b5f2cc281e3986818faf59e3a616 . Even if postgresql < 10.0 is not officially
supported this fix allows to keep compatibility with older postgresql.

closes odoo/odoo#46243

X-original-commit: 7e218be37cf0bc2c2c4fd4284b93ba99de679692
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-25 13:24:23 +00:00
Toufik Ben Jaa f9f5531f3f [FIX] sale: speed-up invoice creation
- At invoice creation, the stored fields that depends on `invoice_lines`
    are computed to be stored.
    This can slow down the invoice creation for a database with a lot of
    records on `account_move`.

    This commit speed-up the invoice creation by using SQL Joins to
    speed-up the searches.
    We cannot use `auto_join` on the `invoice_lines` field since it is
    not supported on many2many, thus we do it in SQL.

closes odoo/odoo#46233

X-original-commit: b39e17c464775564faa7d0f10e675d47fa026234
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2020-02-25 13:09:25 +00:00
Sébastien Theys 6bb0963b6a [IMP] core: optimize read() by avoiding useless query
When the `select` returns nothing more than ids that are already known, there is
no need to make it at all.

This removes one query from `_read` every time it has to fetch only fields that
are stored in a different table (o2m, ...), which happens all the time when
reading a stored field first (triggering prefetch) and then reading a o2m.

The query that is now removed was used to check access rules, but the trick is
to use `check_access_rule` to verify the rules in python instead.

Part of task-2061122

closes odoo/odoo#36263

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-02-25 13:46:10 +00:00
Sébastien Theys 93f10cb629 [IMP] test_mail, test_mass_mailing: adapt query count
To see impact of following commit.
2020-02-25 13:02:46 +00:00
Denis Ledoux c5b9bccf6b [FIX] doc: api.model no longer accept traditional style call
Since we dropped the old-api style compatibility layer,
some years ago.

This docstring was added to the 13.0 documentation
thanks to odoo/odoo#44838
So it's best not to mention this old-api style
in our latest documentation

closes odoo/odoo#46223

X-original-commit: 63691c78006fbf7077eb13f3045be21a18bbe753
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-02-25 12:06:06 +00:00
lejeune quentin 1dfda363a9 [FIX] doc: For IoT add reference for longpolling
Add details in IoT for the release of a event with the longpolling

closes odoo/odoo#46215

X-original-commit: 0ce8ab484d03ea2fdb318a7427fc20c0028bb964
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-02-25 11:26:07 +00:00
Rémy Voet (ryv)andVictor Feyens 182604178c [REM] stock: remove unused action
- Since 096f8c56b7 , action with
id='act_product_stock_move_open' is unused.
- Since f23cc14d13 , action with
id='action_receipt_picking_move' is unused.
- Since 88b000859f , action with
id='product_template_open_quants' is unused.
- Since v10, the action with
id='stock_picking_to_batch_action' is unused.

closes odoo/odoo#45270

Related: odoo/upgrade#840
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Co-authored-by: Victor Feyens <vfe@odoo.com>
2020-02-25 07:48:16 +00:00
Rémy Voet (ryv)andVictor Feyens 2d623375d6 [REM] purchase(_stock): remove unused action
- Since 2c5022b4f3 , the action with
id:'purchase_order_action_generic' was unused.
- Since 7743af00bf , the action with
id='purchase_open_picking' was unused.

Co-authored-by: Victor Feyens <vfe@odoo.com>
2020-02-25 07:48:16 +00:00
Rémy Voet (ryv)andVictor Feyens 7edf495235 [REM] mrp: remove unused actions
- Since 5118d248cc , the action with
id='act_product_mrp_production' was unused.
- Since 85a3e1e385 , the action with
id='action_mrp_unbuild_move_line' was renamed due to duplicate ids
(with action_mrp_unbuild_moves), then remove it (unused) and move
the helper message to the original one.
- Since 81577bf24e , the action with
id='mrp_workcenter_productivity_loss_action' is unused because
the commit remove the menu item using this action
- Since it was integred, the action with
id='mrp_workorder_delta_report' was unused, then remove it.

Co-authored-by: Victor Feyens <vfe@odoo.com>
2020-02-25 07:48:16 +00:00