Commit Graph
137410 Commits
Author SHA1 Message Date
Krunal Trivedi eecb1e01fc [FIX] portal_rating: fix traceback on rating
before this commit:
when user provides feedback on chatter without selecting rating stars
it generates an error and prevents from submitting feedback.
in this commit:
changed default_rating_value to zero in order to prevent the error.
now, it is possible to provide feedback without selecting rating stars.

task-2268849
Closes https://github.com/odoo/odoo/pull/52295

closes odoo/odoo#55397

X-original-commit: dcb47d03db73b7ca8a18f50cdb14abf704e3ac52
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-04 14:26:35 +00:00
Odoo's Mergebot 82a25bf916 [MERGE] web,lunch: searchpanel: stop storing active categories
Three major changes are introduced in this PR:

1. The loading of the action model extensions has been split:
- when calling load, a first promise is returned. It is meant to be
resolved as soon as all the query informations are available.
- a second promise returned by a new method "isReady" is resolved when
all of the extension data have been fetched.
This difference allows to not wait for server calls irrelevant for the
query. By default "isReady" will always wait for a full load call, but
this is meant to be overridden in case optimisations can be made.

2. The local storage logic of the search panel has been moved into the
documents module.

3. Point 2. allows for a variety of optimisations now that we do not have
to constantly wait for a potential default value hidden in the storage.
This is why this PR also introduces a way for the search panel model
extension to sometimes return its query informations sooner than after
being completely loaded.

Enterprise PR: https://github.com/odoo/enterprise/pull/12067

closes odoo/odoo#55049

Task: 2284207
Related: odoo/enterprise#12067
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-08-04 15:40:10 +02:00
Julien Mougenot 2524c7aaac [IMP] web: Do not store search panel categories
This commit handles two things:

1) Move the local storage logic of the search panel into the documents
module.

2) This allows for a variety of optimisations now that we do not have to
constantly wait for a potential default value hidden in the storage.
This is why this commit also introduces a way for the search panel model
extension to sometimes return its query informations sooner than after
being completely loaded.

Task 2284207
2020-08-04 12:46:27 +00:00
Julien Mougenot cc6a60bec9 [IMP] web: Optimize action model loading
The loading of the action model extensions have been split in this
commit:
- when calling load, a first promise is returned. It is meant to be
resolved as soon as all the query informations are available.
- a second promise returned by a new method "isReady" is resolved when
all of the extension data have been fetched.

This difference allow to not wait for server calls irrelevant for the
query. By default "isReady" will always wait for a full load call, but
this is meant to be overridden in case optimisations can be made.
2020-08-04 12:44:18 +00:00
Julien Mougenot 6e780b2e4f [IMP] lunch: Make dispatch actions synchronous
Before this commit, the return value of some of the dispatch actions of
the lunch model extension was wrapped inside a promise with the use of
the "async" keyword. This caused the synchronous aspect of all these
methods to be delayed.

Now they are not longer asynchronous.
2020-08-04 12:44:18 +00:00
Julien Mougenot f8ab35f9e1 [IMP] web: Model: small simplifications
Small refactor of some aspects of the main model.js class to make it
more consistent and extensible.
2020-08-04 12:44:18 +00:00
Martin Trigaux 918ccf5b0e [IMP] base: rename zh_TW
Use "繁體中文" instead of "正體字"
It is a synonym but it is a bit more formal. It is also more coherent
with "简体中文" used for zh_CN

closes odoo/odoo#55387

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-04 11:04:36 +00:00
Yousef Al-Hadhrami 00048bd24c [FIX] web: avoid double switching in RTL
The direction arrows in the datepicker were switched a first time in
fontawesome_overridden.scss

  .o_rtl
    ..fa-chevron-left,.fa-chevron-right
       transform: rotate(-180deg);

and a second time in datepicker.scss
  .o_rtl
     .bootstrap-datetimepicker-widget
        .prev,.next
	   transform: rotate(180deg);

The buttons were flipped twice

Signed the Odoo CLA

Fixes odoo/odoo#50090
Closes odoo/odoo#53369

closes odoo/odoo#54880

