Commit Graph
120482 Commits
Author SHA1 Message Date
Jeremy Kersten 9747ff249f [FIX] website: remove share page info option from page manager
Advanced user can do it from the backend by the way and it is not
obvious to understand the impact to set/unset this option.

Seems like I was the only guy to think that this feature was needed

task-1878245
2018-09-13 13:55:51 +02:00
RomainLibert 8e40fed773 [FIX] pos,product,sale_management: make pricelist available in pos
Before this commit pricelist was never available on the product form if
you only had pos installed.
2018-09-13 13:48:58 +02:00
Joren Van Onder 5756b00922 [IMP] l10n_co: additional data
add some additional taxes
add an additional document type (Used in electronic invoicing)

Was PR #26751
Was task #1874136
2018-09-13 12:54:35 +02:00
Thibault Delavallée 6f2122a79c [ADD] hr: add employee-related tests
Purpose is to test user - employee synchronization, especially about
timezones that are often broken.
2018-09-13 12:20:14 +02:00
Thibault Delavallée bfea44bfda [REF] hr: clean tests code
Purpose is to remove unnecessary code and prepare some future tests addition.
2018-09-13 12:20:02 +02:00
Thibault Delavallée d74fe36654 [IMP] hr: do not reset employee timezone if user has no timezone
Purpose of this code is to synchronize user and employee timezones. However
if the employee has one and the user none it is better to keep the one
set on the employee to avoid issues.
2018-09-13 12:19:29 +02:00
William Henrotin 8fad1e51ca [FIX] mrp: workcenter resource are materials
mrp.workcenters are resources instances. Their resource_type is human by 
default while workcenters should be considered as material. This commit 
set the resource_type as material by default in case of workcenter
2018-09-13 11:59:55 +02:00
William Henrotin e3e354529a [FIX] mrp: menu config
This commit reworks the resources related menu in MRP
2018-09-13 11:59:55 +02:00
William Henrotin 6329c44aeb [FIX] mrp: working hours required
Mrp workcenters have a resource_calendar_id to specifie its working
hours. On the form view, this field is optionnal but is mandatory in the
form view.

This commit set it as required in the view to avoid the classical 'object
with reference * - *' error.

Task : 1876847
2018-09-13 11:59:55 +02:00
ThanhDodeurOdoo d12b883155 [IMP] mail, web: attachments & messages in debug actions.
- added two new actions to the form view debug action list,
  both opens list (+ form) views of messages and attachments respectively
  for which the domain is restricted to the current record.

task: 1860031
2018-09-13 11:50:26 +02:00
ThanhDodeurOdoo 7f97c9fc05 [IMP] mail: new attachment button in the chatter
- Added a new button to the chatter that displays the amount of
 attachments on the current record and when clicked, all the attachments
 attached to the current record

      - added mail.FormView (includes), used by the chatter attachment
       button to fetch the field value of attachment_count.

      - added a computed field "attachment_count" to mail.thread that
       contains the amount of attachment attached to the record.

      - changed the followers div, it is now sharing a "right side"
       area with the attachment button.

 task: 1860031
2018-09-13 11:50:26 +02:00
jem-odoo 6a2b4827d4 [FIX] sale_timesheet: duplicate project remove tasks SOL
When duplicating a task, we want the copy to have
the same sale order line then the original.
However, we duplicating a project, the tasks are
copied too. But, in that case, we don't want them
to be linked to any sale line, as the copy project
will not be.

This commit fixes that use case, and provides a test.

Task #1883640
2018-09-13 11:44:13 +02:00
jem-odoo 0c28a6387f [FIX] sale_timesheet: too long sql name
The generated SQL constraints name is too long, and so, when raising, it
does not show the defined error message, since Postgresql truncated the
name. thus Odoo can not match the error with the error message.

Task #1883640
2018-09-13 11:43:45 +02:00
jem-odoo 708492b0a1 [FIX] sale_timesheet: add action name
Task #1883640
2018-09-13 11:43:31 +02:00
jem-odoo 11474ac3de [IMP] sale: add form view for sale line
Since in sale_timesheet (and elsewhere), the sale line is link to
some document, the user might click on this field to get more
information.
Unfortunately, he will get an odoo-generated form view, as no one
exists for this model.
This commit provides a basics and beautiful view for SOL, available
for all modules.

