Commit Graph
151539 Commits
Author SHA1 Message Date
Fabrice Henrion 45bb68db0a [IMP] website_profile: improve wording and fix typos
Manual backport of commit done in master at 20e48b84f8. It is interesting
to have those fixes in 12.2.

Commit linked to task ID 1941250 and PR #31317.
2019-02-21 16:37:55 +00:00
Thibault Delavallée e85c99c145 [FIX] gamification: improve next rank icons
Background of icons should be transparent.

Commit linked to task ID 1941250 and PR #31317.
2019-02-21 16:37:52 +00:00
Thibault Delavallée 026663fb2b [IMP] website_slides: slightly improve demo data
Some addition to demo data, notably some members and a few more slides.
I bet there will be other commits improving demo data, one slide at a time.

Commit linked to task ID 1941250 and PR #31317.
2019-02-21 16:37:47 +00:00
Christophe Simonis 1d2b6f1bef [MERGE] forward port branch 12.0 up to 84143a34b3 2019-02-21 15:37:19 +01:00
Christophe Matthieu d5468974f7 [FIX] web_editor: trigger blur when click in an other iframe
Issue: in studio, when the user click in the iframe instead of click on
an other menu (on left sidebar) the editor does not trigger blur event,
the content are not saved.

closes odoo/odoo#31331
2019-02-21 14:25:57 +00:00
Toufik Ben Jaa f907ffdeb9 [FIX] hr_payroll: allow to request leaves
- When having multiples contracts, at least one open and one closed, we may
  not be able to request a leave.

  This issue is triggered if the closed contract has no end date.
  The code checks if the leave you try create overlap over multiple contracts.
  But if a contract has no end date and is closed, the check may never
  succeed.

  So if a contract has no end date and is closed we don't take it in
  account.

closes odoo/odoo#32909

Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2019-05-02 11:34:36 +00:00
Denis Ledoux fd0a10026c [MERGE] forward port branch saas-12.1 up to b11930047f 2019-05-02 09:45:14 +02:00
Antoine Guenet 27eb8ba617 [FIX] web_editor, website: never indent/outdent list groups
The "comparisons" website snippet uses a list group with the class set
on a UL. In consequence, the web editor considers it as a regular list
and may try to outdent it, which is not the expected behavior with a
list group. This fix ensures that ULs with the `list-group` class cannot
be in/outdented.

closes odoo/odoo#32709

Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2019-04-25 10:03:14 +00:00
Antoine Guenet cb9263a823 [FIX] web_editor: properly merge a LI with text with a LI with text in P
A list item with text can be written as <li>text</li> or as
<li><p>text</p></li>. Issues occurred when both syntaxes need to be
merged together. Namely, the <p>text</p> was being appended to the other
list item, thereby creating a visible new line.
2019-04-25 10:03:05 +00:00
Antoine Guenet 41088bb311 [FIX] web_editor: properly handle delete in nested lists of all syntaxes
This addresses various bugs that occured with nested lists - including
lists that are nested with a UL within a LI (as opposed to a UL directly
within another UL).
2019-04-25 10:03:00 +00:00
Antoine Guenet 8e89ffb175 [FIX] web_editor: properly convert a checklist to an ordered list
The `o_checklist` class was preserved when converting a checklist to an
ordered list.
2019-04-25 10:00:43 +00:00
Martin Trigaux 91b6c1076c [FIX] base: use correct code for Filipino
Backport of 6d9862f860 to saas-12.2

Instead of fil - fil_PH, it should have been fil_PH - fil.

closes odoo/odoo#33040

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-04-30 09:17:25 +00:00
Odoo Translation Bot 01a5464509 [I18N] Update translation terms from Transifex 2019-04-28 06:07:42 +02:00
Sébastien Theys 26d951f7e1 [IMP] base,product,website_sale: move image fallback mixin -> variant
Backport of d3d58b60dc

Only the variant is using this code, so it was a bad idea to make the mixin
more complicated than it had to be.

Update the image tests to make sure this is working correctly. The test were
only testing the size of the images, now they also test the actual content.

Part of task-1949729

Original PR: odoo/odoo#32253