X-original-commit: 8629fa3fdfddbf24f48a58d5add0fcadca60fba4
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-04 10:53:15 +00:00
shs-odoo 116b9f1450 [IMP] hr_attendance: Remove duplicate Kiosk mode menu
Currently, there are two Kiosk mode menu in the attendance app when
we open the app we can see Two kiosk mode menu one in main menu add
second is a sub-menu of the manager menu.

purpose of this task to remove the Kiosk mode menu which is a submenu
of manager because attedance manager will always have employee officer
right which will enable the kiosk menu of employee on attendance.

closes odoo/odoo#54412

Taskid: 2296263
Closes: #54412
Related: odoo/upgrade#1475
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-04 05:00:48 +00:00
Laurent Smet 45c9dc8e38 [FIX] account: Fix counterpart account for cash difference
The cash difference line created on a statement using a cash journal should use the loss/profit account.
Then, the line is supposed to be marked as reconciled and then, doesn't appear in the bank reconciliation report.

closes odoo/odoo#55336

X-original-commit: 60e32447cc3fda3650aa718cb0996d29976005d4
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-04 06:54:45 +00:00
Julien Mougenot f21dc0c84b [DOC] doc: Document "today" and "now" in context
Documentation of the affected blocks have been updated to inform about
the contents of the "today" and "now" context values.

closes odoo/odoo#54438

Related: odoo/enterprise#11831
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-08-04 08:25:37 +00:00
Nisha patel 2c9d14cfa3 [FIX] hr_timesheet: Allow to update the empty description on timesheet
Currently, In timesheet module when we update the description of
existing entry and if the description is empty then it generates
required field error.

So in this commit, when a description updated as an empty then we
set a default '/' in the description.

closes odoo/odoo#55370

Taskid: 2301377
Closes: #54726
X-original-commit: 10cecadd05f0349765dc9cdb111e91c2d6d423b4
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-04 07:43:45 +00:00
Anh Thao Pham (pta) 365dc62c93 [FIX] purchase/sale_product_matrix: fix sequence of order lines
- Install Sales and Sale Matrix
- Go to Sales > Configuration > Settings and activate "Variant Grid Entry"
- Go to Products and edit a product with variants (lets call it "Product A"):
  * For "Sales Variant Selection" in "Variants tab", choose "Order Grid Entry"
- Go to Sales > Orders > Quotations and create a quotation
  * Add any product without Variant Selection set to "Order Grid Entry"
  * Add "Product A" with 1 attribute
  * Add any product without Variant Selection set to "Order Grid Entry"
- Here there are 3 products in the quotation with "Product A" at the second position
- Save the quotation
After the save the position of "Product A" is moved to the last position.

In a new quotation, every new order line has a sequence set to 10, except for products
with Variant Selection set to "Order Grid Entry" that set the sequence to the previous one +1,
which will put it in the last position even if another product is added after it.

[All of the above steps and explanations can also be applied to Purchase]

opw-2303096

closes odoo/odoo#55342

X-original-commit: 17c1caec4fefd089586c62c40ac5a2232eed3dcc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-08-03 15:19:24 +00:00
Arnaud Baes e106c6af7f [FIX] hr_recruitment: OdooBot assigned as Applicant Responsible
When someone is applying to any job position from the website
( via the `/website_form/` route ), the `hr.applicant` record
is created by OdooBot, and in such case, the `_compute_user`
method is never triggered as the field `user_id` (Responsible)
already has self.env.uid as default value.

This fix will in priority try to set a proper Responsible (if any
is defined on the job position) via `_compute_user` and then
assign `self.env.uid` if none is found.

closes odoo/odoo#55146

X-original-commit: e9292cb424ec04823dbce964ad4532edc20190c6
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2020-07-29 14:01:42 +00:00
Simon Genin (ges) 8a6a4766d9 [IMP] hr_employee: improve form usability
Improve slightly the layout of some forms related to employee and contracts.

Modified modules:
hr
hr_expense
hr_holidays
timesheet_grid
hr_contract_salary
hr_payroll_account

Task ID 2277298

closes odoo/odoo#52981

Related: odoo/enterprise#11156
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-04 09:21:00 +00:00
Aurélien Warnon 4abe3ea9c7 [IMP] survey: animate leaderboard in survey sessions
Purpose
=======

