Commit Graph
118934 Commits
Author SHA1 Message Date
Nikunj Ladava 1978fc2bd0 [FIX] payment: forward port of 8be798375e
Parameters of the rpc.fail is changed because of this commit : https://github.com/odoo/odoo/commit/fc5d030ef2695f7d2daeb87db9697240be4b99d4#diff-c52e0c611c3001980c7a7be0f6395e60R80

This commit is related to Task ID: 1869500
Closes #26052
2018-07-31 17:12:58 +02:00
RomainLibert 4a99d63615 [IMP] website_sale: change sale_report search view 2018-07-31 14:56:40 +02:00
RomainLibert 89c37b6e35 [IMP] sale: change date order into order date 2018-07-31 14:56:40 +02:00
RomainLibert 42aa0b16e3 [IMP] website_sale_link_tracker: add utm fields to sale.report
We need to be able to filter and group by campaign_id, source_id and
medium_id in the sale_report those fields are defined in utm mixin which
is installed with website_sale_link_tracker.
2018-07-31 14:56:40 +02:00
qsm-odoo e10a4303c2 [FIX] web: BS4, review selected dropdown item style
With BS4, I had to change the dropdown structure and with it the messy
way we handled "selected" items. Sub-filters items were still not
adapted correctly: use the "selected" class on dropdown-item elements,
not one of its parent.
2018-07-31 13:56:50 +02:00
RomainLibert 0520e0b51d [IMP] crm,website_crm_partner_assign: change some labels
In crm,website_crm_partner_assign and website_crm_score there were fields with
almost the same label, which was confusing, we change those names so it
reflects better what the field is used for.

|    field    |           module           |     old label    |         new label        |
------------------------------------------------------------------------------------------
| date_open   | crm                        | Assigned         | Assignation Date         |
| date_assign | website_crm_partner_assign | Assignation Date | Partner Assignation Date |
| assign_date | website_crm_score          | Assign Date      | Auto Assign Date         |
------------------------------------------------------------------------------------------
2018-07-31 13:23:38 +02:00
RomainLibert 629577ac86 [IMP] crm: clean crm lead actions and search view
In order to be able to add some enterprise views to crm, we need to
define the views as act_window.view, we also want to define a graph and
a pivot view for the leads.

We also want to have a more powerful search view associated with these.

Task: #1831168
Closes #25400
2018-07-31 13:23:38 +02:00
qsm-odoo 37b746c6cf [FIX] *: BS4, restore modal headers
Close icon should now be put after the modal title in the DOM.
Completes commit https://github.com/odoo/odoo/commit/d9801c1abe06b4c20702c0e94c56eea6a3ed8327
2018-07-31 13:07:48 +02:00
Shubham Johar 51ef4b8ea3 [IMP] auth_signup: Set activation_scope at 'B2C' by default
Purpose
=======

More and more features redirect to the portal (see & pay
quotations, invoices, etc.) with anonymous access by default
you can't sign up to the customer portal, while you see
a Sign in button. It's frustrating.

The ability to create a customer account is a nice service,
useful in any business willing to engage with returning
customers. This should be the default value

Specification
=============

Activate B2C portal by default. We have to create an
ir.config.parameter for the change to be immediate after
the installation. Otherwise the admin has to go and save
its res.config.settings one time before it's effective.

Task ID: 1841514
2018-07-31 12:37:50 +02:00
Yannick Tivisse a701031c92 [REM] account_invoicing: Merge module into account
Purpose
=======

The only module that was supposed to work without the accounting menuitems was
the ecommerce. Now that the ecommerce wants the accounting menuitems to be
visible, this module makes no sense anymore.

Specification
=============

Remove the account_invoicing module and move the code to account.
2018-07-31 12:34:18 +02:00
mgh-odoo 1fd9ebcdf8 [IMP] website_sale: Add a dependency to account_invoicing
Purpose
=======

Add account invoicing dependency and remove some duplicate options