closes odoo/odoo#32814

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-04-25 09:01:46 +00:00
Antoine Guenet fe2496350c [FIX] web_editor: properly paste text in non-HTML fields
This resolves an issue with pasting in text only mode (no HTML): the
list of nodes to paste was being modified with the `_mergeAdjacentULs`
method which is irrelevant to text nodes. Because of that, a corrupted
list of nodes was inserted into the DOM.

opw-1962743

closes odoo/odoo#32454

Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2019-04-25 11:33:00 +00:00
Toufik Ben Jaa c42ccf2ca7 [FIX] lunch: performance issue when retrieving lunch orders
- When retrieving lunch orders for specific users, the search could take a
  long time to be resolved.

  To fix this issue we rewrote the SQL View that retrieves the
  information for lunch orders.

closes odoo/odoo#32908

Signed-off-by: Denis Ledoux <beledouxdenis@users.noreply.github.com>
2019-04-24 09:56:09 +00:00
Aurélien Warnon 8c145f6407 [IMP] (website_)survey: hide header/footer when taking a certification
Purpose
=======

We need to hide header and footer of survey and website layouts when
the user is taking a certification ("certificate" field of survey.survey).

This is done to have a more "immersive" taking and avoid that the user
clicks on other links in the layout header or footer and moves to another page.

closes odoo/odoo#31503

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-04-24 06:40:24 +00:00
8bcb17b674 [FIX] web: grouped Kanban: traceback on click during reload
Have a grouped Kanban view with an x2many field. Interact with the
searchview, and then click anywhere.

The fetch of the x2many relational data is batched for the whole view
a single RPC for all groups) since e10fd346.

If the click occurs before all search_read are done (i.e. before the
fetch of relational data is started), there is a crash.

This is due to a call to get({raw: true}) to obtain the current model's
state, which is currently being reloaded and in an intermediate state.
Ideally, this shouldn't happen, but with the sync API of get, we can't
change that easily. So at most, we can ensure that it doesn't crash.
Moreover, sensitive functions requesting the state for the data can do
that in the mutex to ensure that the state isn't currently being reloaded.

Related to Issue: 1937149

closes odoo/odoo#32587

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>


Co-authored-by: Mohammed Shekha <msh@openerp.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
2019-04-24 07:07:41 +00:00
Aurélien Warnon 11b24c6b45 [IMP] website_sale_slides: improve course purchase flow
Slight improvement to the course purchase flow that directly redirects the user
to the checkout process when he buys a course.

closes odoo/odoo#32649

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-04-23 13:46:43 +00:00
Robot Odoo 96e3442c32 [MERGE][FIX] website_(sale)_slides(_survey): apply various UI fixes and improvements
Purpose of this merge is to provide some fixes and tweaks related to design
of eLearning application. Notably this merge provides fixes for mobile
display, forum integration, certification-specific design and some cleaning
in SCSS and bootstrap customizations. See sub commits for more details about
them.

Linked to task 1958372
Related to PR #32648

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-04-23 13:07:31 +02:00
sri-odoo 3d463640fc [IMP] website_slides_survey: add a specific background for certification channels
This commit introduces a specific icon/design for certifications. It is applied
to channels having at least one slide of certification type.

Linked to task 1958372
Related to PR #32648
2019-04-23 09:40:35 +00:00
sri-odoo cf0d12a9f4 [FIX] website_slides_forum: fix navbar overflow and mobile bg
Linked to task 1958372
Related to PR #32648
2019-04-23 09:34:52 +00:00
sri-odoo 8b61a4d18c [FIX] website_sale_slides: tweak and fix course price
Purpose: clean display of price for payment-based courses.

Linked to task 1958372
Related to PR #32648
2019-04-23 09:34:49 +00:00
sri-odoo 6867f7ba9f [FIX] website_slides: fix display of 'All Courses' menu in mobile
Purpose: clean and fix display of All Courses menu in mobile

Linked to task 1958372
Related to PR #32648
2019-04-23 09:34:43 +00:00
sri-odoo e5c7e43c71 [IMP] website_slides: reduce bootstrap customization and improve circular progress design
Purpose: reduce some customization and ease eLearning link with themes. For
that purpose use the body class name propagation recently added.

Linked to task 1958372
Related to PR #32648
2019-04-23 09:34:42 +00:00
sri-odoo e621e728e4 [IMP] website_profile: reduce bootstrap customization and improve circular progress design
Purpose: reduce some customization and ease eLearning link with themes. For
that purpose use the body class name propagation recently added.