This commit intends to improve the animations on the leaderboard during survey
sessions. We now show both the ranking of each attendee before and after taking
into account the current question scores.

It allows attendees to see their position in the leaderboard shifting up / down
depending on how well they answered, and adds a bit more interactivity during
the session.

Specs
=====

The code changes to make this happen implied having multiple layers of
animations running one after the other.
The use of async/await in the JS allowed for a much smoother and less indented
code, simplifying the reading.

We now have 2 different "bars" to handle:
The bar that shows the previous leaderboard position.
The bar that shows the current question score.

This means we handle both jQuery items and modify their size & transition
properties depending on our animation.

Unfortunately, all these animations required a lot of testing to find fitting
timings, which means using quite a few setTimeout with "magic" delays.
These were just the most good looking ones and it feels like naming them with
a constant would not really help.

We also slightly improved the graphic font size / styling to make it easier to
read for potentially far away attendees.

Task 2235815

closes odoo/odoo#50991

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-04 07:47:25 +00:00
Didier (did) 20b34ae867 [FIX] mass_mailing : remove space between alerts
Before this commit there is space between alerts. It's not pretty.
It only occur when a mailing is scheduled and mail have already be send (or in progress)

task-2275560

closes odoo/odoo#55376

X-original-commit: 84c5ba24ad5e8a2371e5ca75884298d569bf2844
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-04 08:38:29 +00:00
Parveen c653afc81e [IMP] account: add return value
This allows the method to be called in RPC
The nil extension has not been enabled as explained at odoo/odoo#12289

closes odoo/odoo#55374

Cla: signature for parveenjangra290
X-original-commit: abac62f35c8cd293143e01c137c79519897eb21c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-04 08:20:15 +00:00
Aaron Bohy 721f38b11d [FIX] base: can execute action from settings
Before this commit, when being in a settings form view with at
least two items in the breadcrumbs (the settings view preceeded by
another one), clicking on a button to execute an action didn't
properly work: an history back was done instead, thus returning to
the previous action.

For instance, go to Sales (without demo data), click on 'Set
payments' in the onboarding banner, click 'Go to the configuration
panel', and in the settings view click on 'Install More Packages'.

The issue has been introduced by [1], but we couldn't find a
scenario to reproduce it before saas-13.3.

[1] a3845ae3f0

Issue spotted in task 2277314

closes odoo/odoo#55351

X-original-commit: 6ccb108e9a621a672fde715ea78656ffeb6834e5
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-08-03 16:17:19 +00:00
Odoo's Mergebot ee623f1f26 [FW][MERGE][FIX] survey: apply multiple fix on conditional configuration and free text section
PURPOSE

Purpose of this merge is to provide several fixes to survey application
notably on conditional configuration and free text sections.

SPECIFICATIONS

This merge fixes multiple issues :

- Free text section display depending of conditional configuration and user input :
   For page_per_question and page_per_section layout :
    - If the section has a description:
        - If the section is empty: show the section
        - If the section has questions,
            - If any of the section's questions is active: show the section
            - Else: hide the section

- Do not compute last question based on conditional questions in session manager

- Do not show leaderboards if no nickname question in survey (if attendees cannot identify themselves).

- Block shortcut key selection after question answered (or time limit ran out) in session mode.

- Only display section if contains questions or description, even on non conditional survey ( + in breadcrumb, in print mode)

- Display only answered question in survey review mode

- Avoid auto Submit when selecting other option

- Restore mistakenly removed back buttons

- Fix is_last_page_or_question
    The current question is the last one only if:
        - There are no active questions that follows
        - AND the current question is not conditionning the display of other questions

See sub-commits for more details.

Task ID-2225393

closes odoo/odoo#55026

Forward-port-of: odoo/odoo#48978
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-04 08:44:36 +02:00
Christophe Monniez 12f035db8b [FIX] base: fix qweb ast validation with python 3.8.4
In python 3.8.4, when the ast.Name method is used with either `True`,
`False` and `None`, an ValueError is raised [1].

Because of that, Odoo fails to validate some Qweb views when used with
this particular Python version.

