Commit Graph
126133 Commits
Author SHA1 Message Date
Nicolas Lempereur ce2fdc02ab [FIX] im_livechat: bad rating=1 not 0 w/ 75d3121c
In 75d3121c9 the bad rating was change from 0 to 1.

This commit update the javascript feedback part so the behavior is the
one expected.

related to opw-1863312
closes #26043
2018-07-30 12:45:53 +02:00
Christophe Simonis 7a519520f2 [FIX] mail: use -U+FEFF instead of U+2011 for negative numbers
Just like cb2a3afa7e, U+2011 may not be
rendered correctly with all fonts.
2018-07-30 12:22:16 +02:00
Nicolas Lempereur 25de4a5426 [FIX] l10n_ch: adapt ISR report CSS to SCSS
In the CSS of the ISR report, we had things like:

 2 + 3/12in

This was valid in less, but in SCSS there would be no CSS with error:

  Error: 2.4/in isn't a valid CSS value.
          on line 3350 of stdin
  >>         width: 2 + 4/10in;

   ---------------^

These expressions were just used so it is more apparent that the number
is corresponding to the standard template.

We could keep them using:

  #{2 + 3/12}in

But this commit change it to directly use float number since with
margin/fonts/padding/... the expressions anyway didn't match that much
the standard template.
2018-07-30 12:06:37 +02:00
Lucas Perais (lpe) 4c1ebd0745 [FIX] point_of_sale: constrain pricelist belong to config's company
Have the Admin in company A
Create a pos.config for company B
Have its default pricelist to be one of company A's
Save

Log in with user B, in company B
Try to make a new pos session
When everything is loaded, the screen stays black, leaving the pos unusable

After this commit, we constrain the pricelists to either be of company B's
or to not have a company set on them

The black screen doesn't happen

OPW 1861757
closes #25996
2018-07-30 11:51:09 +02:00
Christophe Simonis fbd52d57d8 [MERGE] forward port branch saas-14 up to b8f866c57b 2018-07-30 11:44:31 +02:00
Christophe Simonis b8f866c57b [MERGE] forward port branch 10.0 up to 3a14b75518 2018-07-30 10:53:25 +02:00
Christophe Simonis 3a14b75518 [MERGE] forward port branch 9.0 up to cb2a3afa7e 2018-07-30 10:23:48 +02:00
Lucas Perais (lpe) 1fd430d08f [FIX] web_editor: link creation: @ not necessarily a mailto
In the field HTML, click on create hyperlink
as its url, put in http://hell-broke-luce.waits/?param=tom@waits.com

Before this commit, since the url merely contains a @, it was considered as a mailto: link

After this commit, if the url starts with a flavor of http, it is considered
as a standard http link

OPW 1869087
closes #26012
2018-07-30 10:14:26 +02:00
Lucas Perais (lpe) 510fe712ee [FIX] account: transmit analytic tags in credit note
Have an invoice with analytic tags
Create a credit note

Before this commit, the tags on the invoice lines
are not transmitted to the credit note's lines

After this commit, they are

OPW 1866432
closes #26010
2018-07-30 10:06:13 +02:00
Olivier Colson 068a8ec235 [FIX] account: bank journal form view: make 'bank' field writable again 2018-07-30 10:02:44 +02:00
Olivier Laurent 8ee329c1dc [FIX] P3: add missing opcode
In Python 3, SETUP_FINALLY is used if the exception object is bound in
the except block — even if there is no finally block — in order to
unbind and cleanup the exception's binding as part of PEP 3110:
https://www.python.org/dev/peps/pep-3110/#semantic-changes

This allows both using exception objects in Python 3 and using
finally blocks in both version.

opw 1824211
2018-07-30 09:49:59 +02:00
Lucas Perais (lpe) dc253ff1c6 [FIX] web: kanban progress bar, auto width
Have ~50 records in a column,
Mark 49 of them as blocked (kanban_state field)
Mark 1 or 2 as done

Before this commit, the bar that showed the proportions of blocked objects was invisible
This was because the min-width of a bar was 10px, without max-width
Leaving the red bar to 95% or something, the green bar to 10px
All of this overflowing 100%