Also mask the initial part of the circular progress, removing the border
radius effect.

Linked to task 1958372
Related to PR #32648
2019-04-23 09:34:41 +00:00
sri-odoo e59c034bf5 [IMP] website: allow to set custom class on body in frontend layout
Purpose: allow <body> to accept other classes rather than just the
'o_connected_user' one. It is useful notably to tweak the display of some
pages without breaking themes.

Linked to task 1958372
Related to PR #32648
2019-04-23 09:34:38 +00:00
Odoo Translation Bot 8815f9744c [I18N] Update translation terms from Transifex 2019-04-21 06:08:14 +02:00
Antoine Guenet 17aff7b59b [FIX] web_editor: uncheck new checklist item on split
On ENTER in a checklist item, a new checklist item is created. The new
one should never be checked. This ensures that ENTER in a checked
checklist item never creates a checked checklist item but instead cleans
the class.

closes odoo/odoo#32684

Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2019-04-15 11:40:05 +00:00
Dharmraj Jhala 8b31b3b18d [FIX] event: fix traceback while downloading ics file
Currently while downloading ics for an event, it gives
traceback due to improper handling of kwargs.

It was introduced from https://github.com/odoo/odoo/commit/a03faab03fdf8a164c2f1298cc138b3fa83b0bea

This commit fixes the issue by properly handling
kwargs in the method definition.

task-1938637

closes odoo/odoo#32750

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-04-18 05:22:34 +00:00
Sapan Zaveri 41b1333a38 [FIX] payment_payulatam: Fix error while making payment
In https://github.com/odoo/odoo/commit/e21f185d3c6a3bac3a1a7ba482df4d6cf616a159 acquirer_reference is changed to reference for payment,
but while validating the payment values there is still acquirer_reference so it's giving traceback

Now changed acquirer_reference to reference while validating payment and
check proper transactionID with acquirer_reference.

Task-ID: 1964073
closes: #32439

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-04-05 09:38:38 +00:00
Xavier-Do b583b118f8 [FIX] mail: find direct partner from right channel
Previously, when getting channel info, it was possible that the
channel name was the name of the partner of another channel.

This bug was introduced with 975164473c

closes odoo/odoo#32730

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-04-12 12:36:52 +00:00
Christophe Simonis fdd0179f4f [FIX] l10n_be_hr_payroll_fleet: inherit from direct parent view
This avoids being dependent on the order of records returned by PostgreSQL.

closes odoo/odoo#32689

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-04-15 12:43:26 +00:00
Odoo Translation Bot 85f5a98ea5 [I18N] Update translation terms from Transifex 2019-04-14 06:08:11 +02:00
qmo-odoo 7c8834459e [IMP] website_slides,_profile: Improve elearning UX
This commit changes:
  - In elearning homepage, change "Heroes of the week"
    to "leaderboard of the week"
  - In user profile, change "Rank: Master" to
    "Current Rank: Master"
  - In the "Edit Profile" view, remove the required
    on the description text area

Task: #1961116
PR: #32621

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-04-11 15:02:13 +00:00
David Beguin a515e21b6e [FIX] website_profile : set badge image instead of badge level icon in badge page
Set badge image if any instead of forcing badge level icon in badge page.
If badge has no image, use the badge level icon. And if no badge level, show default placeholder icon.

Task ID: 1961700
PR #32255

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-03-29 14:46:57 +00:00
Lucas Lefèvre 0a76be740b [FIX] hr_presence: Fix duplicate xmlid
Commit d77ce4c introduced a new inherited kanban view
for employees.
However an other kanban used the same xmlid.
Only one is loaded.

This commit changes the xmlid for the new kanban view.

closes odoo/odoo#32567

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-04-10 15:13:53 +00:00
Priyanka Kakadiya 078c209650 [FIX] website_sale_slides: correct demo data file path
Correctly set demo in demo instead of data.

Related to Issue: 1965630

closes odoo/odoo#32481

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-04-12 08:25:48 +00:00
Martin Trigaux cdc6b598e3 [ADD] base: Filipino language
As odoo.com is going to be translated in Filipino
Date format source: https://lh.2xlibre.net/locale/fil_PH/