This fix is needed as Python 3.8.4 will be the default in the next
Debian version [2].

1: https://docs.python.org/3/whatsnew/changelog.html#id7
2: https://packages.debian.org/bullseye/python3.8

closes odoo/odoo#55305

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2020-08-03 11:56:07 +00:00
Nisha patel e0a7add01f [FIX] project: Fix sub-tasks stat button count
Currently, In the project module, the archived/deleted sub-task is
not deducted from the count of the 'sub-tasks' stat button.

Steps to reproduce:
 - Go to Project > Configuration > Settings > Enable 'sub-tasks'
 - Go to a Project with sub-tasks enabled, open a task and create a sub-task
 - Archive/Delete this sub-task

So in this commit, we applied filter on sub-task which show only active
sub-task on the stat button.

closes odoo/odoo#55347

Taskid: 2304887
Closes: #54904
X-original-commit: 81db237e3324922ff16f2b290922f21d98046738
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:49:52 +00:00
Sébastien Theys ba03b6c697 [FIX] mail: save JS records per model and use exists if possible
This allows get to be simplified to only handle local id.

Part of task-2308312

closes odoo/odoo#55346

X-original-commit: fa013d1d29e64706a08499d0f564327766410f8e
Related: odoo/enterprise#12159
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-03 15:49:04 +00:00
Sébastien Theys fe029223a5 [FIX] mail: speed up JS models by better using JS language
- use Map for _toComputeFields
- factorize const access out of loops
- avoid Object.entries
- introduces `exists` method to avoid costly call to `get`
- ensure compute are using update to trigger potential _updateAfter

Part of task-2308312

X-original-commit: e364886c2450872a7e42cef549f253b10e55158d
2020-08-03 15:49:04 +00:00
Sébastien Theys 1d7285dc56 [FIX] mail: speed up JS models x2m link/unlink by keeping prev Set
Part of task-2308312

X-original-commit: 1a06077443582f99f58c8c62ab517e7e527f58ed
2020-08-03 15:49:03 +00:00
Sébastien Theys 505f0e9be9 [FIX] mail: batch insert to speed up _setRelationInsertAndReplace
Part of task-2308312

X-original-commit: ceac1e5c3e200c0617ae6b62227079b47a7623d5
2020-08-03 15:49:03 +00:00
Sébastien Theys 470280b663 [FIX] mail: use Map to speed up _toUpdateAfters
Part of task-2308312

X-original-commit: 225c17ea2c761cf8cd15305796e7da7c5b79353c
2020-08-03 15:49:03 +00:00
Sébastien Theys 24fba9fed7 [FIX] mail: speed up insert by using localId instead of find
Part of task-2308312

X-original-commit: 407dc9796543a27b6695c8d4da922c13dece5b38
2020-08-03 15:49:02 +00:00
Nisha patel 7f3a8d9928 [FIX] hr: Hide employee chat button in modals
Currently, the "Chat" button appears in the form view when it is
displayed as a modal and on click sends to the app switcher
because js_class is not loaded on the dialog when employee
form view is opened through the one2many(dialog).
For ex: in online appointment when on click on 'available
emloyee' it will open the employee form view in dialog and there
is a chat icon but it does not work.

So in this commit, we fix this issue by hiding the "chat" button
when the view is displayed as a modal. make a button visible
based on action context and when form view is oped through the
click of one2many then do not display the chat icon on modal
dialog.

closes odoo/odoo#55345

Taskid: 2291340
Closes: #54381
X-original-commit: e2bac64411f80a3fcf2c5d5d60ad3eccf6517e56
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:48:34 +00:00
Arnaud Joset 7ebe85f138 [FIX] base: contact widget: address was not properly aligned
Before this commit, the address of the company in the boxed template was not properly aligned with the tag line.

closes odoo/odoo#55344

Taskid: 2287262
X-original-commit: 03cfc283df715247fc33ce78698582788c1d4aa9
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:42:10 +00:00
David Beguin 0941f784ef [FIX] survey: ignore randomise questions mode in live session
As there is no session object, it is not possible to generate a randomised set
of questions that will be displayed for all the clients.

When getting the most voted answers while checking which question is the next
one to display, or if this question is the last one, predefined questions are
regenarated each time a fake user input is created (the most voted answers.)