After this commit, we compute max-width and min-width to be able to fit everything
within the progress bar

OPW 1867464
closes #25962
2018-07-30 09:24:16 +02:00
Lucas Perais (lpe) e81d331959 [FIX] event: outlook live calendar link doesn't work anymore
The functionality to add an event on outlook through a link seems gone on Microsoft's part
Or doesn't work as it did before

To avoid confusion, we remove the links

OPW 1865938
closes #25968
2018-07-30 09:14:36 +02:00
Odoo Translation Bot 26aff789c9 [I18N] Update translation terms from Transifex 2018-07-29 07:17:30 +02:00
Odoo Translation Bot ba61098cf3 [I18N] Update translation terms from Transifex 2018-07-29 04:03:32 +02:00
Odoo Translation Bot e1703cb95a [I18N] Update translation terms from Transifex 2018-07-29 00:26:54 +02:00
Martin Trigaux 9b4dfd9978 [IMP] base: do not load local file resources
The generation of the manifest should not be platform dependent, its content
should be the same whatever local files are present on the filesystem
2018-07-28 11:25:24 +02:00
Alexandre Kühn 66dd126053 [FIX] web: empty input for empty password field
Revision on https://github.com/odoo/odoo/commit/4b3588feb2b7e260bf237b0f3944c90cdc47c3b5

In order to not replace characters with '*' in edit mode (because of `input`
with type 'password'), the above commit did not format the value at all.
The formatter of a char with the option 'isPassword' turns all of its
characters into '*'. That is not intended for password inputs, because the
content is hidden by the browser with the 'password' type.

The issue with not using the formatter is that an empty field has the value
`false`, so an empty password field produces an non-empty password input with
its value to 'false'.

This commit fixes the issue by forcing empty string for empty password values.

Note: if you use an integer field with password, falsy values (e.g. `0`) become
empty strings in the input value.
2018-07-27 18:20:02 +02:00
Thibault Delavallée 2e440ac662 [MERGE][IMP] mail: notify when assigning another user to an activity
Purpose of this merge is to ease the use and discovery of activities by
notifying people assigned on an activity. This is limited to activities
assigned to another user than the creator to avoid being notified of
activities you just created for yourself.

This merge is related to task ID 1854820. Closes PR #25265.
2018-07-27 17:23:01 +02:00
Thibault Delavallée 792efc8615 [IMP] mail: notify people when another user assigns them on an activity
When someone assigns an activity to another user it is a good idea to
notify this user a new activity has been assigned to him. This is done
using the message_notify method that sends a notification either in the
Inbox either by email depending on the user preferences.

This commits is linked to task ID 1854820. Closes PR #25265.
2018-07-27 17:22:31 +02:00
Thibault Delavallée 4b348c6ed9 [IMP] test_mail: improve assertNotification method
Purpose is to be able to test generic notifications, not only those
attached to some messages.
2018-07-27 17:22:03 +02:00
Thibault Delavallée af3bd8193a [MOV] mail: move template used for notification to data
As those are technical views used as data when sending some notifications
they should not be in the templates.
2018-07-27 17:22:03 +02:00
Thibault Delavallée 5d795d16f9 [IMP] mail: remove unused imports 2018-07-27 17:22:03 +02:00
Nicolas Lempereur cb2a3afa7e [FIX] base: use -U+FEFF instead of U+2011 in -num
In af64780a2 an improvement was done so a numerical fields like '-500'
was not breaked up over two lines after the hyphen.

But it seems in a very particular case of printing PDF in a given
combination of condition:

- printing over wkhtmltopdf which itself uses an old version of webkit
- particular font (issue happen with Arial but not "Segoe UI")
- particular version of windows (windows server 2012, not on windows 10)

the - character at the front of a monetary, float or integer field would
be displayed as | erroneously.

The problem is probably that the font system in the old webkit with
given windows will not find the code point in the given font, and
doesn't fallback correctly.

This commit replace using the "NON-BREAKING HYPHEN (U+2011)" by using
the "ZERO WIDTH NO-BREAK SPACE (U+FEFF)" which is an invisible character
with no width that prevent splitting at its location.