closes odoo/odoo#31276
2019-02-21 13:36:00 +00:00
Hiral BhavsarandMohammed Shekha bb6aec1ac3 [FIX] web: several columns in line chart tooltips for large data
Currently tooltip goes out off the screen when the
graph view (in line mode) presents a large number
of groups.
The present commit splits the tooltip content in
three columns when the number of groups exceeds
20. This split is not done in mobile mode because
it is not an appropriate in that situation.

Co-authored-by: Mohammed Shekha <msh@openerp.com>

Related to Task: 1917958

closes odoo/odoo#30288
2019-02-21 13:03:22 +00:00
Hiral BhavsarandMohammed Shekha 4b652ebe8a [IMP] web: properly display min and max abs when less that 3 abs.
In graph line mode, min and max abs are
displayed beyond the screen when there are less
than 3 abs.
This is happening because nvd3 fixes their
text-anchor to 'middle'. The present commit fixes
correctly their text-anchors to start and end
respectively by using the '!important' rule (it
seems difficult to do otherwise).

Co-authored-by: Mohammed Shekha <msh@openerp.com>

Related to Task: 1917958
2019-02-21 13:01:26 +00:00
Alexandre Kühn 4e0a7cd944 [FIX] mail: keep input focus on emoji selection
Before this commit, when adding an emoji from the emoji menu next
to the composer, the focus was not automatically set on the input.

The input was correctly focused during the event handler of the
clicked emoji, but the browser default behaviour applied right
after was focusing out the input.

Task-ID 1943770

closes odoo/odoo#31325
2019-02-21 12:23:01 +00:00
RomainLibert aa21cfcf02 [FIX] hr_holidays: reintroduce no_validation leave_type
Since https://github.com/odoo/odoo/commit/59956805424808beed82f1afa5c5e6996e34eb13#diff-ab6382882079a64a861bbba2741a1075 it was impossible to use the no_validation
on hr_leave_type.

This commit reintroduces this possibility and ensures the leave user gets
an actvity for the leave

closes odoo/odoo#30806
2019-02-25 12:37:48 +00:00
Nans Lefebvre 0f62a46320 [FIX] mail: do not crash if a partner has more than one mail.channel.partner
It is assumed that there is a unique mail.channel.partner per (channel, partner)
pair, yet there is nothing enforcing this restriction.
As a result field access on the channel partner crashes on field access.

closes odoo/odoo#31259
2019-02-22 14:19:17 +00:00
Odoo Translation Bot fb01b7c952 [I18N] Update translation terms from Transifex 2019-02-24 06:02:40 +01:00
Lucas Lefèvre 5da4fa4697 [FIX] hr_skills: Fix skills widget table layout
The three columns in the skills widget (namely: skill name,
skill level and progress) did not evenly span the width of
the table.

This commit set the css width attribute of the first two
columns to 33%. The last column (added by js) takes the
remaining space)

closes odoo/odoo#31326
2019-02-21 12:21:39 +00:00
Jaykishan Solanki 2dd90370cd [FIX] stock: prevent crash if key does not exit in dict
Closes #31049

closes odoo/odoo#31323
2019-02-21 11:49:26 +00:00
Lucas Lefèvre c98dc505d6 [FIX] hr_skills: Set tree mode for widgets in mobile
In mobile, a many2one field is displayed as a kanban view
instead of a tree view.
However skills and resumé widgets have been designed
to work for tree views.
=> traceback when displaying the widgets in mobile.

Fix: force the mode to `tree`
2019-02-21 10:57:13 +00:00
Lucas Perais (lpe) 9fc2420ec6 [FIX] l10n_it_edi: cleaned context default_type
On the accounting dashboard, click on the button
"new invoice" on the customer journal.
Validate the invoice

Before this commit, it crashed because, as always
the key "default_type" was propagated all the way down
to the attachment creation

After this commit, we clean the context from that key
to avoid the problem

Note: There is no clean and safe method to clean
the context from keys only useful to `default_get`
in stable...

OPW 1943439

closes odoo/odoo#31319
2019-02-21 10:06:42 +00:00
Rishabh Jadia ac45703e27 [IMP] purchase: improve the purchase order report.
The purpose of this commit is, remove "our order reference" because it is already in the title, replace purchase order confirmation by purchase order and add the purchase representative.

Task Id #1902886

closes odoo/odoo#31099

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-02-21 09:45:56 +00:00