Commit Graph
126133 Commits
Author SHA1 Message Date
qsm-odoo 3207a5a45c [FIX] website: review s_tabs card's color option
Set the background color on the card instead of the column, just like
regular cards snippets.
2018-10-01 15:07:50 +02:00
qsm-odoo 517e84111a [FIX] website: properly allow multiple s_tabs snippets per page
Before this commit, the nav-tabs IDs/urls/... were the same when that
snippet was added multiple times or duplicated. Now, the IDs are
recomputed everytime a new .nav-tabs appears.
2018-10-01 15:07:50 +02:00
qsm-odoo a3aaad9286 [REF] website: use get_current_website method instead of context 2018-10-01 15:07:50 +02:00
Laurent Smet ac08187bb6 [FIX] account: fix a $.when() in the reconciliation widget
var defs = [def1, def2, def3]
$.when(defs) is not equal to $.when(def1, def2, def3) but $.when.apply($, defs) is.
2018-10-01 14:54:16 +02:00
David Beguin c603dc0706 [FIX] mass_mailing : fix buttons style for unsubscribed page (lead and contact case)
Buttons class was not aligned with unsubscribe page for mass_mailing.contact case.
Linked with Task ID 33224
Closes PR #27352
2018-10-01 14:32:23 +02:00
Adrien Dieudonne c4937132a3 [FIX] web: line chart x ticks labels overlapp
This commit hides some labels depending of the avalaible size
of the graph.

We had to skip some test because 'renderEnd' is not triggered
for line chart. We need to update nv.d3.
2018-10-01 14:24:51 +02:00
David Beguin a8ce59ce36 [FIX] mail : Fix blacklist search method
As building a custom filter on 'Blacklist is false' is creating a filter '!= True'
instead of '= False', the assumption that operator must always be '=' is wrong.
This commit inverts the value and operator if the operator is '!='.

Fix for Task ID 33224
PR #27334
2018-10-01 14:21:19 +02:00
Goffin Simon e764739d0d [FIX] sale_mrp: price unit of kit
- Create the following products in FIFO costing method and real-time
  valuation:
  Prod Final (F); Invoiced on Delivered Quantity
  Prod Comp1 (C1); Cost = 20
  Prod Comp2 (C2); Cost = 10
- Create the BOM Kit for F:
  2 Unit(s) of C1
  1 Unit(s) of C2
- Create a SO for 3 Unit(s) of F
- Validate SO and picking
- Create the invoice and validate

The price unit taken into account for F in the anglo-saxon accounting
entry is:
20 + 10 = 30
=> entry in Stock Output Account is 3 * 30 = 90

while it should be:
(2 * 20) + (1 * 10) = 50
=> entry in Stock Output Account is 3 * 50 = 150

This should finally fix issues corrected with:
9a7ed7c: price unit multiplied by the qty sold (*)
f1fdb97: price unit taking into account only 1 unit of each
component

(*) In the use case solved, the price unit was:
(6 * 20) + (3 * 10) = 150
=> entry in Stock Output Account is 3 * 150 = 450

opw:1886216
2018-10-01 14:05:58 +02:00
Christophe Simonis 4aed744934 [MERGE] forward port branch saas-11.3 up to 07444245de2 2018-10-01 14:01:11 +02:00
Aurélien Warnon 6f9a223ca8 [IMP] product,(website_)sale: Product configurator default_get cleanup + bugfix
Targets commit d3530eb

Purpose
=======

[Follow up AL review]

Removed the default_get override in the sale_order_line model.
- The default values to create records are now specified by pefixing them with "default_" in the JS.
  That will use the built-in framework method, which is more simple/clean.

- The "list_editable_renderer.js" file for the product configurator was removed and its content is now merged within
  the SectionAndNoteListRenderer.

Updated fields:

- [sale_order_line in sale/sale.py] "product_no_variant_attribute_values" to "product_no_variant_attribute_value_ids"

[Follow up JCR testing]

Various bug fixes including:

- optional products dont show when they have variants configured on them
- when no variant is created, you cant choose the product one first time in the ecommerce
- when in debug, attribute and attribute value menu is double
- fix design of default picture in cart summary / product comparison
- fix missing href tag on product comparison "add to cart" buttons
- fix button "Configure Variants" is always shown even if there are no variants
2018-10-01 13:37:30 +02:00
Aurélien Warnon 154fc7d9dd [IMP] product,(website_)sale: Product configurator bug fix
Targets commit d3530eb07e

Purpose
=======

[Follow up JCR testing]

Various bug fixes including:

- optional products dont show when they have variants configured on them
- when no variant is created, you cant choose the product one first time in the ecommerce
- when in debug, attribute and attribute value menu is double
- fix design of default picture in cart summary / product comparison
- fix missing href tag on product comparison "add to cart" buttons
- products with the "Can be sold" box unchecked should not appear in the product configurator
2018-10-01 13:29:09 +02:00
Aurélien Warnon 27a7393852 [IMP] product,(website_)sale: Product configurator default_get cleanup
Targets commit d3530eb07e

Purpose
=======

[Follow up AL review]
Removed the default_get override in the sale_order_line model.
- The default values to create records are now specified by pefixing them with "default_" in the JS.
  That will use the built-in framework method, which is more simple/clean.

- The "list_editable_renderer.js" file for the product configurator was removed and its content is now merged within
  the SectionAndNoteListRenderer.

Updated fields:

- [sale_order_line in sale/sale.py] "product_no_variant_attribute_values" to "product_no_variant_attribute_value_ids"
2018-10-01 13:28:41 +02:00
qdp-odoo 48b596d533 [FIX] account: Shorthand method names aren't supported in IE11 2018-10-01 12:12:52 +02:00
Christophe Simonis 57e387b645 [FIX] stock: correct quant view
Oversight of previous forward-port.
Revert 0b81117295.
2018-10-01 12:03:48 +02:00
ThanhDodeurOdoo 4365e796e2 [FIX] mail: activity form view.
Changed the field display of activity delay fields as
requested by EST.

PR: 27326
Task: saas-11.5 Framework bugfix; 1873908
2018-10-01 11:28:32 +02:00
Christophe Simonis 998723b909 [MERGE] forward port branch saas-11.3 up to e980af9df0 2018-10-01 11:27:51 +02:00
qsm-odoo 1f1987d0e3 [FIX] web_editor, website: adapt to transparent color
- Adapt used-in-the-page color behavior
- Add transparent image for theme customize dialog previews

See https://github.com/odoo/odoo/commit/5ba0216b746a16b4609bc9c147fcacad109e969a
2018-10-01 11:01:34 +02:00
Andrea Ulliana 5ba0216b74 [FIX] web, *: support opacity in colorpicker dialog
* web_editor, website

Add an opacity slider and an opacity input to control opacity over
the chosen color.

task-1887571
Closes https://github.com/odoo/odoo/pull/27289
2018-10-01 11:00:54 +02:00
Christophe Simonis 3fc388c696 [MERGE] forward port branch 11.0 up to 92d7a5210d7 2018-10-01 10:46:29 +02:00
Christophe Simonis e980af9df0 [MERGE] forward port branch 11.0 up to a9a556178d 2018-10-01 10:44:38 +02:00
Mathieu Duckerts-Antoine a4b1c4193e [IMP] web: count measure first if selected in pivot view
The count measure is now put first in the order
of selected measures.
2018-10-01 10:38:14 +02:00
celm1990 0105e02fa7 [FIX] account: incorrect use of translation system
Cf https://www.odoo.com/documentation/11.0/reference/guidelines.html#use-translation-method-correctly
2018-10-01 10:08:45 +02:00
Lucas Perais (lpe) cbff00a5d2 [FIX] base_vat_autocomplete: support overload street fields
Install base_vat_autocomplete and base_address_extended.
Try to create a contact with VAT: BE0477472701 (or any valid one)

Before this commit, there was a traceback because the split of the address string into fields
contained a field that is set in base_adress_extended, and not handled by the current module