Task #1882245
2018-09-13 11:43:24 +02:00
qsm-odoo fd8d6cb393 [FIX] website: make theme customization modal multi-faster
Since the recent fixes on multi website, the customization modal
is restored but is a lot slower the first time we use it (around 20sec
to save an option on my machine). This was because when we change an
option, all the others options are sent to the server to be (re-)saved
and, on the first time, the multi-website system has to duplicate them
all to make them website-specific.

Now, we only enable/disable views which are modified by the user.
2018-09-13 10:35:42 +02:00
qsm-odoo 6113a20fa7 [FIX] website: multi-solve multi-website's multi-write
The write method did not work properly for views anymore as soon as it
was called on a multi-records recordset which contains at least one
view which is not website specific. In that case, it used the cow
system for that view (and thus created a specific copy)... but forgot
to continue the write method for the other views, leading to strange
results.
2018-09-13 10:35:42 +02:00
qsm-odoo c8a37b4678 [FIX] website: adapt customize modal to multi-website
The code used the xml_id field instead of the key field at some point,
so the modal was not fetching the proper views.

This commit also removes the useless code in there.
2018-09-13 10:35:42 +02:00
Jeremy Kersten f8dc09f0f2 [FIX] website_sale: fix express checkout flow with extra_step
Before this commit, extra_info was never considered enabled since it was
checking the original view and not the current website view.

By default disabled, when you enable the view, multiwebsite duplicate this
view to enable it for the current website.

+ fix redirect to kanban adress after editing the billing address instead of
the step 'choose your shipping address'

task-1878245
2018-09-13 08:17:09 +02:00
Jeremy Kersten f1e1b6aa8f [IMP] website(_*): typo, margin, missing href, font sizing, ...
Misc fix/imp according FGI request/test

task-1878245
2018-09-13 08:17:09 +02:00
Jeremy Kersten 32a2bca9eb [FIX] website_crm: remove useless thanks message
Informations are duplicate of the right column

task-1878245
2018-09-13 08:17:09 +02:00
Jeremy Kersten 9ea4e85e69 [FIX] website: add welcome message on new bootstrapped homepage.
Before this commit, when you create a new website, the home page was empty

task-1878245
2018-09-13 08:17:09 +02:00
Jeremy Kersten 57decbbed6 [FIX] web_editor: fix and improve AltDialog
Ref label
Add tooltip
Fix title from modal -> before this commit, modal title was wrongly replaced by title of image :/

task-1878245
2018-09-13 08:17:09 +02:00
Jeremy Kersten 4abfa435ea [FIX] portal, website: label in bold by default similary to bootstrap 3
In bootstrap 3, label was in bold by default. And we use label-optional to make label normal.
Update sass to have same behaviour:

required field in bold
other fields in normal

task-1878245
2018-09-13 08:17:09 +02:00
qsm-odoo 4a7623fec1 [FIX] portal, website: allow to use wide brand logo
When the user chose a very wide logo for the website navbar, it
overflew over the menu items (making the "+" feature look broken).
This in fact occurs since commit https://github.com/odoo/odoo/commit/4bc79da943c71e762e1f6dedbe3a641042bfef3f.
Its goal was to avoid top menu flickering due to that "+" button
feature. To do that, menu items were hidden with an height of 0 during
loading, then, once the correct number of items needed for the "+"
feature was computed, they were made visible to the user. Another
problem was due to the logo image loading. When it is not loaded yet, we
cannot properly compute the number of items which is needed. To solve
that problem, we fixed the size of the image container instead of
setting the height of the image itself.

But fixing the size of the image container only created a new bug: very
wide logos overflow this container. This commit solves all the problems:

1) The height of the image is set to be equal to the navbar links.
2) The height of the navbar is not forced, meaning that if the user
   decides to change the height of its logo to go against (1),
   everything will be adapted accordingly.
