- Jan 18, 2019
-
-
liweijie0812 authored
Cherry-pick from odoo/odoo#30278
-
- Jan 17, 2019
-
-
mreficent authored
https://github.com/odoo/odoo/commit/42e74aae51904955e725e4a96e39eb2bd60f3019 was a backport of https://github.com/odoo/odoo/commit/7544c22de9a4cea028ff8fe63931bf68573e0821, and thus generated a duplicated code. closes odoo/odoo#30318
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Julien (juc) Castiaux authored
Modifying less files and saving them using the web editor can raise and error. The error is due to the way odoo save the modified file. It extends the view containing the URL of the file by filtering views related to the xml bundle id and keeping those that have the said URL in their content. This lookup fails to give just one result in case there are multiple file containing the said URL. This fix change the filter from a bare `if url in view.arch` to a correct xpath lookup. The "/web/static/src/variables.less" less file was one of the problematic files. opw-1889794 closes odoo/odoo#30186
-
Nans Lefebvre authored
Create any module that inherit 'res.lang'. Define any new field that is added with that inheritance. Install that module. Then try to uninstall it. Traceback ensues. When trying to write 'state': 'uninstalled' on the module, the prefetching tries to read a column that has been deleted by the _module_data_uninstall. opw 1917369 closes odoo/odoo#30176
-
wan authored
OPW 1918926 Current behavior: The sql query groups by date,id in a intermediary table instead of the result. This allows to get data in the wrong order if the statements were not produced sequentially. The fill values are computed in the wrong order and may override correct values. Desired behavior: There is no override of the values correctly computed. closes odoo/odoo#29936
-
Lucas Perais (lpe) authored
Open a pivot view with default filters automatically activating Disable those filters Change the groupBys on the rows and cols of the pivot Save your result as a favorite filter Before this commit, the filter did not contain the context information for columns groupby Also, the search view did not exploit the context of the new filter as it should be After this commit, the flow works as expected OPW 1913732 closes odoo/odoo#29415
-
Jorge Pinna Puissant authored
Before this commit, there were not specific view for the mobile devices. The analytic account views were used. Now, there are specifics views for the timesheet in the tasks. opw-1913371 closes odoo/odoo#30309
-
Lucas Perais (lpe) authored
Define a field on a model as: - o2m to res.partner - the field's column, hence its name, has capital letters in it (studio does that) create two objects of that class, each one linked to a different partner with the new o2m merge the partners Before this commit, the object linked to the second partner, was deleted This was because merge partner sql requests did not quote the column name After this commit, the second object still exists This commit is tested in v12.0 with PR #30300 only. In v10.0 it is not testable as the model concerned is in CRM, and that no new fields in business modules can be added in stable OPW 1925060 closes odoo/odoo#30301
-
- Jan 16, 2019
-
-
Christophe Matthieu authored
Before this fix, in studio when the user select the field then focus out then focus in and selected a child field, an exception is triggered because the last page is visible but the data are removed. backport of 12.0's 9eef25ae opw-1928453 closes #30277
-
Nicolas Martinelli authored
- Create a SO with an ticket for an event, confirm - On the attendees wizard, click on 'Apply' The event ticket is remove from the registration. This is because the event ticket wasn't saved when creating the registration line. Complement of commits 7492c97b and 0717bb6c opw-1920464 closes odoo/odoo#30262
-
Jorge Pinna Puissant authored
Before this commit, in the organization chart, when a manager that have too many subordinates, and we want to view all the subordinates clicking the '...' button. There was an error in the breadcrumbs, the text 'Undefined' was shown in the place of the manager's name. Now, the breadcrumbs shows the name of the manager. OPW-1923990 closes odoo/odoo#30231
-
Nicolas Martinelli authored
Commit 68e9d550 makes the redirection type mandatory, which is logical. Since we can't add such a constraint in stable, we make the field required in the view and assign a default value (in case the module is not upgraded, which is very likely to be the case). opw-1924983 closes odoo/odoo#30252
-
- Jan 15, 2019
-
-
Nicolas Martinelli authored
- Create many reconciliation models (more than 100) - Try to create a manual reconciliation entry The reconciliation models buttons are displayed on top of all fields, making it impossible to encode any data. We limit the size of the `div` to 54 pixels, which corresponds to 3 lines of buttons. All buttons are still accessible thanks to a scrollbar. opw-1890781 closes odoo/odoo#30212
-
Lucas Perais (lpe) authored
When removing the editable attribute on the list view of th o2m towards order_line, when adding a line, the price_total of the line was neither computed nor sent to the onchange of the sale order now it is OPW 1914740 closes odoo/odoo#30234
-
Nans Lefebvre authored
The field reference_type has been renamed invoice_reference_type in v11. The selection value 'bba' for that field has been renamed 'structured'. We update the template to reflect these changes. Discovered thanks to a forward port of that field up to v12. closes odoo/odoo#30224
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
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 11, 2019
-
-
Aaron Bohy authored
Before this rev., a crash might occur when the user quickly switched twice between pages (e.g. go to page 2, then page 3) on a slow network. In the given example, when data of page 2 returned, the list was re-rendered. Unfortunately, the offset of that list' datapoint was already changed due to the switch to page 3, meaning that the view tried to render a page that wasn't loaded yet, leading to a crash if there were modifiers to evaluate, or to empty records being displayed. This rev. ensures that the view is rendered with the data of the page it expects. closes odoo/odoo#30150
-
- Jan 15, 2019
-
-
Lucas Perais (lpe) authored
On the PO form view, change the order_lines inline view: - the tree becomes not editable - allowed modes are tree,form Add a new order line, the form view of order_lines opens up Modify some stuff, then save and new Before this commit, it crashed because some fields were expected in the tree view that were not defaulted in the form view by the JS framework. After this commit, this flow doesn't crash because we make sure every field in the tree view is present in the form view OPW 1917111 closes odoo/odoo#30219
-
- Jan 11, 2019
-
-
Andreas Perhab authored
test_web_planner throws errors like this on some environments: AssertionError: '/web#action=135&view_type=list' != '/web#view_type=list&action=135' the urls in web_planner are created with a dict for the parameters to create the urls. dicts are unorderd up to python 3.5. (see https://www.python.org/dev/peps/pep-0468/) As the urls /web#action=135&view_type=list and /web#view_type=list&action=135 are equivalent we now test if the parameters are the equal in the url regardless of their order. closes odoo/odoo#30138
-
- Jan 10, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Laurent Smet authored
- Create manually an account.payment after having created manually some journals (without installing a coa). - Install a module containing a coa and calling try_loading_for_current_company or depending of other module doing such things. => Crash because company.chart_template_id is not set. -opw: 1921711 closes odoo/odoo#30117
-
- Jan 11, 2019
-
-
Nans Lefebvre authored
Start on the modal obtained by a "search more". The offset is never reset. So suppose you are on page 2, looking at record 81-160. Do a research that gives less than 80 records. The result of the search is nothing, since is has been done with a 80 offset. It should be reset to 0 when we do a new search. opw 1920826 closes odoo/odoo#30109
-
Nans Lefebvre authored
Create an automated action that creates a new record (of target crud_model_id). Try using a link_field_id: nothing appears to be selectable, even if some fields satisfy the intended conditions. The issue is that the crud_model_name field was related to crud_model_id.name, instead of the correct crud_model_id.model (note the apt naming). Note that in the onchange the value of crud_model_name was correctly set to crud_model_id.model, adding to the confusion. opw 1910671 closes odoo/odoo#30145
-
- Jan 10, 2019
-
-
Christophe Simonis authored
SQL improve the speed of the implied group VS the orm version. closes odoo/odoo#30108
-
Christophe Simonis authored
-