So at the end, while checking if a question is the last one, we compare
different objects.

This is not an issue for non-randomised survey, as everything is constant.

So, until a solution is found to keep information related to a session in
particular, randomised questions mode will be ignored in live session mode.

Task ID: 2230980

X-original-commit: 7f0981c4a61429802a5fe24dd794221b1275dfe3
2020-07-28 08:03:36 +00:00
David Beguin d271c32058 [FIX] survey: avoid autosubmit in session mode or when selecting other option
In Session Mode:
Before this commit, autosubmit was only dependant of the back button,
but not of the session mode. In session mode, back button is ignored,
and auto-submit sould not happen in session as user has not the possibility
to go back in case he misclicked.

After this commit, the auto-submit only happens if back button is activated AND
if we are not in session mode. This is already checked inside
survey._can_go_back method and already given to the template.

When selecting 'other' option:
For a single or multiple choice question, if the user is selecting the
'Other' choice, Auto submit should not happen. Otherwize, the user has not the
possibility the type his custom answer.
Also, if the question has comment that does not count as answer, the user
should still be able to add a comment after having selected the answer.
The comment can be a complement of answer.

Task ID: 2230980

X-original-commit: 7f03380b49a55f3c2e36f379043c33a8a17f49ed
2020-07-28 08:03:35 +00:00
David Beguin f0f7f888d3 [FIX] survey: display only answered question in survey review mode
Unanswered questions or sections are now hidden in the survey review mode.
Only the question answered by the user will be visible.
If the survey was done during a session, the users will see their own answers,
even if the theme they selected was not the most voted one (in case of
conditional questions).

To get the questions to display :
- questions that have been answered
- + the ones that should have been answered = active questions
  In session, active questions are based on most voted answers)

This commit also fixes the randomized questions handling in most voted answers,
as copied predefined questions where <NewIds> and those was not usable in
some templates.

Task ID: 2230980

X-original-commit: 8ca79727d5a93b91746c1e63d59d08550417906c
2020-07-28 08:03:34 +00:00
David Beguin 2efc4678bc [FIX] survey: block selection by key when already answered in session
Before this commit, during a session, it was still possible to select another
choice (in a multiple choice question) even after having selected and submitted
an answer.

After this commit, if the question has already been answered or time limit
already ran out, it's not possible to use key to select another choice.

Task ID: 2230980

X-original-commit: e1acda0493092f5020576fc30768141a99b9fd48
2020-07-28 08:03:33 +00:00
David Beguin e4e049ef22 [FIX] survey: fix is_last_page_or_question
Before this commit, is_last_page_or_question was determined only in function
of next active questions : If there are no active question after the current
one, current question is the last one.

But, in conditional questions context, if the current question is conditionning
the display of latter questions, when we display the current question, we
cannot already know if we are on the last question, as user did not answered
yet.

After this commit, the current question is the last one only if
- there are no active questions that follows
- AND the current question is not conditionning the display of other questions

For page_per_section, we check the same rule for all section's questions.

Task ID: 2232973

X-original-commit: 12d962e579d2480fbf821fb381adebf47668dbcc
2020-07-28 08:03:32 +00:00
David Beguin cbc8085761 [FIX] survey: don't show leaderboards if no nickname question in survey
Before this commit, after each scored question, a intermediate leaderboard was
shown, before going to the next question, even if no 'nickname' question was
present in the survey. So that the leaderboards were display only 'anonymous'
attendees, which is not really useful. Also, after last question, the final
leaderbaord was not shown and the survey was closed immediatelly, which was not
really coherent (show intermediate leaderboards but not the final one).

After this commit, the leaderboards and the final one are shown only if a
nickname question is present on the survey, so attendees can identify
themselves and retreive their ranking on each leaderboards.

Task ID: 2230980

X-original-commit: dd409de096c48f22476aff3f37526bc76c1cde12
2020-07-28 08:03:31 +00:00
David Beguin cb67ff261f [FIX] survey: apply conditional configuration to free text section
As section with description are now considered as potential questions to
display, the method to get the next question to display needs to check if
the next section should be displayed or not, depending on conditional
configuration and user inputs.

