Commit Graph
134209 Commits
Author SHA1 Message Date
alt-odoo b0be65f211 [FIX] web_editor: crash in date formatting if no langage set
This issue was introduced with commit 251b880de1caeeef1f27447d4ad69e1abeffde19 : in case current user has no langage,
we should have a fallback case by retrieving the first langage installed in the database.

closes odoo/odoo#46487

X-original-commit: 67cf1150507b8092c32bf745e4c8620409fdc238
Signed-off-by: Alex Tuyls <alt-odoo@users.noreply.github.com>
2020-02-27 20:04:06 +00:00
Jeremy Kersten 764f6f081f [FIX] portal: remove extra margin in layout chatter
Reduce margin from o_portal_chatter_message_title (from 0.5 to 0.2rem)
Remove margin from the last line of the comment.

When you write a comment (not from demo data), each line become a paragraph
(which one have big bottom margin). After the comment you have a button
'comment' that is so far, that you don't know if you comment the previous
message, or the next one.

The css selector is precise, because you can have another p in the reply with
the class 'o_portal_chatter_puslished_date' that we don't want to impact.
(In case of none real comment with p inside, it become the last one)

Only the padding under the last p could be considered (fp & sbu) as bugged,
so we fixes it in css. Other pixel touch, required an update to got it.

task-2206171

closes odoo/odoo#46456

X-original-commit: 92ae84c132f3fb2dcf5364fd0e0e58edb04e894d
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-02-27 13:57:11 +00:00
Kishan Gajjar a4451579bc [FIX] web_editor: do not store base64 of cropped image to html field
On crop dialog save, the image src is set to the base64.
We are creating an attachment for the cropped image if the user save the changes
and after that, we set the newly created image as the src of that image.

Meanwhile, when the user save the 'html' field, it is not creating
any attachment for the cropped image and also it leaves base64 as it is.
Due to that field store large data into the database.

this commit makes sure that attachment is created for cropped images
and update src before storing field value to the database.

closes odoo/odoo#46455

X-original-commit: 2bcaa25e67260e3013d4400d1b3ce380ba5cbd1d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-27 13:53:25 +00:00
jvm-odoo 12fa83bb44 [IMP] website_forum: improving forum header UX
Issue

	- Install Forums
	- Have at least 2 forums
	- Go in one of them
	- Go in a topic
	- Click the button "All Forums" to go back
	- You go back to the forum's app homepage

	This is bad for UX, I should have been redirected
	to the forum's topic list.

Cause

	This behavior is not handled by Odoo.

Solution

	Move All Forums in the navbar
	Creating a smart "back" button based on browser history.

OPW-2198011

closes odoo/odoo#46454

X-original-commit: 307e6cd5b44b8f619a35056557f72aae241943b3
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-02-27 13:51:53 +00:00
Nisha patel 4df7594d58 [FIX] web: fix boolean fields display in pivot view
Since formatBoolean returns a jQuery object, boolean fields were
displayed as [Object object] in pivot view.

so fix the issue of checkbox in the pivot view by not calling
fromatValue for boolean instead just set the checkbox element in
in template itself and added test case for checkbox in pivot view.

closes odoo/odoo#46445

Taskid: 2172258
Closes: #44299
X-original-commit: d7d0caf6f599f313687c958c5aff5764c0d23ffd
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-02-27 13:16:32 +00:00
Victor Feyens f4bcf2c3f9 [IMP] base: batch records (un)archiving
This allows detailed reporting in write overrides.

Expl:

When (un)archiving multiple records together (from a view list, or in batch call),
you will only see one record at a time in `write` overrides.  This means you
won't be able to return meaningful and complete messages to the end user.

Before:
1) Archive A & B
2) "You cannot archive A"
3) Archive B
4) "You cannot archive B"

After:
1) Archive A & B
2) "You cannot archive A & B"

closes odoo/odoo#46358

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-02-26 14:31:31 +00:00
Hemali Bhimani caa0e52d4b [IMP] *: add Archived filter in models with active field
task:2026285
closes:#45779

closes odoo/odoo#45779

Related: odoo/enterprise#8581
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-02-26 10:01:05 +00:00
Odoo's Mergebot b0008be7d0 [IMP] survey: improve survey session frontend layouts
PURPOSE

Improve layouts and usability for the host screens when using survey sessions.
We focus on the "host" screens, as the attendee screen is based on regular
survey flows/design.