3) During loading, the menu items are still 0px tall, hidden and made
   visible once the "+" feature is enabled.
4) The "+" feature is only enabled once all the navbar images have been
   successfully loaded.

task-1878245
2018-09-12 17:54:42 +02:00
Alexandre Kühn 611b42409e [FIX] mail: filter messages in thread (Discuss)
Revision on https://github.com/odoo/odoo/commit/ec8c505bc1c9ec21939e9ffef53a9cc6f63f30c7

The commit above changes the way threads are rendered: the template
now uses a thread object, instead of a list of messages.

However, it was not handling messages that have been filtered from
the searchview. As a result, it was not possible to filter messages
at all.

This commit re-adds the possibility to filter messages, by providing
information on the domain of the thread in the template.

Task-ID 1877502
2018-09-12 15:02:22 +02:00
Alexandre Kühn 3b76886f9a [FIX] mail: toggle show/hide search options in discuss
Before this commit, the search option buttons were not
hidden when clicking on the zoom-in/zoom-out button next
to the searchview.

This is due to updating the control panel with the list
of buttons as the searchview buttons, instead of the
container. Since the visibility of the searchview buttons
is defined on the container, the toggler button and the
search view options lost synchronization.

This commit fixes the issue by providing the container
that is shared between search option buttons.

Task-ID 1877502
2018-09-12 15:02:22 +02:00
Alexandre Kühn 4ee7a009f7 [FIX] im_livechat, mail: any thread window has an ID
Before this commit, only thread windows in the backend had the
method `getID`. However, it should also be the case for the thread
windows in the frontend (website livechat), as the template of any
thread window makes use of this method.
2018-09-12 15:02:22 +02:00
Alexandre Kühn 5b4aebb441 [FIX] im_livechat: correctly display livechat statistics
Layout broke from bootstrap 4 migration.

Task-ID 1878249
2018-09-12 15:02:22 +02:00
Alexandre Kühn 6a9a20d025 [REF] mail, im_livechat: clean typos 2018-09-12 15:02:22 +02:00
Alexandre Kühn d52864569d [IMP] mail: bigger emoji size in the composer selection
The emojis were too small, thus hard to read.

Task-ID 1882595
2018-09-12 15:02:22 +02:00
Aaron Bohy 18bd4fa749 [FIX] web: remove race condition at webclient startup
Before this rev., there was a race condition making some tours
randomly fail on runbot, when the following steps occurred in that
order:
  - load webclient
  - as soon as the menu is ready and visible, click on a root menu
    which thus leads to a doAction
  - in the meantime, an RPC is done by the webclient to retrieve
    the (optional) default action of the user (if there is no
    state in the url, which is the case for tours in general)
  - when that RPC returns, this action (if any), or the action of
    the first menu is executed, thus leading to a second doAction
  - the ActionManager using a DropPrevious, the first doAction is
    dropped and thus the action linked to the clicked menu is
    never shown, making the tour fail

This rev. uses the state of the ActionManager's DropPrevious to
prevent the default action from being executed if another action
is already being executed, thus removing that race condition.

Note that this fix is temporary, as the community webclient is
currently being refactored.
2018-09-12 13:30:24 +02:00
Antony Lesuisse 0abae675e8 [FIX] base: improve rtlcss warning message with instructions 2018-09-12 13:04:21 +02:00
Romain Derie d7ea1030ab [FIX] web_unsplash: row without container not taking all width in bs4
This commits add a container to make row full width, it also use bs4 classes to
make the content centered.
It also clean useless DOM.

Task-1878245 (chatter)
2018-09-12 11:30:19 +02:00
Romain Derie 4fb73a3de0 [FIX] web_editor: BS4 input group button height glitch
As an `form-group` can contains element having `form-control` class and other
not having it, we should not force height on `form-group` elements.

Typically, we could have:
div.form-group
  input.form-control
  button

