- Jan 15, 2019
-
-
Julien (juc) Castiaux authored
When posting a URL containing a semicolon, odoo stops the link before the semicolon instead of continuing the link to the end although it is a valid characters in URL (see RFC-3986) e.g. the url "example.com&foo;bar" matches "example.com&foo" instead of the whole link opw-1918367 closes odoo/odoo#30198
-
- Jan 16, 2019
-
-
Nicolas Martinelli authored
- Create the following attributes with values: Size: S, M, L, XL Color: Black, White - Create a product template with the following attribute values: Size: S, M, L, XL Color: Black The `name_get` of `product.product` returns `Name (SIZE, Black)` while it should only return `Name (SIZE)`. When using `attribute_id.value_ids`, the list of values contains all possible values of the attribute, not only the values which apply to the given product. In this case, it contains 'Black' and 'White', therefore the condition `> 1` is verified and the attribute is kept for display. We go back to the original filtering, and add `attribute_line_ids` in the list fields read in order to avoid prefetching. opw-1922140 opw-1922447 closes odoo/odoo#30273
-
Joren Van Onder authored
Cherry pick of 5b769650 in version 11.0 A customer can pay an order with a non-cash journal (e.g. a credit card through a stand-alone terminal). When this order has to be refunded later it should be possible to do so on that same journal. Some code prevented this from happening, notably a check in order_is_valid which explicitly prevented this for an unknown reason. There is no explanation in the commit (4647f896) introducing that. This commit allows the following: 1. input what you want to refund with a negative qty 2. click 'Payment' 3. click the Credit Card (type Bank) journal 4. (amount is auto-populated) 5. click 'Validate' opw-805302 opw-1913731 closes odoo/odoo#30218
-
Nicolas Martinelli authored
- Create a bank statement with more than 80 lines (therefore more than 80 AML) - Reconcile the lines - Go back to the bank statement, and try to add a new line An error arise: "You cannot do this modification on a posted journal entry, you can just change some non legal fields" The error arise on the `move_line_ids` field on which the web client tries to write. Actually, this field is hidden since it is only used in the domain of a stat button. We can make it read-only. opw-1921138 closes odoo/odoo#30266
-
Iryna Vyshnevska authored
Backport to 10.0 of 3b14a7da closes odoo/odoo#30090
-
Manuel Vázquez Acosta authored
To avoid bigger changes, only verify if the login is required. A proper refactoring has been implemented in master at 9771fdfe Closes odoo/odoo#30166
-
- Jan 14, 2019
-
-
larisa authored
The super call of action_payslip_done executes the method compute_sheet. Without this compute_sheet call, there is no salary lines and no accounting move is created. closes odoo/odoo#29737
-
Manuel Vázquez Acosta authored
-
Jeremy Kersten authored
Some sips provider don't use 2 as key_version. E.g. mercanet uses '1' as production key. Now we allow to override it in Ir Config Parameter for stable version. Todo: Need to make it customizable by end user into the configuration of acquirer. Courtesy of BEK for reporting opw-1916316 closes odoo/odoo#30185
-
- Jan 02, 2019
-
-
Denis Vermylen authored
When loading a partner form view, the ORM prefetches the computed fields purchase_order_count and supplier_invoice_count for all the related partners as well (parent, children, ..). Instead of reading the orders and invoices once per partner, we group them all together. opw 1919933 closes odoo/odoo#29788
-
- Jan 11, 2019
-
-
Raphael Collet authored
Commit a07a076c restricts the prefetching to `self` when accessing the fields to return. This is too restrictive, as it cancels prefetching of secondary records in computed fields. In this commit we limit the scope of the restriction to `self`'s model only; this fixes the original issue without impacting other models. closes odoo/odoo#30133
-
- Jan 10, 2019
-
-
Aurélien Warnon authored
Task #1923443 Purpose ======= The slides on the website showed the 'download' button regardless of the value of the 'download_security' field. If the value is 'none', meaning that the slides are never downloadable, the button should be hidden. closes #29904 closes odoo/odoo#30051
-
Christophe Simonis authored
SQL improve the speed of the implied group VS the orm version. closes odoo/odoo#30108
-
- Jan 08, 2019
-
-
Jorge Pinna Puissant authored
opw-1917605 Before this commit, when accounting is set to global rounding, the base amount per tax is not correctly calculated. Now, the Base amount per tax is calculated adding the rounded lines. To test this issue, you need to set to global rounding and create a customer invoice with the following lines : line 1 = Qty:40; unit price:2.27; tax:15%; discount: 10% line 2 = Qty:21; unit price:2.77; tax:15%; discount: 10% line 3 = Qty:21; unit price:2.77; tax:15%; discount: 10% When the invoce is printed, you would notice that the amount is 186.43 and it should be 186.42. closes odoo/odoo#30021
-
- Jan 07, 2019
-
-
Francisco Fernández authored
-
- Jan 04, 2019
-
-
Lucas Perais (lpe) authored
Have a RFQ in draft. Log a note or send a new message, but use the full composer to do it. Before this commit, the RFQ was set to sent After this commit, it stays rightfully in draft It is mark as sent, only if the button SEND RFQ is used OPW 1908094 closes odoo/odoo#29902
-
Jorge Pinna Puissant authored
Before this commit, when the fiscal year was setting to 29/02. The function that compute the fiscal year dates gives an error. This occurs when the date passed as parameter wasn't a leap year. Now, for the non leap years we use the 28/02. opw-1917035 closes odoo/odoo#29932
-
Alexey Pelykh authored
The condition was never validated closes odoo/odoo#29898
-
Alexey Pelykh authored
-
- Jan 03, 2019
-
-
Raphael Collet authored
The method `read()` may be very slow when reading relational fields and computed fields, because the computed fields can be computed on a recordset that is larger than expected. The issue occurs on model 'res.partner' when reading fields 'child_ids' and 'purchase_order_count', for instance. Suppose we read those two fields on a partner with 1000 contacts. First, the one2many field is read from the database and stored to the cache; the latter adds the value ids to the prefetching of 'res.partner'. Then, the fields are fetched from the cache. When 'purchase_order_count' is accessed on the partner, the field is computed on all its children as well... closes odoo/odoo#29867
-
- Dec 18, 2018
-
-
wan authored
closes issue #29352 The Dutch taxes will change the low tax 6% to 9% on 01/01/2019. Please add these tax code in the system and also change the affected fiscal positions. Both 6% and 9% needs to exist during the transition period. closes odoo/odoo#29374
-
- Jan 01, 2019
-
-
Odoo Translation Bot authored
-
- Dec 21, 2018
-
-
Thibault Delavallée authored
Currently name_search on res_partner holds code to be done by a customized SQL query allowing to speedup the search [1]. However when dealing with given args there may be a crash if there is a domain based on user_ids fields. Indeed this field is defined as auto_join [2]. It means the result of get_sql returns where parameters based on joined tables. Those tables are not available in the from clause in the original query. This commit fixes that issue by correctly taking the from_clause from get_sql. That way joined tables are available. Small update of the query is necessary as fields are now res_partner.{id/email/vat/reference} as there may be several tables linked in the query. A test has been added to avoid regression. [1] See https://github.com/odoo/odoo/commit/05ec12692f99b69924765fd0ce384632547f03f9 for a recent modification and implementation of this query, even if it exists since a looooong time [2] See https://github.com/odoo/odoo/commit/db8203c27a21acdbcad2cf1c394b6fea3cf13688 for the auto_join addition closes odoo/odoo#29827
-
- Dec 19, 2018
-
-
David Tran authored
No decimal part in Vietnam Dong (đ - Việt Nam Đồng) closes odoo/odoo#29650
-
Denis Ledoux authored
This revision is related to 12df3c6a The above revision serve its purpose as well, but by avoiding to store the result in a variable, and using the records cache instead, we gain some memory, which is noticeable when there are hundred of thousands products. The sudo() is important, as it must be the same environment then the above call to read to use the same cache. Otherwise the values won't be in the cache of self (without sudo), and it will go get it and prefetch other fields in the database.
-
Denis Ledoux authored
Oversight in revision a91ffcf1 Multiple products can have the same template. Passing multiple times the same template id to the search domain to get the sellers works, but better avoid the repetition for the performances.
-
- Dec 17, 2018
-
-
Denis Ledoux authored
By prefetching only the fields required for the `name_get` `product.product` & `product.template` have a huge number of fields, and prefetching them just to compute the name is overkill. Especially, as the browse was done using sudo, the prefetch was a bit useless as it was stored in the sudo user cache, which was most-likely not used afterwards by the callee of name_get For a database with 50.000 products, this reduce the processing time by 15 (from 60 seconds to 4 seconds measured)
-
- Dec 13, 2018
-
-
Nicolas Martinelli authored
- Install a second language, e.g. French - Set Parter A language to French - Create an invoice for A with a date due in the past - On the partner form view, print the 'Due Payments' The body of the letter is not translated in French. Something quite weird appears: - The corresponding string is exported in the `stock` module - It is linked to the demo data `stock.res_company_1`, which corresponds to 'My Company, Chicago'. Therefore, the translation cannot be found by the corresponding query generated in `_generate_translated_field` and `_read_from_database`: ``` SELECT "res_company"."id" as "id",COALESCE("res_company__overdue_msg"."value", "res_company"."overdue_msg") as "overdue_msg" FROM "res_company" LEFT JOIN (SELECT DISTINCT ON (res_id) res_id, value FROM "ir_translation" WHERE name='res.company,overdue_msg' AND lang='fr_BE' AND value!='' ORDER BY res_id, id DESC) as "res_company__overdue_msg" ON ("res_company"."id" = "res_company__overdue_msg"."res_id") WHERE "res_company".id = 1 ORDER BY "res_company"."sequence" ,"res_company"."name" ``` Indeed, `res_company.id` is 1, while `res_company__overdue_msg.res_id` is 3. The root cause has been solved in v11, to we only export the necessary term. opw-1908337 closes odoo/odoo#29525
-
- Dec 11, 2018
-
-
Romain Derie authored
Commit 5804246e introduced some improvements to speed up performances. One of them was to check if a customize_show view was active or not but the condition was on view.customize_show instead of view.active. Thus, as that view is always a customize_show, the condition would always be met. closes odoo/odoo#29414
-
- Dec 07, 2018
-
-
Raphael Collet authored
The definition of `attachment_ids` on model `email_template.preview` is wrong, because its table/columns refer to the model `mail.template`. As the field is only used to preview a result in a wizard form, it does not need to be stored. closes odoo/odoo#29349
-
- Dec 10, 2018
-
-
Julien (juc) Castiaux authored
The pager wasn't taking care of the filter opw-1912293 closes odoo/odoo#29360
-
- Dec 04, 2018
-
-
Jairo Llopis authored
If installed along with `auth_signup`, it sends an email when creating a missing user authenticated through LDAP. It is a confusing message that makes no sense, because the user is, from his POV, not actually creating a new user, but just authenticating with a new app with his known company-wide credentials. Besides, that invitation leads the user to change his password in Odoo, although he probably doesn't want to do that and have a password for Odoo and another in the LDAP server. The best option is to disable that email completely, which is what this commit does. closes odoo/odoo#29243
-
- Dec 05, 2018
-
-
Nicolas Martinelli authored
The module `vatnumber` (which is not maintained anymore) uses an incorrect validation method for Albanian VAT numbers. Therefore, we use the library `stdnum`, on which `vatnumber` relies for most cases. opw-1912680 closes odoo/odoo#29280
-
Julien (juc) Castiaux authored
opw-1913300 closes odoo/odoo#29263
-
Julien (juc) Castiaux authored
opw-1913108 closes odoo/odoo#29251
-
- Nov 21, 2018
-
-
Gert Pellin authored
Firefox for android gives atraceback when clicking the print receipt button. This traceback is caused becaus Firefox for Android does not support printing. This fix replaces the traceback by an explanation why it is not possible to print. Also backport for safari-fix closes odoo/odoo#28919
-
- Dec 04, 2018
-
-
Dharmraj Jhala authored
/!\ Should not be forward-ported in *12.0* /!\ Because of the mechanism to bind change / click event in the 10.0 implementation, when we are in edit mode on a product page, the event handlers that are in charge of updating the cart quantity can still be triggered. After this commit, click / change event while updating cart qty will not be effective in edit mode. task-1825889 Closes https://github.com/odoo/odoo/pull/24211 closes odoo/odoo#29224
-
Sylvain Van Hoof authored
The original method `put_in_pack` returns a `stock.quant.package`. Therefore, the override should do so. Fixes #27636 opw-1912671 closes odoo/odoo#29229
-
- Nov 30, 2018
-
-
Nicolas Martinelli authored
- Create a product A with a sales price of 40 - Create a pricelist where product A costs a fixed price of 100 - Assign this pricelist to a customer - Connect as the customer on the eCommerce On the eCommerce, the price for A is displayed as: ~~40~~ 100. We only display a price difference if the pricelist price is smaller than the sales price. opw-1885443 closes odoo/odoo#29141
-
- Dec 01, 2018
-
-
Odoo Translation Bot authored
-