- Mar 25, 2019
-
-
Can Tecim authored
closes odoo/odoo#31592 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Nicolas Lempereur authored
This reverts commit 5324284f This reverts commit ad826f56. If for example we had in a template: <script type="text/javascript" src="/payment_stripe/static/src/js/stripe.js"></script> it has been reproduced to be gotten as: <script type="text/javascript" src="/de_DE/payment_stripe/static/src/js/stripe.js"></script> which is unexpected and could cause an error. closes #32090 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nicolas Martinelli authored
The field `has_tracking` should be read-only, there is no reason to make it writeable. opw-1958266 closes odoo/odoo#32080 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 24, 2019
-
-
Odoo Translation Bot authored
-
- Mar 22, 2019
-
-
Nicolas Lempereur authored
With 953a693d when a route is not found we assume it is a website.page that can be multilang. But with #31792 we should once again prefix URL by the language if necessary. The combination of the two cause issue when an url like `/web#home` is tested since we do not take `#` into account, we check if the route is multilang but no route `/web#home` is found => so we get `/fr_FR/web#home`. With this fix, `#fragment` is not taken into account when searching route. related to #31792 related to opw-1922051 closes #32059 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nicolas Lempereur authored
In 10.0 and before, if we were eg. on website page /fr_FR/contact, if `fr_FR` language (french) is installed and not the default website language we would have all URL towards translated content (route with multilang=True) prefixed with /fr_FR/ (the language code). With 9cd982bc some improvments were done to CDN but this also breaks language prefixing, so this cause an unecessary redirect: - we are on /fr_FR/contact and click on "Shop" - we go to /shop - odoo redirects US /fr_FR/shop With this PR, URLs are prefixed with language once again. note: the added test is hackish but the function tested depends on a lot of odoo.http things that are hard to use for test (request.render, request.context, request.httpreqest). opw-1922051 closes #31792 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
- Mar 21, 2019
-
-
Nicolas Lempereur authored
opw-1939323 closes odoo/odoo#32026 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nicolas Martinelli authored
- Create 2 `crm.lead`: Expected Revenue: 100; Probability: 99 % Expected Revenue: 200; Probability: 0 % - Go to Reporting > Sales Channels The amount displayed next to 'Open Opportunities' is 148.5 is instead of 99. opw-1947975 closes odoo/odoo#32011 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
The price comparison can be incorrect because of float representation differences. We make the template more robust against this problem. opw-1945541 closes odoo/odoo#32012 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 20, 2019
-
-
Nicolas Martinelli authored
With the demo data: - Go to Inventory - On the 'Delivery Order' Kanban card of YourCompany, click on 'Late' More pickings are displayed than the expected count. This is because the domain of the filter is not in line with the domain of `_compute_picking_count`. Closes #29777 opw-1951090 closes odoo/odoo#31994 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 21, 2019
-
-
Nans Lefebvre authored
Adyen requires the amount to be multiplied by 10^k, where k depends on the currency code. https://docs.adyen.com/developers/development-resources/currency-codes Provides a map of codes to factors. Before, k was assumed to be 2 (which is correct in most cases). opw 1928918 closes odoo/odoo#32001 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
- Mar 20, 2019
-
-
Swapnesh Shah authored
closes odoo/odoo#31998 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Jeremy Kersten authored
Manual cherrypick of 83b37a80 sale.order but also event.track need to use partner_id as email field Closes #31954 closes odoo/odoo#31967 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Nicolas Martinelli authored
- Create a contract for a vehicle - Renew the contract and set old one to closed - Run the cron 'Fleet: Generate contracts costs based on costs frequency' The closed contract is reset to expired. The contract should remain closed. opw-1949470 closes odoo/odoo#31974 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
qsm-odoo authored
Forward-port of https://github.com/odoo/odoo/commit/be689c53c13330832510c8cef332ac862d4ed5e8 was missed from 11.0. closes odoo/odoo#31971 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Mar 19, 2019
-
-
Nicolas Lempereur authored
If using Stripe we did "Pay Now" -> close modal -> "Pay Now" we would get 2 modals and possibly be blocked by infinite loading. With this changeset, we only execute one time our strip.js file so we do not declare multiple MutationObserver. We also only open one checkout at a time from stripe when closing and opening it or multiclicking click (the later one that could block the interface with several stripe iframe opened and one with a infinite loading wheel). opw-1939323 closes #31928 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
XavierDo authored
If a signal is received during the worker _runloop sleep, the worker will be marked as alive=False but process_work will still be called once. This commit prevents that by checking the worker state before calling process_work. closes odoo/odoo#31885 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
- Mar 18, 2019
-
-
Fabien Meghazi authored
Before this patch, the ir.logging's write_uid field was a many2one which could cause a module install/update to hang when the module is changing the res.users model schema and when this module causes to orm to warn through the logger. (eg: declaring two res.users fields with the same string attribute) In such situation the transaction cursor that is processing the res_users table alteration will be granted an exclusive postgresql lock hence causing the ir_logging insertion to block because of the write_uid foreign key to res_users. This issue has never been raised by runbot as it is using a remote database with --log-db Note: the write_uid conversion from m2o to int was left over in commit e6a5d820 closes odoo/odoo#32015 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
Nicolas Martinelli authored
Do not allow to write on a done WO except for time log. Partial backport of aafa0490cb540f1646e1d81c6cdb0cfd4a8b2429 opw-1946121 closes odoo/odoo#31917 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Adrien Dieudonne authored
Before this commit, users wasn't able to input values in some input elements like password, email and phone in mobile. Steps to reproduce: - Go to user - Select Preferences - Select Change password - Try to input something => The focus was lost and the keyboard disappeared In fact, a hidden input always have the focus when no other fields need it. This input is used to intercept a value from a barcode scanner. So now, we added some input types to avoid to set the focus on the barcode input. The barcode input is now always defined (even if not used in desktop) to be able to mock a Chrome mobile environment in a test. opw-1936712 opw-1948266 closes odoo/odoo#31841 Signed-off-by:
Pierre Paridans <pparidans@users.noreply.github.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Xavier Morel authored
PR #31086 converted the not-downstream traceability domain to use a filter instead as =/!= False on an o2m can lead to memory issues due to the way they're currently implemented / transformed. This also converts the downstream versiom just in case and to limit deviations between the branches. Co-Authored-By:
Daniel Reis <dgreis@sapo.pt> closes odoo/odoo#31901 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Mar 15, 2019
-
-
Denis Vermylen authored
Avoid potential tracebacks from the FSWatcher's thread being killed. Drawback: Server shut down can have an extra small delay (only applies when the --dev=reload option is given) closes odoo/odoo#31855 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
Denis Vermylen authored
Add the alternative of inotify instead of watchdog to watch the addons paths the server was started with. Reason: watchdog spawns 2 threads per path to watch. When there are a lot of addons paths, this can become too costly. With inotify we watch all the repositories in a single thread. https://github.com/dsoprea/PyInotify installation: pip install inotify
-
Nicolas Martinelli authored
We set the default rate to be 1.0 instead of 0.0, since a rate of 0.0 doesn't make sense. Partial backport of 29849159 opw-1949866 closes odoo/odoo#31866 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 14, 2019
-
-
Denis Vermylen authored
Before this commit every worker would start his own FSWatcher.
-
Lucas Perais (lpe) authored
Before this commit, it may happen that the the grouped account move lines sum will be business-wise "zero" but that its representation in SQL will not be rather, it will be equal to "10^[-high number]" After this commit, we round the sum to the number of digits of the company's currency to see if it is equal to zero, or not. We also need to filter out the specific case of unaffected earnings OPW 1942177 closes odoo/odoo#31755 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 18, 2019
-
-
Jorge Pinna Puissant authored
Have a partner (vendor) with a bank account. Create a Vendor Bills. Change the form view of the vendors bills to display the field partner_bank_id ('Bank account'). The field shows correctly the bank account of the vendor. Before this commit, when creating a Credit Note, the field partner_bank_id is empty. Now, the field parnet_bank_id is the one of the Company. opw-1903143 closes odoo/odoo#31554 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 15, 2019
-
-
Nicolas Martinelli authored
- Activate Lots and S/N - Track a product A by unique S/N - Receive one unit of A - Sell the unit of A through the POS - Go to Invnetory > Products > Lots/Serial Numbers, and open the Upstream Traceability report The line corresponding to the outgoing move line is not linked to the corresponding picking. The field `picking_id` is empty on the `stock.move.line`, so the link is not directly retrieved. Related to #31879 which fixes the issue for existing `stock.move.line`. opw-1939413 closes odoo/odoo#31880 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
- Activate Lots and S/N - Track a product A by unique S/N - Receive one unit of A - Sell the unit of A through the POS - Go to Inventory > Products > Lots/Serial Numbers, and open the Upstream Traceability report The line corresponding to the outgoing move line is not linked to the corresponding picking. The field `picking_id` is empty on the `stock.move.line`, so the link is not directly retrieved. Even if the POS should set the `picking_id` field, the traceability report should fallback on the picking of the move. opw-1939413 closes odoo/odoo#31879 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 17, 2019
-
-
Odoo Translation Bot authored
-
- Mar 15, 2019
-
-
Cédric Snauwaert authored
In reconciliation widget, when clicking reconcile with some existing line. if by any chance the transaction gets rolled back because of a concurrent update, the next replay attempt will use the modified parameters, and we will get a KeyError. Retrying the operation will succeed as soon as no other transaction conflicts again. Altering mutable RPC parameters is a bit risky in a public RPC method, particularly when those altered parameters will modify the effect of the method. Making a deepcopy of the parameters before using them is an easy workaround. The framework does not do it by default because of the hard-to-foresee memory overhead it would have. fixes #25403 closes odoo/odoo#31882 Signed-off-by:
Cedric Snauwaert (csn) <csn@openerp.com>
-
Antoine Prieels authored
closes odoo/odoo#31869 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
- Mar 14, 2019
-
-
Denis Vermylen authored
Python2 uses IOError instead. /!\ DO NOT FORWARD PORT AFTER 11.* /!\
-
- Mar 13, 2019
-
-
Christophe Simonis authored
-