For page_per_question and page_per_section layout, the following rule now
applies:

If the section is empty (has no sub-questions):
    Show it if section has description, else skip it. (in both layout)
If the section has sub-questions:
    If a least one sub-question is active:
        In page per section: show it.
        In page per question: show if section has description, else skip it.
    If no active sub-question: Hide it.

Apply also empty section rules to non conditional survey :
If a section is empty (no description and no active questions inside), the section
should not be displayed.

Task ID: 2230980

X-original-commit: f0ce3623e3cfc2451e3f7359ec09399e6e474c10
2020-07-28 08:03:30 +00:00
Jinal Patel 950c7d415d [FIX] hr_holidays: Fix the automatic change of duration in allocation
In the commit, https://github.com/odoo/odoo/commit/3bd345597fa932abdaf780f72bacf331690f549b#diff-4b74c5cd47565e7fbe2a526d12a577c4L300
which convert the onchange to compute, there was onchage on
number_of_hours_display and on number_of_days_display which
going to write the value to number_of_days. but it was missed
in above commit so value was no upated in number_of_days.

So due to that when we try to allocate the duration in terms of days
or hours in time off allocarion and save it, it will be automatically
takes the default value.

So in this commit, Fix the issue and update the number of days based on
number_of_days_display and number_of_hours_display also set the default
value for number of days/hours when change allocation type or holiday
status type.

closes odoo/odoo#54715

Taskid: 2275933
Closes: #53014
X-original-commit: 5fe6ae94bb61cc27f8f3326408d749680e4f79e1
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-07-20 14:45:44 +00:00
jbm-odoo a9a64ffc0c [FIX] hr_attendance: Kiosk mode
After #56a8c9e4311d24c33b7ad08b8230e4be345a85b8 we check access rights in function fields_view_get,
so a user with only 'Kiosk Attendance' right can't see public
employee profile.

After this commit:
In attendance application, we always show public employee profile
as it not usefull to show more information in this application.

closes odoo/odoo#55341

Taskid: 2298803
X-original-commit: 1fbb8f1ebcb805317b93e0b4ea363aaec8e3e36e
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:11:54 +00:00
Thibault Delavallée 01f93f7a4b [FIX] website_event(_track): allow event managers to unlink menus
Followup of 69d2513de21c2e80de605f77912a3687b8a79c6d : fix computation of menu fields values to
be more inlined with base menu option (website_menu) + True by default when
activating menus.

Also force update when writing directly on a menu field to ensure coherency
of website.event.menu.

PR #55325

closes odoo/odoo#55340

X-original-commit: 19d028aa885d5623ae98b26ad135a1b29c89d5ee
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-03 15:10:14 +00:00
Thibault Delavallée 47677c5f0c [FIX] website_event: tune registration complete page
PURPOSE

Improve registration flow

SPECIFICATIONS

Followup of 2b5c0b41b20c8a73406fb71fa4a653a6867deac2 : better display of registration complete
page, notably event (not a link, simply in muted) and add some anchors to ease
inheriting module.

MIGRATION / UDPATE

Updated template: website_event.registration_complete

LINKS

PR #55325

X-original-commit: 93aacc5d5ea3de380d7979a6d435371b6fc38bdd
2020-08-03 15:10:14 +00:00
Thibault Delavallée ef9b26f064 [IMP] base: support giving tzinfo to QWeb babel datetime format
PURPOSE

Allow to finely tune display of datetimes in front-end by adding support of
tzinfo parameter of babel format_datetime. See babel for more details about
its use.

Also add some missing translations bits due to last QWeb options added.

LINKS

Followup of 69d2513de21c2e80de605f77912a3687b8a79c6d

PR #55325

X-original-commit: c7d6e90c93e505950496eec382c89a9936d243be
2020-08-03 15:10:14 +00:00
Victor Feyens 260383a2e2 [FIX] account: wrongly defined fiscal pos constraint
Wrong usage of self in for loop

closes odoo/odoo#55334

X-original-commit: 5a0b06ab0447f2b09e71934f2cc3209e6ebe9359
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-08-03 14:22:03 +00:00
Arnaud Joset 38ac9eb733 [IMP] base: increase margin_bottom for paper format
Before this commit, footer were too small for "clean" template wieh the company address is displayed on 5 lines.