As a note, an alternative to this character is "WORD JOINER (U+2060)"
that may be preferred, but it presents exactly the same issue (with
-|500 instead of -{WORD JOINER}500) in the same environment.

mentioned in https://www.odoo.com/forum/1/question/118653
opw-1867842
fixes #17093
fixes #25840
closes #26019
2018-07-27 17:07:38 +02:00
Alexandre Kühn 4b3588feb2 [FIX] web: edited password fields should not contain '*'
Before this commit, when someone was editing a password, the stored
password may not be the expected one by the user.

Steps to reproduce:

	1. Open "Outgoing Mail Servers" form.
	2. Set a password (e.g. "yop").
	3. Save, then edit.
	4. Add "y" at the end of the password field.

	> Expected value: "yopy"
	> Actual value: "***y"

This is due to the use of the char field formatter, which displays passwords
by replacing the characters with '*'. It is not necessary to do this in edit
mode, because it uses an input field of type 'password'. The browser
automatically hides the value of such inputs.

Any changes on a input field in edit mode uses the value of the input, so the
value of an password input should contain the password, without '*'.

This commit fixes the issue by using the formatter in edit mode for the input
of type 'password'.

Task-ID 1869565
2018-07-27 15:02:49 +02:00
Martin Trigaux 4c3e9d411d [I18N] export 11.0 source terms
To reflect all the unstable changes made in translations
2018-07-27 14:02:35 +02:00
qsm-odoo 1f68e93e4b [REF] *: BS4, 'pull-left/right' -> 'float-left/right'
See https://github.com/odoo/odoo/commit/d48b8593dde7c6adf679359e2dd64dee288e9544
2018-07-27 12:54:55 +02:00
qsm-odoo d8208f8fc2 [REF] *: BS4, adapt forms
See https://github.com/odoo/odoo/commit/93b0001df6766fe905ee69c25ec8d846e4551064
2018-07-27 12:53:46 +02:00
qsm-odoo 28cd674255 [REF] *: BS4, review panel and well structure
See https://github.com/odoo/odoo/commit/59237ea81988bdcd0cc746422a7c94bf2eadaaa2
2018-07-27 12:53:11 +02:00
qsm-odoo adb84f760b [REF] *: BS4, review panel and well structure
See https://github.com/odoo/odoo/commit/59237ea81988bdcd0cc746422a7c94bf2eadaaa2
2018-07-27 12:53:11 +02:00
qsm-odoo 336a9842cd [REF] *: BS4, adapt col-related classes
See https://github.com/odoo/odoo/commit/ed1b18f10348244ce26b8b27edbd59d91cee7772
2018-07-27 12:52:57 +02:00
qsm-odoo 517915770c [REF] *: BS4, adapt col-related classes
See https://github.com/odoo/odoo/commit/ed1b18f10348244ce26b8b27edbd59d91cee7772
2018-07-27 12:52:57 +02:00
qsm-odoo 3c1325c051 [REF] *: BS4, adapt dropdowns and carets
See https://github.com/odoo/odoo/commit/1c1c0897e8eca607c7f1b96b68a06c026c543e6a
2018-07-27 12:51:01 +02:00
qsm-odoo 9fa436b642 [REF] *: BS4, rename btn-default to btn-secondary
See https://github.com/odoo/odoo/commit/c59380bac5bbd47bc7dcd92b38049af29a62c3d1

Also, make an exception so that the buttons have their text
colored in our Odoo green.
2018-07-27 12:50:37 +02:00
qsm-odoo 2b3017974b [MERGE] *: migrate Bootstrap 3.3.7 to 4.1.3
See sub-commits for details.