After this commit, there is no traceback

OPW 1887288
closes #27291
2018-10-01 09:35:51 +02:00
Lucas Perais (lpe) 1bd7adcc8b [FIX] web: debug_manager set defaults
On a form view, click on set defaults, select a value for a field,
then save

Before this commit, there was a traceback because the model on which we apply
the defaults was not found

After this commit, it works as expected

OPW 1887032
OPW 1888715

closes #27148
2018-10-01 09:31:15 +02:00
Odoo Translation Bot 4d46569766 [I18N] Update translation terms from Transifex 2018-10-01 02:39:15 +02:00
qsm-odoo 23ea037b0a [FIX] *: adapt to https://github.com/odoo/odoo/commit/55131b8f5becdd3d4776f4c3e7e4288a0b185706
* website_calendar, website_crm_score, website_form_editor
2018-09-30 22:34:05 +02:00
qsm-odoo d6fefdf226 [FIX] website_form_editor: correct snippet addition option
See https://github.com/odoo/odoo/commit/c4420253d7e1b047f76268bf070ad7028305e402
2018-09-30 22:32:47 +02:00
qsm-odoo dd139948f0 [IMP] web_editor: use inheriting views for oe_structure content
Before this commit, when using the website editor, modifications were
saved in place in the original view. The view was also marked as non
updatable so that when an user migrates its database, he does not lose
its modifications.

The problem with this system is that users were able to keep their
modifications at the cost of having views which are not up-to-date with
the latest odoo updates.

Now, the views' content which is inside an oe_structure element is saved
in an inheriting view instead of the original view. The original
view is not marked as non updatable anymore.

Note 1: we only consider elements with the 'oe_structure' class which
also have an id containing the 'oe_structure' string.

Note 2: if a non oe_structure but editable content is edited, the
original view is still marked as non updatable (however, with the new
multi-website feature, this may not be necessary as the edited view will
be duplicated to be website-specific... we may want to disable the
behavior in a future update).
2018-09-30 19:55:17 +02:00
qsm-odoo 4f15c939a7 [REF] *: add oe_structure IDs
Future update will allow to save oe_structure editions in an inherited
view instead of editing the original view in place. The condition is
to have an id on the .oe_structure element which contains the
'oe_structure' string.
2018-09-30 19:55:17 +02:00
qsm-odoo 55131b8f5b [REF] website, *: add automatic context for call_kw rpc
* web_editor, website_blog, website_crm_partner_assign, website_links,
  website_livechat, website_mail_channel, website_mass_mailing,
  website_slides

Calling a model's method thanks to an RPC will now always send the
web_editor context automatically, making sure the method gets the
website_id all the time, removing the need to guess the current website
(now the get_current_website method uses the context website_id if any).