closes odoo/odoo#54330

Taskid: 2287262
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-07-27 08:06:24 +00:00
william 75d4ffc83b [FIX] account: update the sequence when we change the date
The first Journal Entry of a tuple (period, journal) has a name set by
default so that the user can change it before posting.
If we changed the date after the name has been given, it never changed
anymore; meaning the number could not be of the same period as the date
of the Journal Entry.
We now always reset the name to the default one if the name has to be
recomputed (change of date/journal)

closes odoo/odoo#55321

X-original-commit: 0c5d71aab8eefb57116a5b93b4c67222a080ddec
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: wan <william-andre@users.noreply.github.com>
2020-08-03 12:11:32 +00:00
Odoo's Mergebot 30d1222d11 [MERGE] hr_timesheet: clean durations expressed in hours if encoding unit is in days
Purpose
=======

There are several places where the duration is expressed in hours even though the encoding unit is in Days.

Specifications
===========

The duration should be expressed in days instead of hours in the following places:
 [x]    Timesheet Entries
 [x]    Portal > Tickets
 [x]    Portal > Timesheets
 [x]    Portal > Tasks
 [x]    Portal > Sales Orders
 [x]    Project Overview
 [x]    Project task form view (in this case, the label of the field should be 'Planned Days')
 [x]    Timesheets > HR Timesheet/Attendence Report
 [x]    Project > All Tasks

Hide the following elements if the encoding unit is in days:
 [x]    'Timesheet Timer' feature on the project form view
 [x]    'Timesheet Timer' feature on the Helpdesk team form view
 [x]    the 'Round timesheets' feature in the settings of Timesheets (except if the 'Awesome Timesheet' feature is enabled)

Bonus point:
 [x]    Timesheet form view: 0.00 Days should be displayed in read-only if the duration = 0

 Some labels need to be adapted to explicit the unit of measure (is it carrots? potatoes?): e.g. Duration (Days) or Time Spent (Hours) :
 [x]    Timesheet entries report
 [x]    on the portal
 [x]    Project overview: add 'recorded' next to Hours/Days
 [x]    Project overview: add 'Days/hours Spent' above the total by employee
 [x]    task form view: make sure the 'sub-tasks days spent' button/label stays on one line

 [x]    hide the 'start' button on project tasks and helpdesk tickets if the encoding unit is in days

Task ID : 2152322

closes odoo/odoo#46184

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:32:46 +02:00
Arnaud Joset b5762c00f9 [FIX] stock: do not override execute in res_config_settings
closes odoo/odoo#55317

Taskid: 2304307
X-original-commit: f659344ceaf71f105e5dbea53160f67f056605fe
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-03 11:51:12 +00:00
qsm-odoo 8f82191e9d [FIX] website_blog: remove useless button to edit tags
The button was broken by [1] on top of now being useless anyway. This
commit simply removes it and takes the opportunity to share some
duplicated XML code at the same time.

[1]: https://github.com/odoo/odoo/commit/bdcc1ea9e729dc0e3c0bc28462db97e569119cda

closes odoo/odoo#55320

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-08-03 11:55:27 +00:00
William Henrotin 47e40e7f6a [FIX] mrp: usability fixes
- Default quantity on MO is 1.0
- Default quantity to consume on move is 1.0
- No open on the company_id from BoM form
- Optional=Hide for product, qty on BoM form
- Backorder button renamed to Validate
- Date deadline and origin to Miscellaneous tab
- Be able to remove stock_move when the MO is draft
- Some renaming in the menu and run scheduler under planning item

[FIX] mrp: fail to create stock.move after MO confirmation

Since the product_id on stock.move is readonly once it is set and the
MO is confirmed, it's not send to the server and the create crash
since product_id is NULL.

closes odoo/odoo#55270

Related: odoo/enterprise#12148
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-03 09:38:33 +00:00
William Henrotin 55c0d13104 [FIX] mrp: sample on workorder tree view
Decoration has to be adapted since the sample server fill
popover with false and the render fail.
2020-08-03 09:20:34 +00:00