- Nov 04, 2019
-
-
fw-bot authored
`is_false` relies on no small part on equality tests between the input triplets and either `TRUE_LEAF` or `FALSE_LEAF`. While these are defined as tuples, RPC domains will always be lists (as neither XML-RPC nor JSON have tuples, and their arrays deserialize to Python lists). This is an issue, because tuple and list never compare equal. As a result, while the in / not in predicates can succeed, the TRUE_LEAF / FALSE_LEAF never will, and thus domains which contain either and might shortcut (avoid a query entirely) will always go through the entire process. Fix by having domain normalization also ensure all triplets are tuples: that's the first thing `is_false` does, it should never cause issues and could fix / improve / shortcut other routines. Note: Also implements TRUE_LEAF and FALSE_LEAF handling in the SSF's modifiers evaluator. And fixes the ValueError to work correctly if it breaks on a tuple / dict. closes odoo/odoo#39684 X-original-commit: 225f14e2 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Nov 03, 2019
-
-
Odoo Translation Bot authored
-
- Oct 31, 2019
-
-
Nans Lefebvre authored
By default, the name of a file input field is 'Custom File Upload'. If there are two fields with the same name, then they both end up in self.form_fields with the name 'Custom File Upload[0]', and their values are concatenated, which are file objects. So the concatenation of two files is a String, ('[object File],[object File]'), because JavaScript. (And if you don't like it you don't like the web nor human progress.) The resulting bug is that instead of adding attachments to the created record, it adds the string message to the notes. Adding the outer loop index disambiguates the names, so that all attachments are created as intended. opw 2092653 closes odoo/odoo#39669 X-original-commit: 5df3f662 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
Nans Lefebvre authored
When testing the import of records, a flush should be done to check all databases constraints and fields computations. Moreover, in case an exception is raised within a savepoint, the environment should be cleaned up, to avoid tricky bugs (see below). We replace the manual handling of savepoints with the savepoint context manager, which already handles all of this. This code predates the context manager, so in a way it was archaic. When testing the import of records, the following could happen: "An unknown issue occurred during import (possibly lost connection, data limit exceeded or memory limits exceeded)." This would happen on project tasks; the fields 'working_hours_open', 'working_hours_close', 'working_days_open', 'working_days_close', all depend on the computation of _compute_elapsed. Because this is a test import, the records would raise a MissingError, and fields_to_compute would always contain 3 of the fields. The resulting is an infinite loop giving this error. opw 2092134 closes odoo/odoo#39627 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com> Co-authored-by:
Raphael Collet <rco@odoo.com>
-
fw-bot authored
closes odoo/odoo#39249 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by:
Lucas Lefèvre <lul@odoo.com>
-
Swapnesh Shah authored
Before this commit, the values of these 3 fields in database may be desynchronised with the one set in the cache by the ORM but not commited yet. Before this commit, when confirming an attendee, the count was not correctly recomputed. '_compute_seats' was triggerd when changing the state of the registration but the value of 'state' was still the one before the confirmation, making the sum outdated. Note that two constraints are raised when modifying the field state: - _check_seats_limit - _check_ticket_seats_limit If _check_seats_limit is executed first, the bug does not occures because it first triggers the '_compute_seats' method on event.event model, which has a correct flush method. If _check_ticket_seats_limit is executed first, the bug occures because the '_compute_seats' of event.registration is triggered first, which did not have the flush implemented. Fixes odoo/odoo#38340 closes odoo/odoo#38907 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider two companies C1 and C2 - Let's consider website W - Activate multi-company - Disable common contact book and common catalog - Switch the superuser in company C2 - Activate pricelist - Create a public pricelist PL for C1 and available on W - Set up a pricelist with compute price = formula and based on = cost - Go Sales > Configuration > tick Multiple Sales Prices per Product and tick Prices computed from formulas - Create a portal user PU and set PL on him - Create a product P with cost = 10$ and publish it on W - Set up the product valuation as: automated - Log as PU and go on the shop - Put P on your cart Bug: The price of P was 0$ instead of 10$ opw:2092695 closes odoo/odoo#39632 X-original-commit: b49bf150 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Ask a question in the forum with a title but with no content Bug: A traceback was raised. opw:2093665 closes odoo/odoo#39625 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
qsm-odoo authored
It was technically possible that two editors for the same element are created in the same JS stack execution... and since 13.0 and the use of native promises, it happens everytime a block is dropped in the page. Note: this commit fixes the problem with minimal code but the logic should be improved in master. closes odoo/odoo#39641 X-original-commit: https://github.com/odoo/odoo/commit/54d032bb66013b32fb4def2216f77f7890ce31df Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
qsm-odoo authored
There recently were some fixes to the system of onFocus/onBlur with the new left panel of the 13.0 editor and one still remained: the onBlur method was most of the time called only on the main snippet options and not the child ones. Now it works as it should, even if the system logic has to be improved to be more robust. One difference remains with 12.0 but this can be considered as a change for the 13.0 version: the parent options onFocus/onBlur are called before the child options while it was the opposite before. closes odoo/odoo#39648 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Jorge Pinna Puissant authored
Fine-tunning of 937b5c07 Have a multiwebsite setup have a payment installed for one of the two websites Make an order on that website and try to pay Before this commit, the transaction doesn't come back to odoo's payment success controller This was because the return url was set to the web base url ICP After this commit, the payment success page is opened as we took the request's url as the return url opw-2080352 closes odoo/odoo#39639 X-original-commit: a9fb15b3 Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com>
-
- Oct 30, 2019
-
-
Kishan Gajjar authored
closes odoo/odoo#39596 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Oct 31, 2019
-
-
jvm-odoo authored
When you create an invoice, you can register a payment to mark it as "paid". Before this commit: - You can't send & print the invoice anymore. After this commit: - The button send & print is displayed The second "send & print" button's domain was incorrect. OPW-2115720 closes odoo/odoo#39624 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Josse Colpaert authored
Add Section III on the vat report. We also created 2 taxes at 0% which base amounts will be taken for the report. Task 2066705 closes odoo/odoo#39049 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Josse Colpaert authored
The BVR implementation was confusing as it seemed to only take into account the case where the postal account belonged to PostFinance itself and not to another bank, where the same number is shared among multiple accounts. Also, the purpose of the fields was confusing. Adaptations done: - When you add a bank account of type postal in the account number, there is an onchange that automatically puts it in the postal account field and makes itself unique by adding the name of the partner to the account number. The account will still be detected as "postal". - Improve help message of the postal account field on the bank account as it is used for two different purposes (Client Number for own accounts and postal number for "postal" vendor accounts) - Only show the subscription fields when you have to do with a bank account related to your own accounts / Switzerland - Add fields in the Add Bank Account wizard if it is for Switzerland (subscription number and the postal field we label "Client Number") - Also label Client Number on the journal form for postal field - Don't remove zeros in front of the client number on the BVR - Don't put extra - in the subscription number on the BVR if it has some - already - Use number without spaces for payment reference - For the CAMT import, it is also possible that we need to split the account number, because of their non-uniqueness. Task 2082050
-
Lucas Perais (lpe) authored
Before this commit, when a dropdown overflew its container i.e. in the case of a long filter menu in modal The scrolling of that dropdown to get to Add custom Filter was impossible This was because dropdowns react pretty bad when contained in a relative positioned container https://github.com/twbs/bootstrap/issues/26512 https://github.com/twbs/bootstrap/issues/28513 !! After this commit, the btn-group that adds the relative positioning is forced into the default value This commit corrects what was initially corrected at https://github.com/odoo/odoo/pull/37594 in v12.0. The incriminating commit that retriggers the issue is irrelevant because it is the refactoring of action manager but here it is: 40dd1219 closes odoo/odoo#39541 closes odoo/odoo#39620 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
Lucas Perais (lpe) authored
Be in Right to left Open a m2o search more, to get onto the list modal toggle the filters menu Before this commit, the filters dropdown was almost invisble and too much on the right anyway This was because the RTL was not taken into account After this commit, we anchor the dropdown on the right (both as in good and as in side) side of its trigger button Also, when modifying the dropdown, by developping the Custom Filter we force the repositioning of the dropdown, to take those new elements into account It is expected though that after this commit, in RTL, the dropdown in a modal that has a scrollbar (which is on the left) will be slightly pushed to the right. It is usable and visible though Some kind of plumbing using $el.data('offset', fn) from popper.js is possible, but has been deemed not robust enough Docs https://getbootstrap.com/docs/4.0/components/dropdowns/#methods OPW 2088934
-
- Oct 30, 2019
-
-
qsm-odoo authored
Commit https://github.com/odoo/odoo/commit/c3c98e937e575853fe0b25fa6cb3c916e73fc591 introduced a z-index on parallax element to restrict the z-index -1 of the s_parallax_bg in the snippets... this was however a bad idea as it also restricts other positioned elements in there (like dropdown menus) making them go under other elements in the page. Fortunately, this z-index is in fact not needed at all since the z-index -1 mentioned above has been removed with another commit: https://github.com/odoo/odoo/commit/22745668cf66d802899dac526d810eba64b28c4b However, the z-index -1 was necessary to force the s_parallax_bg under static elements that go after it... and this was solved in 12.0 by making those relative elements. See snippet refactoring in 12.0 with https://github.com/odoo/odoo/commit/4dce6cc98b2b95a00249ac29245305e08f288e6c#diff-a50ffff96791f36c6dbe5c9273135e5aR783 closes odoo/odoo#39615 X-original-commit: 3ddc722f Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Oct 31, 2019
-
-
jvm-odoo authored
In form views, there are stat buttons. When the window size is too small, some buttons are packed into a "More" dropdown. Before this commit: - The form view dropdown's buttons are shifted on Microsoft Edge and IE 11. After this commit: - The form view dropdown's buttons are not shifted anymore on Microsoft Edge and IE 11. There was a fixed line-height on the button's icon. On Edge and IE 11, it makes the icon moving down and this causes the offsetting. The purpose of the line-height was to fix the button height to 44 pixels So, I set up the button's height and centered the content. Also, I removed a useless border-left because there was already one border on the dropdown container. OPW-2079694 closes odoo/odoo#39380 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
- Oct 25, 2019
-
-
fw-bot authored
In form views, when the window size is too small, a "More" button appears and it should contain the overflow buttons. On all browsers, the "More" dropdown doesn't contain the expected amount of buttons, so it is shifted on the second line. Before this commit: - The "More" dropdown doesn't contain the expected amount of buttons, so it is shifted on the second line. After this commit: - The "More" dropdown contains the expected amount of buttons and it is not shifted on the second line anymore. OPW-2079694 X-original-commit: f04f67e686348fa8e7b951d773b199d76ac32015
-
- Oct 31, 2019
-
-
Andrea Grazioso (agr-odoo) authored
Activate developer mode, generate a report (print an invoice) The report will have missing pieces, like the footer or some part of the header. This is probably caused by wkhtmltopdf not loading properly some resources Wkhtmtopdf generate the same warning message for every problematic resource: "Warning: Received createRequest signal on a disposed ResourceObject's NetworkAccessManager. This might be an indication of an iframe taking too long to load." Related issue on wkhtmltopdf project page: wkhtmltopdf/wkhtmltopdf#1865 wkhtmltopdf/wkhtmltopdf#3933 wkhtmltopdf/wkhtmltopdf#2565 The problem is located in the response that wkhtmltopdf receive: in debug mode the header of the response contains 'Cache-Control: no-cache' which probably create a race condition during the rendering while a second request is attempted to verify the resources. Adding a raw user agent check to not include this header directive fix the problem Notes from odony: We've considered some alternative solutions to preserve the purpose of the DisableCacheMiddleware without having to explicitly test for wkhtmltopdf. * 'Cache-Control: no-cache' (current behavior) breaks wkhtmltopdf rendering * 'Cache-Control: no-store' breaks wkhtmltopdf rendering too * 'Cache-Control: max-age=0' breaks wkhtmltopdf rendering too. It works when increasing the delay to a few seconds, but no magic value will work for very long documents, or it will stop serving its purpose, so it's not a viable option. * 'Cache-Control: must-revalidate' does not break wkhtmltopdf rendering (no duplicate requests at all), but it is not clear from the RFC (https://tools.ietf.org/html/rfc7234#section-5.2.2.1 ) that it will have the intended effect for our middlewar opw-2086708 Closes #38394 closes odoo/odoo#39236 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Lucas Perais (lpe) authored
Be in RTL mode, on a list view Click on the button to set up optional fields Before this commit, the dropdown expanded to the right, and was partly invisible After this commit, we dynamically set to which direction the dropdown should expand depending on RTL/LTR Consequently the dropdown is fully visible in either mode, and expands to the list rather than away from it closes #39402 closes odoo/odoo#39558 Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
- Oct 30, 2019
-
-
mreficent authored
closes odoo/odoo#39614 X-original-commit: 9beebf2b Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Victor Feyens authored
Fixes #39546 closes odoo/odoo#39605 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Raphael Collet authored
After deleting records from model 'ir.model.fields', make sure to not trigger recomputations based on those fields, as they have been removed from the database schema. Also shorten the deletion of 'ir.model.fields.selection' records: as they are deleted after 'ir.model.fields', most of them have already been deleted on cascade. closes odoo/odoo#39600 Signed-off-by:
Adrian Torres (adt) <adt@odoo.com>
-
Nans Lefebvre authored
Since a many2one_reference is simply an int, we can defer _str_to_many2one_reference to _str_to_integer. Note that to really validate the integer, we need the model_field of the field, which should be stored in the record's values. To get this information, _extract_records would have to be modified. For the reported use-case, it does not matter as the create of the message record checks for the existence of the related record, so the validation works as expected. Better support for this type of fields would be to allow for import/export of xml_ids, which would avoid the need for the model. opw 2087353 closes odoo/odoo#39591 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Nikunj Ladava authored
before this commit it shows error dialog when rpc fail after this commit, error dialog will not be shown to user, instead we have already shown error in payment form task- 2045189 closes odoo/odoo#39564 Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
Nicolas Martinelli authored
- Go to POS application - Click on the 3 dots of the session to open configuration - Remove the "Cash" payment method and just keep "Bank" - Open the session, proceed to a sell and close it. - Try to open the session either clicking on "Close" on the kanban card `CacheMiss` error. opw-2116470 closes odoo/odoo#39563 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
jvm-odoo authored
In the sales modules, set a down payment product with a different UoM than the default one. If you create an invoice, select the down payment option, click on create and view. Before this commit: - The down payment tax & UoM are not on the invoice line After this commit: - They are on the invoice line, like in V12 OPW-2086146 closes odoo/odoo#39557 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
- Install `pos_restaurant` - Make an order, choose 'Split' At validation, an error is raised because the field `mp_dirty` doesn't exist. We filter out the non-existing fields sent by the server. opw-2116461 closes odoo/odoo#39552 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
fw-bot authored
The two method valid valid_alternative_icon_text and valid_title_icon represent ~13% of an install all. Rewriting them in master with in #36373 is the main reason of the performance improvement. Those two method logic were broken, because `xpath += '[not(//*[' + valid_attrs_xpath + '])]'` will actually search for valid_attrs_xpath from view root, not from fa- node. -since this check will only log a warning and so only impact bugfix, no impact on user editing views, -since a new check is added in master with the corresponding fix in views, -since this check doesn't really test what it is suppose to check, -since fa accessibility is great, but not critical ->removing those check will slightly speed up build without major impact on views quality closes odoo/odoo#39534 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
- Oct 29, 2019
-
-
Victor Feyens authored
Allow to see a pricelist if its company is in the current companies, even if not the website company or the user company. closes odoo/odoo#39511 Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
- Oct 30, 2019
-
-
fw-bot authored
These changes were announced in the new Annex 24 RFM 2019 [1] and define the new code for accounts for the northern border zone. This change affects a part of the CoA because these accounts were changed from the middile to the end of the group. [1] https://www.sat.gob.mx/cs/Satellite?blobcol=urldata&blobkey=id&blobtable=MungoBlobs&blobwhere=1461173776384&ssbinary=true closes odoo/odoo#39545 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Oct 29, 2019
-
-
Nicolas Martinelli authored
Do not attempt to create a valuation layer if the quantity is zero, otherwise this will crash: https://github.com/odoo/odoo/blob/8777f525ced87890242e1c73cac55c70444de351/addons/stock_account/models/product.py#L291 opw-2115764 closes odoo/odoo#39509 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
fw-bot authored
In some case, a browser_js test with login "None" following a browser_js test with a defined login could result in the second test being executed with the previous user. This was caused by a race condition, a request response comming back to chrome just after browser clear, restoring the old cookie. (All odoo request have the set_cookie flag set in order to refresh cookie timeout) The solution here is to check one more time for cookie in authenticate, but also to remove HTTPCase session from session_store. This will only be effective when calling browser_js without login in the same HTTPCase . closes odoo/odoo#39504 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
fw-bot authored
The profiler was too optimistic. If the local variable self was not a cursor, it assumed it was automatically an Odoo model. Instead, only do the custom tracer methods when self is an instance of BaseModel. Full scenario to reproduce explained at odoo/odoo#39237 In case a method like the default_get of utm.mixing was profiled, the tracer crashed when evaluating `__bool__(request)`. The tracer considered self as an Odoo model while it was a werkzeug instance with its custom __getattr__ that crashed while trying to retrieve the content of `_name`. Fixes odoo/odoo#39237 closes odoo/odoo#39355 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Lucas Perais (lpe) authored
In discuss, make a search with some stuff, and try to save that filter as favorite Before this commit, there was a crash, because the Discuss action did not implement what the controllers do to save favorites. After this commit, it is possible to save a filter as favorite OPW 2087258 closes odoo/odoo#39475 Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Activate Google Synchronization, create on GC a recurrent event, synchronize OE, then delete an event of the recursion on GC, sync again on OE. The event will be deleted from GC but not from OE after sync. The exclusion on OE is not correctly working in that particular case, fixing require also to "suppress" the attendee to avoid that just created exclusions would be detected as changes to send in a following synchronization. closes odoo/odoo#39507 X-original-commit: 08510211 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Oct 21, 2019
-
-
Hardik Prajapati authored
after this commit : added a separator at the end of the inherited view task - 2082289 closes odoo/odoo#38254 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Oct 29, 2019
-
-
jvm-odoo authored
On the e-commerce app, you can add product variants. Those variants can have extra-image. Before this commit: - The variants extra image are displayed on every product of the same type and they are duplicated on the product variant. After this commit: - They are displayed only on the concerned product variant, without duplication. OPW-2088261 closes odoo/odoo#39363 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-