Note: other routes already have the website_id via request.env.context
if they correctly set website=True (this commit also adds website=True
for scss files customization routes).
2018-09-30 19:55:17 +02:00
Fabien Pinckaers feae553b98 [IMP] mail: typo, launched -> schedule 2018-09-30 15:54:41 +02:00
Nhomar Hernandez cc46bf97a4 [FIX] sale: Call the proper method in the test and not the partial one.
With this we can test the invoices properlly in other environments where
we do not depend on sale due to the fact of this incorrectly set test we
hade collateral damage in the localizationsfor example (also related to
doesn't have a new created field called correctly in invoice_open and
the method action_date_assign was not called propperly.

With this fix we do not need to make defensive programming in the
localizations in order to allow us to test it properlly.

closes odoo/odoo#27316
2018-09-30 08:09:48 +00:00
Odoo Translation Bot 62ab7eb88b [I18N] Update translation terms from Transifex 2018-09-30 07:02:39 +02:00
Odoo Translation Bot a01c1bf5bf [I18N] Update translation terms from Transifex 2018-09-30 02:25:45 +02:00
Odoo Translation Bot 0a94a766e6 [I18N] Update translation terms from Transifex 2018-09-30 00:29:10 +02:00
Romain Derie 850e1675eb [FIX] website: store default menu tree (apps menu) for new website
Previously, for multi-websites it was decided that:
  - creating a new website would not get already existing apps menu (shop,
    blog, forum..).
  - installing a new app would create the app's menu on existing website

This was decided mostly for technical reason but it is a weird behavior.

This commit saves the installed apps menus in order to copy them on new website
If this default menu got deleted, we ensure a minimalist tree menu for new
website

Note: This also fixes the bug where installing a website_module more than once
(with -i website_module in command line) would create the menu (blog, shop,
forum..) on the first website a second time.

This was because the website.menu.create() overrided in website would
return the last created record in the self loop, thus the last one created
would be the one set to the xml_id (ir.model.data).

This commit closes #27253
2018-09-29 17:56:21 +02:00
TWA 73f0cc21ce [FIX] partner_autocomplete: Enrich data even if get logo returns error 2018-09-29 11:30:21 +02:00
TWA c51d4c2d05 [FIX] partner_autocomplete: Catch error on get credit balance 2018-09-29 11:30:21 +02:00
Rémi Rahir e12ac2b91b [IMP] snailmail(_account): smoothe the etimation of price
Up until now, when we wanted to post a single document, it's base64 blob
was uploaded to the snailmail server to estimate the cost of the
transaction.  We now use the 'batch' apporach that will estimate the
price based on 1 page per document.
2018-09-29 11:12:39 +02:00
Rémi Rahir 8a74bb8c5a [FIX]l10n_de: wrong field namewhen writing on company
commit 61eef73b52 changed the name of a
field but one was forgotten.
2018-09-29 11:12:39 +02:00
Rémi Rahir a95bbd85b1 [FIX] sms: fix style on the wizard
because of some changes on the FieldText widget to correctly compute the
size of the eidt box, the SmsWidget can no longer extend that widget since
we work with a DIV and not a single TEXTAREA. For the future, we
might change the way FieldText works but since we only need the basic
functions from InputField in this case (no need of resize nor
translations) we chose to extend InputField.
2018-09-29 11:12:38 +02:00
Rémi Rahir b6a981405e [IMP] snailmail: adding special map for the country names 2018-09-29 11:12:38 +02:00
Olivier Dony 2ff9b379ef [FIX] mail: fix blacklist mechanism
Several quick fixes:

- repair malformed SQL queries and injection problems
- proper token comparisons (consteq)
- better translatable terms (less context-lessplaceholders)
- basic testing of case-(in)sensitivity of blacklist
- safety check for non-implemented cases in search methods for computed
  field

More testing and review is needed for case-sensitivity and email
extraction from generic "addressing fields".
2018-09-29 04:47:44 +02:00
Sébastien Theys 2cee34fea2 [FIX] website_sale: fix cart update - broken by product configurator
It tried to parse non existing json if product_custom_attribute_values was not set.

This commit closes #27308
2018-09-28 23:37:29 +02:00
Sébastien Theys b867d38661 [FIX] website_sale: fix JS module name - broken by product configurator
Another module already had the same name, so there was an exception and it was not possible to run this tour.

This commit closes #27308
2018-09-28 23:37:29 +02:00
Sébastien Theys 860602b26e [FIX] website_sale_comparison: fix BS4 bugs
This commit closes #27308
task-1880762
2018-09-28 23:37:29 +02:00
Sébastien Theys 79e56bddc9 [IMP] website: add default social share image
Allow to specify another image than the logo as default share image.

This commit closes #27297
2018-09-28 21:28:20 +02:00
Christophe Simonis cfca60d422 [MERGE] forward port branch saas-15 up to ed3eff1427c 2018-09-28 19:17:34 +02:00
Christophe Simonis 9c457eb0d5 [MERGE] forward port branch saas-14 up to 285a68d2357 2018-09-28 19:15:14 +02:00
Christophe Simonis 88fa382664 [MERGE] forward port branch saas-14 up to 503c7a3d65 2018-09-28 19:14:45 +02:00