- Jun 01, 2018
-
-
Nicolas Martinelli authored
When the carousel is activated, the following will load all variant ids in the cache (cf. `_in_cache_without`): ``` <t t-set="variant_img" t-value="any(product.mapped('product_variant_ids.image_variant'))"/> ``` When accessing the `image` field at: ``` <div t-if="variant_img" class="..." itemprop="image" t-field="product.product_variant_id.image" t-options="..."/> ``` All variants in cache will have their image resized by the method `_compute_images` on `product.product`. In case of a product with hundreds of variants with images, this will take a major amount of time. If we replace by `product[:1]`, the system uses another cache, and doesn't fetch the image of all variants. opw-1844783
-
- May 31, 2018
-
-
Nicolas Martinelli authored
Commit 5439e72a introduces the automatic creation of a journal for a payment provider. However, the journal created doesn't have a default payment method, to avoid showing it in the backend. In the case of the eCommerce with automatic invoice creation, this set-up returns a 500 error after an online payment. Solving the problem is not obvious for the end-user. The error comes from the fact that the 'Manual' payment method is not available on the journal. We can remove this check. opw-1853011
-
- May 30, 2018
-
-
Adrien Dieudonne authored
(1) Before this commit, the input barcode was removed from the dom after each scan but now we want to keep it focused to avoid to automatically open the virtual keyboard in mobile. This behavior will be useful in enterprise only. Another commit will follow in this repository. As the input is not removed anymore, we had to disable autocomplete to hide previous entries as suggestions. (2) We also add z-index property to avoid to click on the hidden input located in the middle of the page.
-
Olivier Colson authored
[FIX] base: set vat number field as readonly on children partners; as it is a commercial field, it should always have the value defined on the parent partner. (this is a manual forward port from https://github.com/odoo/odoo/commit/98b1fffd4e99cc8ad2862c56fbd727979c38c48b , as a new view is defined in 11.0, needing this correction too)
-
Géry Debongnie authored
-
Nicolas Martinelli authored
Partner should be read-only on a posted AML. Fixes #24423 opw-1849177
-
- May 29, 2018
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
pimodoo authored
Th view validation when attribute force_save is set on a field raise an 'Invalidation error' because there is no rng attribute for 'force_save'. This attribute disappeared during the refactoring in rev: https://github.com/odoo/odoo/commit/70942e4cfb7a8993904b4d142e3b1749a40db806
-
Martin Trigaux authored
To have the translated version of tooltip_planner displayed opw-1850066
-
Odoo Translation Bot authored
-
Goffin Simon authored
When creating a warehouse, a traceback was raised if the xml_id: mrp.route_warehouse0_manufacture was not found. opw:1852761
-
Goffin Simon authored
The number of characters must be taken into account to print the barcode. With 13 characters -> EAN13, with 8 characters -> EAN8 else -> Code128 Backport of 12b11c1e opw:1849965
-
Lucas Perais (lpe) authored
Model A has a o2m to model B Model B has a m2o parent_id on B In A's form, add a B item, then in the m2o, create record Save and New Click on the m2o Before this commit, the python crashed on name_search. This was because we sent the virtual ids to it After this commit, there is no crash OPW 1850212 closes #24948
-
Nicolas Martinelli authored
The `pre_msg` field was removed from the payment process in commit 14081b84. We hide the field since it is confusing for end users. A proper refactoring will be done in master. opw-1849413
-
Goffin Simon authored
The number of characters must be taken into account to print the barcode. With 13 characters -> EAN13, with 8 characters -> EAN8 else -> Code128 opw:1849965
-
Quentin De Paoli authored
-
Goffin Simon authored
In this way the name of a delivery method can be translated on a SO line. Inspired from function 'product_id_change' in model 'sale.order.line' where the description of a SO line must be in the language of the partner. opw:1849656
-
Josse Colpaert authored
[FIX] stock_account: setting standard price with multiple real-price outs with negative quants fixes #24925 Somehow the function treated multiple records with the new api translation from 9 to 10. Steps to reproduce: This applies to delivery orders and manufacturing orders. As an example: Create an MO with 2 products on the BOM Both products must have real time costing with FIFO The first product on the bom must not be available For the second product on the BOM, the standard_price must be different from the cost of the next quant to be consumed Complete the MO, letting the first product result in a negative quant Current behavior: The standard_price of the second product on the BOM does not get updated. Behavior after this fix: The standard_price of the second product on the BOM gets updated. Thanks to matt454357.
-
- May 28, 2018
-
-
Lucas Perais (lpe) authored
Have a decorated (conditional on field) editable list, with a default_order. Have more records than the pager allows. Add an item, and hit escape to cancel addition. Before this commit, the cancellation crashed because the first record on the other page was trying to evaluate the decoration for its row, which is wrong in the first place. This was because creating a record increases the limit of the list, to be able to see the record being created. At cancellation though, that limit was never decreased. After this commit, the whole flow happens without problem. OPW 1844495 closes #24682
-
qsm-odoo authored
When a t-field element was in an editable t-ignore environement, modifying it was leaving the edit mode style attached to it. This was because of: 1) When the t-field element was changed, it was marked dirty but also its parent editable container. Fixing this, only solves the case where only the t-field (and not one of its neighbors) is changed but it was worth fixing anyway. 2) Before saving an element, the potential 'o_editable' and summernote classes were not removed of its descendant and were thus saved. Bug found with task-38069, merged in stable as it might occur there too.
-
- May 27, 2018
-
-
Odoo Translation Bot authored
-
Odoo Translation Bot authored
-
- May 25, 2018
-
-
Fabien Meghazi authored
Before this patch, early connections made to a 11.0 Odoo server running on Python 3 and deployed in threaded mode with socket activation would generate invalid registries. With this patch it is now possible, when this deployment mode is used, to opt-out addons preload by setting the following environment variable: ODOO_PRELOAD_ADDONS=no Note: this environment variable is only available for v11.0 as later versions does not preload anymore (cf: 1a39c9b)
-
Nicolas Lempereur authored
Since 953a693d link not corresponding to a route are tought multilang by default. Thus in the mass mailing, if the user had not the default language on the website he would have eg. a /fr_FR/unsubscribe_from_list placeholder in the mail. The placeholder is replaced by a real link pinpointing to the items the given person would unsubscribe to, but having /fr_FR/ part prevented that. With this PR, there is a dummy route so /unsubscribe_from_list is explicitely known as not multilang. opw-1850696 closes #24912 Co-authored-by:
Goffin Simon <sig@odoo.com>
-
Christophe Simonis authored
-
Aaron Bohy authored
Let's assume the following scenario in a Kanban view with a default filter. The user removes the filter, and quickly adds a new one. On a slow network, it may happen that the second reload request returns before the first one. On odoo.com, this is easy to reproduce on the tasks Kanban view. Before this rev., when this occured, the result of the first request was displayed, whereas it should have been ignored as another request was done later on.
-
- May 24, 2018
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
commit a3ab33f2 introduced invalid code
-
LofbergValentin authored
closes #1800442 Purpose ======= Odoo sessions are expired when no action has been triggered for the last 7 days. For kiosk mode, this doesn’t make sense. It means that once a week, a person with the rights to the employee under kiosk mode, has to come to the screen and log in again. Specification ============= Trigger an action to keep the Odoo session alive.
-
Christophe Simonis authored
-
Goffin Simon authored
To avoid a division by zero. Courtesy of @tbe-odoo opw:1850023
-
Jérome Maes authored
product.product inheritS from product.template, and they both define the 'standard_price' field, but implement it differently; - product: the field is a company dependent one (so non stored) - template: the field is a computed one based on tis variants For the first case, since the field is not stored in database, when doing SQL query, we have to get the value from the table ir_property. That is what purchase report does, but instead of searching on resource 'product.product', it does it on 'product.template'. There are obviously no entries in ir_property table for 'standard_price' field on product template. As consequence, the "product value" (cost) is always null in purchase reporting. This commit fixes that by modifying SQL query to get the good value from ir_property table.
-
Yannick Tivisse authored
This is a backport of commit https://github.com/odoo/odoo/commit/2f15a5fa647d55df36c9019df467802a3aa9b4e3 Purpose ======= Add the possibility to create private addresses, only accessible for a subset of users. Specification ============= - Add a new 'Private' partner type - Add a res.groups in base 'Access to Private Addresses' - Add ir.rules for the following behavior: - Every employees/internal users can read non-private addresses - Only users in group_private_addresses can access private addresses - Add in base a simplified form view for private addresses The following points won't be backported: - A HR Officer is automatically granted in group_private_addresses - Use the simplified form view to open the address_home_id form on employees That's because it requires to update 'base' to make it work. If a user only update 'hr', this will break his instance while 'base' isn't updated. But these modifications can be applied manually quite easily.
-
Rémi Rahir authored
-
Goffin Simon authored
When installing the website with a lang different than the one set on the user, the button unsubscribe in the mass mailing snippets didn't work because the unsubscribe link contains the code of the language. The function send_get_email_dict in model mail.mail didn't expect this behavior and so couldn't set the right unsubscribe link in the mail. opw:1850696
-