- Dec 04, 2017
-
-
Cédric Snauwaert authored
commit 2f3b469d fixes a problem where open balance had to be added in the lines to create, however in the case where no line is selected, a new one is created automatically (for usability purpose) and the balance was not update correctly, resulting in the creation of a double entry.
-
Géry Debongnie authored
For some reason, Summernote does not trigger a change event in some cases. It looks like it happens in 'codeview' mode, and when the change in question is only a backspace key event. Maybe it listen for keypress and backspace do not trigger keypress event. In any cases, the situation is that it is not easy to clear an html field: going in edit mode, then selecting the content and pressing backspace will not work before this commit. With this commit, we specifically compare the value in the editor with the current value to determine if the field is dirty.
-
Adrien Dieudonne authored
Before this fix, there was an issue when you changed the value of a datetime field by editing direclty the input (without using the datepicker popup). If this value was equal to the offset of your timezone, the new value wasn't saved. The problem was that no event was triggered by the 'bootstrap-datetimepicker' lib because it considered that the old datetime and the new datatime were the same... In odoo JS, we always manipulate UTC moment objects and we manually add the timezone offset at rendering (we mainly do that for testing purposes). When the offset is added, calling format() on the moment object doesn't convert the datetime to the browser timezone because it's flagged as being UTC. The datepicker lib creates moment objects in the browser timezone. So comparing the ones it creates with the one given by Odoo is like comparing apples and oranges, and it gives wrong results when the datetimes differ by the exact timezone offset. So in this case, no 'datetime change' is triggered by the lib. We could fix this by wrapping moment objects into some kind of OdooDate class and stop manually adding the timezone offset, but this would involve a refactoring that can only be done in master. Instead, we prefered to patch the lib to ignore the comparison between UTC and non-UTC objects, as this is the safest way we find to fix this issue in stable version.
-
Yannick Tivisse authored
-
Yannick Tivisse authored
Purpose ======= Currently the wage reduced by a superior amount of 20 holidays is not taken into account in the brut2net computation. Specifiation ============ Take also the wage deduction into account
-
Yannick Tivisse authored
-
Yannick Tivisse authored
-
Yannick Tivisse authored
-
- Dec 01, 2017
-
-
Adrien Dieudonne authored
Due to a previous commit (@d2e1a1de), if a date was selected in search filter, the time was converted to UTC to the server. For negative offset, the search was then executed for the day before. Now, we avoid to convert the searched date to UTC. We only need to convert datetime fields.
-
- Nov 30, 2017
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Cédric Snauwaert authored
…ke lock date into account If we have a payment in october and a statement in november and the lock date is 1st november, we can't reconcile both because we try to write statement_id on payment but there is the lockdate constraint. This is not correct and we should be able to reconcile both even after lock date as it is the case for other moves.
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Thibault Delavallée authored
-
Christophe Simonis authored
-
- Nov 29, 2017
-
-
Danimar Ribeiro authored
This commit closes #14058
-
Jairo Llopis authored
This commit closes #20722
-
Jeremy Kersten authored
At this step, Order is not always confirmed
-
Jeremy Kersten authored
Without this patch, the user will see a button 'create a new page' on the 404 for the controller /event/<event_id>/page/<page>
-
Martin Trigaux authored
Courtesy of Visti Kristensen, IT-konsulent
-
Romain Derie authored
Before this commit: 1. If user wrote text in the quantity field to add to his cart, it would crash and show a server error. Now, if the user insert a non-valid quantity in the field, we set it to 1 Step to reproduce: With website_sale only - Go to a product page on the shop - Insert 'abc' in the quantity field and click 'Add to Cart' - Server will throw an error 'Can't parse float..' With website_sale_options - Go to a product page on the shop - Insert 'abc' in the quantity field and click 'Add to Cart' - Popup confirmation with optional product will show with 'NaN' in the qty - Click 'Proceed to checkout' - Server will throw an error 'Can't parse int..' 2. On the checkout, if user typed text in qty field it would create infinite quotations. Some modules (eg: website_event_sale) would hide this behavior because they override the RPC call to '/shop/cart/update_json' and throw an error on the RPC. Now, if user type incorrect integer quantity, we set the quantity to 1. Step to reproduce: 1. On base (website_sale only) - Add an item to your cart - On checkout page, set qty to 'abcd' or whatever text - Check your browser console, every 500ms their will be a RPC call - Check your quotations in backend, their will be a new one every 500ms 2. On db-all - Add an item to your cart - Set qty to 'abcd' or whatever text - Check your browser console, it will throw an error on the second call This closes #20482, closes #20904
-
Ivan Yelizariev authored
-
Ivan Yelizariev authored
It's needed in phantomjs tests. Without this commit it printed only error stack, which doesn't provide enough information to fix it. This is a problem when the error is not reproduced on running tours manually in browser.
-
Olivier Colson authored
[FIX] l10n_ch: only compute postal reference with sanitized number if no iban reference on the account
-
- Nov 28, 2017
-
-
Nicolas Martinelli authored
`_check_lock_date` is defined on a `account.move`, while in this case `move` refers to a `stock.move`. We re-implement a logic similar to the original commit 287b2932. Fixes #20913 opw-782395
-
adekock11 authored
Closes #21234
-
adekock11 authored
Done at #21234
-
flyingL123 authored
Fixes #21264 Closes #21266
-
flyingL123 authored
Done at #21266
-
Rémi Rahir authored
Before this commit, one could edit its company_name (char) at will but this has no effect on the actual company name (commercial_partner_id that is a company). Thus once the partner is linked to a company, the information entered in the 'details' form will not be in synch with the details info on the '/my/home' page. After this commit, we only allow edition of the 'Company name' field while the partner doesn't have a company set and display the company name once it is set.
-
Christophe Simonis authored
-
Florent de Labarre authored
If a user can read account.analytic.account but not the account.move.line, when he tried to open a partner, there were an raise AccessDenied errors. opw:782961
-
Nicolas Martinelli authored
1. Install mail and hr 2. Create a new mail channel: name: test Who can follow: selected group of user Authorized group: Employee / Manager Auto subscription: Employee / Manager 3. Edit the Demo user, and add him to group Employee Managers The Demo user is not subscribed to the channel (only Admin is) In this case, the web client sends a `sel_groups_` key, which is not handled by the `write` method. Fixes #20897 opw-782301
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christopher Tribbeck authored
Uses `float_compare` instead of comparing floats directly, which is anyway something that leads to precision errors. See related PR for detailed use case. Closes #20770 opw-781384
-
Lucas Perais (lpe) authored
In the case where: - you are too fast editing a mass mailing, trigger an onchange (e.g. mailing_model) and then save You can use the edit/save shortcuts to make yourself believe you are Flash Gordon - your internet is too slow (Down: 4Mb/s, Up: 500kb/s, Latency: 20ms) Before ths commit, the onchange will return *before* the field (the iframe actually) is loaded. This onchange contains a signal *in* the body_html of the field to allow communication with the iframe. If you save before the iframe is loaded, this body_html keyword will be saved. After this commit we deactivate the save button until the iframe is loaded. We could have gone for a python user error on the value of the body_html too. But it would have added a supplementary click and potential reloading OPW 783616
-