task-49280
Closes https://github.com/odoo/odoo/pull/25045
2018-07-27 12:42:10 +02:00
qsm-odoo 519594e9ca [IMP] web: make one list view test better
The test which checks if the table column widths do not change when
switching to edit mode and back to readonly mode was not properly
written, which made its debugging difficult.
2018-07-27 12:36:54 +02:00
qsm-odoo 63b0bff4c7 [REF] web: BS4, disable problematic test
One small village of indomitable Gauls still holds out against the
invaders. With previous commit, some BS4 tests were solved by patching
our assets bundling system. This commit handles the only remaining test
that fails... by disabling it. Again, only PhantomJS fails to execute
that test, so this test should simply be reenabled by reverting this
commit as soon as we implement a better test system than PhantomJS.
2018-07-27 12:36:54 +02:00
qsm-odoo 805ea520fa [FIX] base: make JS tests possible with BS4
BS4 do not provide vendor prefixes scss mixins anymore as it is meant
to be used with the 'autoprefixer' library. As we only support the last
version of every major browsers in Odoo, we took the decision to not
use the library as it was also complex to integrate in Odoo. We decided
to do the library's work by hand if it ever become necessary.

This commit was made because we found a case where it is necessary: flex
display and flex property are not understood by PhantomJS, so lots of
our JS tests failed because some elements were considered (in)visible
while they are in fact not (in an updated browser). This commit should
be reverted once we implement a better alternative to PhantomJS.
2018-07-27 12:36:54 +02:00
qsm-odoo fd9c1e27cb [REF] *: BS4, restore some button style
* website_sale_comparison, website_sale_wishlist

<a/> elements without any href are now styled differently with BS4...
but we should never use one of those. Replaced those by <button/>
elements.
2018-07-27 12:36:54 +02:00
qsm-odoo e1a734df3a [FIX] web_settings_dashboard, *: try restoring settings dashboard design
* iap

The layout is still not ok and should be improved but this commit at least
make it functional.
2018-07-27 12:36:54 +02:00
qsm-odoo 85dc63345e [REF] web: BS4, review kanban design 2018-07-27 12:36:54 +02:00
qsm-odoo 702499430f [REF] web_editor, website: BS4, adapt website UI 2018-07-27 12:36:54 +02:00
qsm-odoo 8c32bfb45d [REF] web_editor: make our Summernote/BS3 work with BS4
The big plan is to remove our current editor and its customization and
replace it with an updated summernote. Meanwhile, we have to patch our
current lib directly so that it works with BS4.
2018-07-27 12:36:54 +02:00
qsm-odoo 6dc37ee461 [REF] web, *: share and adapt code for auto "more" buttons for navbars
* portal, web_tour, website, base

Before this commit, there were 3 different implementations for the same
feature: the "more" button in the community navbar, the "+" button for
the website menu and the "+" button in the enterprise navbar. As those
implementation were now broken with BS4, it was a good time to share the
code of those 3 features.
2018-07-27 12:36:54 +02:00
qsm-odoo 76f714dca8 [REF] web, web_editor, *: review theme color extensions
* survey, website_slides

Before this commit, the web_editor app created bg and text classes its
own way for theming (alpha, beta, grays, ...). Now the system is far
more automatic by extending BS4 color maps.
2018-07-27 12:36:54 +02:00
qsm-odoo cd3f5bbfda [REF] web_editor: BS4, review media dialog layout 2018-07-27 12:36:54 +02:00
qsm-odoo d9801c1abe [REF] web_editor, *: BS4, restore preservation mixins and adapt modals
* web, website
2018-07-27 12:36:54 +02:00
qsm-odoo 7aa473e099 [FIX] *: review some frontend layouts
* payment, portal, website, website_sale, website_sale_delivery

The way we used BS3 was not always perfect/conventional and was thus
not BS4 compatible at all.

Also improve the general look of some screens.
2018-07-27 12:36:54 +02:00
qsm-odoo 98c0fef0af [REF] *: BS4, review the 'media' structure
Only two classes remain to declare a media structure:
'media' and 'media-body'. 'media-left/right' are guessed by their
position using the flex layout.

Also, the 'media-list' class has been dropped but <ul/> element
should use the 'list-unstyled' class instead.

Like all other components, spacing between medias are now to be
handled explicitely thanks the spacing utility classes.
2018-07-27 12:36:54 +02:00
qsm-odoo a3cc9c2ad9 [REF] *: BS4, adapt progress-bar component
* project

Colors are now handled by bg-* utility classes.
2018-07-27 12:36:54 +02:00