Purpose of this commit is when ecommerce installed lots of invoicing
stuff still show up while account_invoicing is not yet installed
(like  (invoice button in sales order, invoicing policy of products etc..)
and most of customers not using ecommerce without invoicing so the split is
useless for now

Specification
=============

Add account_invoicing as a dependency of website_sale and remove
the duplicated options from settings

Related Task ID: 1866823
2018-07-31 12:34:18 +02:00
RomainLibert 14676c5aa1 [DOC] web_cohort: add context keys 2018-07-31 11:33:17 +02:00
qsm-odoo bcf61bdcab [FIX] mass_mailing: BS4, restore bg-color snippet option style 2018-07-31 11:08:11 +02:00
qsm-odoo 15af66ce3f [FIX] web: BS4, restore database manager
The database manager was broken with BS4, this commit restores it. The
old BS3 layout was not perfect either, so this commit redesigns the
forms with BS4 too.
2018-07-31 11:08:11 +02:00
Katherine Zaoral 5dd10f57ab [IMP] sale_crm: Source Document is set when a Quotation has been created from an Opportunity
opw-1867965
2018-07-31 08:02:05 +02:00
Fabien Pinckaers 0ee0fe5570 [FIX] crm: no filter on creation date this month 2018-07-30 21:48:09 +02:00
qsm-odoo 6f577ab280 [FIX] web: BS4, adapt caret position for sub-filters 2018-07-30 18:10:45 +02:00
qsm-odoo 6a80ddecfc [FIX] web: BS4, form sheet should clear floating elements
Before most were cleared by .tab-content elements, which is not the case
anymore with BS4.
2018-07-30 18:10:45 +02:00
Arnold Moyaux 2a4451d5b4 [FIX] stock: missing action's routing on delivery ressuply
Since commit a35df8d371 action has been
added on routing however it was forget in delivery ressuply case.
2018-07-30 16:02:17 +02:00
qsm-odoo 203296e8a9 [FIX] web: BS4, fix custom radio button style
This is a standard BS4 bug: radio buttons's dot is not properly centered
as soon as the html font-size is not a multiple of 4 (and our backend
uses 13px). As a quick fix, I change that to 12px and use a font-size base
of 13/12rem so that the body font-size does not change. Bootstrap will
probably fix this in a future update.
2018-07-30 15:08:16 +02:00
Goffin Simon 6e69de6707 [FIX] website_sale: Billing address in Authorize.net transaction
Let's consider the partner P1 with the address A1 and its invoice partner P2
with the address A2.

When creating a transaction in the shop for P1 with billing address = A1:

- if option Payment Flow =  Redirection to the acquirer website
   => the billing address of the transaction is A1

- if if option Payment Flow = Payment from Odoo
   => the billing address of the transaction was A2

Now with this patch, the billing address is A1 in each case.

opw:1867188
2018-07-30 15:02:06 +02:00
Yannick Tivisse 0ea443e943 [MERGE] sale, delivery: Improve the invoicing status followup
Purpose
=======

Improve some common usability issues coming from the invoicing followup.

Specification
=============

1. Sale: Rename 'Check/Set Price' buttons for more clarify
    relabel "Check price" -> "Get rate"
    relabel "Set Price" -> "Add to order"

2. Sale: Change the default invoicing method if there are downpayments
    Purpose
    -------
    Currently the default invoicing method is not very clear.

    Specification
    -------------
    Currently the result is not really correct. We can propose to deduct
    the down payment even if there are no down payments on the sales order.

    Now the option to deduct down payments will be selected if there
    is a downpayment line on the sales order and if there exists at
    least one invoice linked to the sales order that is not cancelled.

3. Delivery: Improve the SO invoice status
    Purpose
    -------
    If a SO is only containing lines for which the product is invoiced on
    the delivered quantity, the sales order is marked as 'Nothing to Invoice'.

    If I add a delivery line, the SO becomes 'To Invoice'. There is not really
    a use case in the real life where you will invoice the delivery fees before
    invoicing what has been really delivered.

    Specification
    -------------
    If an order:
    - contains delivery lines or downpayment lines
    - If the product on the other lines are invoiced on the delivered quantity
    - Nothing has been delivery or can be invoiced for theses lines

    Set the invoice status of the sales order to 'Nothing to invoice' instead
    of 'To Invoice'

4. Sale: Unlink the down payment on a SO if the invoice is unlinked
    Purpose
    -------
    When we create a downpayment line of SO and when we delete Invoice of downpayment then so line for downpayment is not deleted.

    Specification
    -------------
    Remove the downpayment line in the SO if the related invoice is deleted

Task ID :33126
2018-07-30 14:58:06 +02:00
Kirti Choudhary eebeb39da5 [IMP] sale: Unlink the down payment on a SO if the invoice is unlinked
Purpose
=======

When we create a downpayment line of SO and when we delete Invoice of downpayment then so line for downpayment is not deleted.

Specification
=============

Remove the downpayment line in the SO if the related invoice is deleted

Task ID :33126
2018-07-30 14:57:04 +02:00
Mitali Patel 752a6843d1 [IMP] delivery: Improve the SO invoice status
Purpose
=======

If a SO is only containing lines for which the product is invoiced on
the delivered quantity, the sales order is marked as 'Nothing to Invoice'.

If I add a delivery line, the SO becomes 'To Invoice'. There is not really
a use case in the real life where you will invoice the delivery fees before
invoicing what has been really delivered.

Specification
=============

If an order:
- contains delivery lines or downpayment lines
- If the product on the other lines are invoiced on the delivered quantity
- Nothing has been delivery or can be invoiced for theses lines

Set the invoice status of the sales order to 'Nothing to invoice' instead
of 'To Invoice'

Task ID : 33126
2018-07-30 14:57:04 +02:00
Kirti Choudhary 3d46887d38 [IMP] sale: Change the default invoicing method if there are downpayments
Purpose
=======

Currently the default invoicing method is not very clear.

Specification
=============

Currently the result is not really correct. We can propose to deduct
the down payment even if there are no down payments on the sales order.

Now the option to deduct down payments will be selected if there
is a downpayment line on the sales order and if there exists at
least one invoice linked to the sales order that is not cancelled.

Task ID : 33126
2018-07-30 14:57:04 +02:00
Kirti Choudhary d24b7503cd [IMP] sale: Rename 'Check/Set Price' buttons for more clarify
relabel "Check price" -> "Get rate"
relabel "Set Price" -> "Add to order"

Task ID : 33126
2018-07-30 14:57:04 +02:00
qsm-odoo a842f6b3ee [FIX] web: BS4, left-align buttons in modal footers
Modal footers now use flex to vertically center buttons. So our
left-align style overridde had to be adapted. Also, we sometimes
use footer buttons as non-direct children of the modal-footer, which
is not a supported BS4 case, so we had to adapt that too.
2018-07-30 12:57:27 +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
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
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