Forcing height only on `form-control` will make the input thinner than the
button.
2018-09-12 11:30:16 +02:00
qsm-odoo 51f38a8466 [FIX] website: restore proper carousel options
We have JS which tooks care of customizing the color and background
options of .carousel elements so that the active carousel item is
edited instead. The recent snippet refactoring added those options on
.carousel-item elements directly, so that slide and carousel options
are separated in the customize menu. This however made the options
complex to use and some of them impossible to use. This also added color
and background options on non-snippet carousels like for the products in
the shop, which was not meant to be. This commit goes back to the old
system for now.

Note: using "[class*='s_']" as a selector to match snippets is not
correct as it matches the elements whose classes contains 's_'... and
in our case the body was matched because it has the class
'editor_ha*s_*snippets'. A proper way would be to use this selector:
"[class^='s_'], [class*=' s_']". But even then, this is not really a
good way.

task-1878245
2018-09-12 10:56:55 +02:00
qsm-odoo 1b4f317a08 [FIX] web_editor: BS4, do not suggest XS size for buttons
The XS size for buttons was removed in BS4. We lowered the size for
btn-sm though, so those are the replacement.

task-1878245
2018-09-12 10:56:55 +02:00
qsm-odoo 2041a61cac [FIX] website: use full width form for menu item dialog
This was always supposed to be full-width but this was buggy since
before 11.0.

task-1878245
2018-09-12 10:56:54 +02:00
qsm-odoo f1ccc4978b [FIX] web_editor: do not ask for link style during menu item edition
The menu item dialog is an extension of the link dialog where all the
.form-group elements which contain a .link-style option element are
removed. A new link style option was recently added but with the wrong
class, preventing it to be removed for the menu item dialog.

task-1878245
2018-09-12 10:56:54 +02:00
qsm-odoo 39a441e902 [FIX] web_editor: restore link dialog preview
By default, all btn colors are suggested in the link dialog (alpha,
beta, gamma, delta, epsilon, link, primary, secondary, success, info,
warning and danger). In lots of themes (and the default one), primary
= alpha and secondary = beta, which led to having two suggestion with
the same apparent color.

A new system was introduced to automatically remove the duplicates...
but this system also removed the button preview as it considered it to
be a duplicate.

This commit also adapts the preview to BS4.

task-1878245
2018-09-12 10:56:46 +02:00
jem-odoo 0cbf638730 [FIX] project: remove default group_by
When seeing the task of a proejct, we don't want to force
the group by stage on the list view.
2018-09-12 10:44:12 +02:00
jem-odoo 32700ebacc [IMP] hr_timesheet: remove calendar view for timesheet
The calendar view does not make many sense for timesheet. Moreover
recording timesheet from it is strange since there is no end date
on the timesheet model.
Removing this view avoids confusing for users.

Task #1883326
2018-09-12 10:44:12 +02:00
jem-odoo a01b5eb402 [IMP] *_timesheet: improve tests
This commit only improve timesheet tests, by adding
more assertions.
2018-09-12 10:44:12 +02:00
qsm-odoo 797442a024 [MERGE] portal, *: redesign portal screens
This commit redesigns all portal screens, improve bootstrap compliance
and increases maintainability. See sub-commits for details.

Closes https://github.com/odoo/odoo/pull/26849
2018-09-12 10:36:09 +02:00
qsm-odoo 49923edc90 [FIX] portal: adapt tests to portal changes 2018-09-12 09:37:56 +02:00
qsm-odoo 545638c8f4 [FIX] portal: at least use background mixin for portal dark background 2018-09-12 09:37:56 +02:00
sri-odoo a56a476a97 [REF] sale, project: move edit button into portal top banner 2018-09-12 09:37:56 +02:00
sri-odoo 9aafeb8429 [IMP] portal: make fullwidth top banner
Add template that render a top banner. This box is intended
to be used to prompt system message, like links to the backend.
2018-09-12 09:37:56 +02:00
sri-odoo aac0f8e9fc [REF] website_crm_partner_assign: use template for 'opportunities' 2018-09-12 09:37:56 +02:00
sri-odoo 9dc300b467 [REF] project, hr_timesheet: use template for 'tasks' and 'projects' 2018-09-12 09:37:56 +02:00