SPECS

In short: copy mentimeter "wow effect".

Main points:

- Remove the "question" container (keep only "Results/Ranking")
- Remove the tabs concept, views are displayed in full screen
- Purpose is to have a "clean view"
    - The display must be "full screen" with only relevant info
    - Enable a easy keyboard navigation with left/right keyboard arrows
      and spacebar
- Switching from results to ranking to next question is always linear
  (next/previous instead of tabs)
- Improve charts
    - Remove the pie chart : make bar charts instead for simple / multiple
      choices
    - Show the chart results "as people answer to it"
      Only if question is not scored, otherwise show when all answers are
      received / when user goes to "next"
    - For free text/date/datetime: show small bubbles with attendees answers
- Add resize, fade in/out, ... animations for "wow effect"

LINKS

PR #45111
Upgrade PR odoo/upgrade#774
Task 2191924

Related: odoo/upgrade#774
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-27 18:40:19 +01:00
Aurélien Warnon 0e43becd91 [IMP] survey: improve sessions answers domain
This commit improves the answers count in the context of survey sessions as
well as displayed answers to narrow them down to the "current session".

We simply use a custom domain to consider all user_inputs and user_input_lines
that have a create_date after the start of the session.

It will help users to be able to re-use the same survey multiple times and run
different sessions without having to duplicate the survey every time.

LINKS

PR #45111
Task 2191924
2020-02-27 16:40:57 +00:00
Aurélien Warnon de2fa26165 [IMP] survey: improve survey session frontend layouts
PURPOSE

Improve layouts and usability for the host screens when using survey sessions.
We focus on the "host" screens, as the attendee screen is based on regular
survey flows/design.

SPECS

In short: copy mentimeter "wow effect".

Main points:

- Remove the "question" container (keep only "Results/Ranking")
- Remove the tabs concept, views are displayed in full screen
- Purpose is to have a "clean view"
    - The display must be "full screen" with only relevant info
    - Enable a easy keyboard navigation with left/right keyboard arrows
      and spacebar
- Switching from results to ranking to next question is always linear
  (next/previous instead of tabs)
- Improve charts
    - Remove the pie chart : make bar charts instead for simple / multiple
      choices
    - Show the chart results "as people answer to it"
      Only if question is not scored, otherwise show when all answers are
      received / when user goes to "next"
    - For free text/date/datetime: show small bubbles with attendees answers
- Add resize, fade in/out, ... animations for "wow effect"

LINKS

PR #45111
Upgrade PR odoo/upgrade#774
Task 2191924
2020-02-27 16:40:57 +00:00
Aurélien Warnon 84e128980c [IMP] survey: add chartjs datalabels plugin library
This commit adds a chartjs 'datalabel' plugin in the survey module.
It is a preparation commit for the general layout improvement of the survey
'live' session feature.

Task 2191924
PR #45111
2020-02-27 16:40:57 +00:00
jbm-odoo 39c570a777 [IMP] hr_expense: Add tracking on some values
closes odoo/odoo#42823

Taskid: 1978580
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-02-26 13:08:31 +00:00
Thibault Delavallée a6acb077e4 [FIX] event: fix attendees (seats) computation in transitional mode
When being in edit mode attendees count may be reset temporarily to 0.
Indeed when user change the event_type linked to the event it triggers
the computation of seats. Among those fields seats_expected is used to
display the attendee count in event form view.

In this commit we rewrite the computation in order to work in onchange mode.
It correctly update record in cache instead of rebrowsing event in a compute
and correctly support newid by checking _origin id.

This behavior is probably present since a few versions but as it is not
critical we target the last stable-saas.

closes odoo/odoo#46444

X-original-commit: f858f0432abc97a805e24674990acac510b45e9d
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-27 13:16:12 +00:00
Thibault Delavallée 3c70eb3d04 [FIX] website_event: correctly support registrations without ticket
Current code handles "no ticket registration" having ticket_id set to 0
as a valid event.event.ticket ID. We fix that issue by correctly setting
the many2one to False.

Followup of cb928ed613

X-original-commit: 7c1acba32d814ec287c60d0a95f3911d51678932
2020-02-27 13:16:11 +00:00
Antoine Prieels 9db8860840 [FIX] point_of_sale: Connect to the IoT Box in debug
When using the PoS in debug mode in 12.0, the call to the
'/hw_proxy/handshake' route contains the 'X-Debug-Mode' header.

This header was removed from the 'Access-Control-Allow-Headers' in
13.0, which is used to create the image of the IoT Box.

This means that if the code of http.py was not checked out to 12.0
(i.e. when using an IoT Box in Community), the connection would fail
and none of the devices could be used.

closes odoo/odoo#46442

X-original-commit: e6cfbd35e0878c9c07a98f950495a682c6cff535
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-02-27 13:09:32 +00:00
Odoo's Mergebot 103e72398a [MERGE] various: remove unused actions
PURPOSE

Clean dead actions.

SPECIFICATIONS

Some ir.actions.act_window are not used in odoo codebase anymore

  * not linked to a given menu;
  * not referenced in the code;

In this merge we remove dead actions linked to Social/Marketing applications.

LINKS

Task ID 2188942 (original)
Task ID 2196183 (Social/Marketing specific)
Community PR odoo/odoo#46435
Enterprise PR odoo/enterprise#8846

Related: odoo/enterprise#8846
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-27 17:23:56 +01:00
Victor Feyens 9aab82ad20 [REF] rating: remove unused dead action(s)
PURPOSE

Clean dead actions.

SPECIFICATIONS

An action (action_view_rating) is used only in helpdesk who rewrites the
domain anyway. Let us use the generic rating_rating_view action
instead and remove the other unnecessary one.

LINKS

Task ID 2188942 (original)
Task ID 2196183 (Social/Marketing specific)
Community PR odoo/odoo#46435
Enterprise PR odoo/enterprise#8846
2020-02-27 13:10:02 +00:00
Victor Feyens 8569950d48 [REF] mass_mailing: remove unused dead action(s)
PURPOSE

Clean dead actions.

SPECIFICATIONS

Some ir.actions.act_window are not used in odoo codebase anymore

  * not linked to a given menu;
  * not referenced in the code;

LINKS

Task ID 2188942 (original)
Task ID 2196183 (Social/Marketing specific)
Community PR odoo/odoo#46435
Enterprise PR odoo/enterprise#8846
2020-02-27 13:09:59 +00:00
Victor Feyens 88a05afe80 [REF] crm: remove unused dead action(s)
PURPOSE

Clean dead actions.

SPECIFICATIONS

Some ir.actions.act_window are not used in odoo codebase anymore

  * not linked to a given menu;
  * not referenced in the code;

LINKS

Task ID 2188942 (original)
Task ID 2196183 (Social/Marketing specific)
Community PR odoo/odoo#46435
Enterprise PR odoo/enterprise#8846
2020-02-27 13:09:55 +00:00
Victor Feyens b174428344 [REF] base: remove unused dead action(s)
PURPOSE

Clean dead actions.

SPECIFICATIONS

Some ir.actions.act_window are not used in odoo codebase anymore

  * not linked to a given menu;
  * not referenced in the code;

LINKS

Task ID 2188942 (original)
Task ID 2196183 (Social/Marketing specific)
Community PR odoo/odoo#46435
Enterprise PR odoo/enterprise#8846
2020-02-27 13:09:52 +00:00
Antoine Prieels cad11eed98 [FIX] hw_drivers: Read weight from IoT Scale
We had two issues when reading the weight from a scale connected to
the IoT Box :

When using the '/hw_proxy/scale_read' route, if the same weight was
read twice, the value in PoS was reset to 0.
If the product was placed on the scale before opening the weight
screen, the weight was never read.

closes odoo/odoo#46432

X-original-commit: a08c5157f0b042e2ee250fc7b431b90451c7781a
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-02-27 12:36:27 +00:00
Victor Feyens 888cf9a5eb [FIX] website_sale_delivery: read properties with the correct company.
closes odoo/odoo#45865

Related: odoo/enterprise#8635
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-02-27 12:19:24 +00:00
Victor Feyens 2556d5a024 [FIX] stock(_*): ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
Victor Feyens 2adcad35e6 [FIX] sale_stock: ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
Victor Feyens 0c1fcfb0e1 [FIX] sale: ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
Victor Feyens 8de2b9fc7b [FIX] repair: ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
Victor Feyens ef16266ad6 [FIX] purchase_*: ensure properties are read with the correct company. 2020-02-27 12:19:24 +00:00
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