- May 10, 2023
-
-
Touati Djamel (otd) authored
Steps to reproduce the bug: - Connect with the company A - Create a consumable product “P1” - Create a receipt transfer with this product - confirm the transfer - Come back to the product form - limiter le produit que a la “Company B” Problem: no user error triggered Go to inventory > operation > transfer: a Traceback is triggered Before this commit, there is no verification while changing a product's company for consumable. That can lead to an issue where some operations cannot be done because of access errors. To avoid that, this commit prevents to change the product's company if some move lines for this product exist in another company. opw-3300559 closes odoo/odoo#120969 X-original-commit: a6666de7 Signed-off-by:
Djamel Touati (otd) <otd@odoo.com>
-
Mahdi Cheikh Rouhou (macr) authored
When sending email with gift card, it will have the user langauge and not the partner language Steps to reproduce the error : 1- Add french and english language 2- Make the current language english 3- Install contact and sales and activate gift cards 4- create a contact having french language 5- create a gift card for the french partner and send it to him 6- the email will be in english lang The origin of the problem was the missing lang field in the template opw-3308919 closes odoo/odoo#121028 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Michele authored
Before this commit, the check is too restricted and it is not possible to update it to add other conditions. This commit moves that check in a new method to be able to override it. closes odoo/odoo#120597 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
Julien Castiaux authored
Run `odoo-bin help`, you'll notice that some descriptions are missing, this commit fixes that. Run `odoo-bin shell --help`, you'll notice that the `usage:` line says `odoo-bin [options]` instead of `odoo-bin shell [options]`. Other commands that depend on the server cli are broken too. Fix those too. closes odoo/odoo#120285 Signed-off-by:
Vincent Schippefilt (vsc) <vsc@odoo.com>
-
FrancoisGe authored
In commit 5778878d433986be73c9bf5ffe0d60efedca6c9f, we remove the StaticList._changes for all x2m in the BasicModel. Unfortunately, the _changes are a list of commands, so we need to replace them with an empty list, not an empty object. This commit does not contain a test because the bug was identified during the fw of commit 5778878d433986be73c9bf5ffe0d60efedca6c9f to master. This is not reproducible in 16.0. closes odoo/odoo#121004 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Maruan Aguerdouh (magm) authored
Steps to reproduce: - Install purchase, inventory and manufacturing. - Now create a subcontractor, with it's corresponding location, it's set by default. - Go to this new location and set it as replenishment location. - Now create a Request for Quotation using this subcontractor. - We will receive a traceback whent trying to access replenishment. Issue: We got a traceback caused by the fact that we are trying to set as replenishment location, a location that doesn't have a warehouse. Solution: We need to add the handling of this case, so we won't always need a warehouse for the orderpoint. opw-3164276 closes odoo/odoo#113361 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Patrick Hoste authored
Before this commit, it was possible for one to post multiple reviews when all the already posted reviews had the 'Employee Only' state. A traceback was also thrown when trying to update an 'Employee Only' comment. It was also possible to edit a log note. This commit fixes all these issues. Task-2810085 closes odoo/odoo#120570 X-original-commit: c3b11554 Signed-off-by:
Stéphane Debauche (std) <std@odoo.com> Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
stcc-odoo authored
Related enterprise PR: odoo/enterprise#39669 Steps to reproduce: Install mrp_workorder Create Product P1, Workcenter W1 Edit W1 > Specific capacities > Add line: Product = P1, Start time = 5, End time = 5 Create BoM > Product: P1, Operations tab > Add line: Workcenter = WC1, Default duration = 60:00 min > Save Click on overview stat button Issue: The created operation has expected time of 60:00, instead of 70:00. The workcenter start and stop times are considered in this calculation, so the workcenter capacities should be considered too. Solution: Use `_get_expected_duration` to compute the expected duration. opw-3229485 closes odoo/odoo#118360 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
niyasraphy authored
on clicking the graph view of the Partnership Analysis, currently the tree view and form view is opened. actually the tree and form view for this model are not defined in the code and thus the end user get the tree view with only ID field in it. As those view have no sense, prevent from jumping on those. closes odoo/odoo#116999 X-original-commit: 82a99006 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Ali Alfie (alal) authored
Before: in Expense Categories list view, if Internal Notes wasn't empty it would cause a padding issue. The issue's cause was that the Internal Notes columns is an HTML field, where every line is assigned a margin-bottom. Now: fixed the padding issue by removing the margin-bottom for the last line in the Internal Notes field. task-32999162 closes odoo/odoo#120626 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Alvaro Fuentes authored
Issue 1: before this patch it was impossible to create a manual model marked as "Is blacklist". The reason is that a blacklist model implicitly need an `email` field, but such field is impossible to add in a manual model: the field must start with `x_`. Solution: append `x_` to the implicit email field. Note, in principle the user gets an error if `x_email` is not present. Solved by adding the field when creating the custom model. Ideally we should show some hint in the interface to make it more user friendly. That is out of the scope of this patch. Issue 2: when we have a manual model that is mail blacklist it's impossible to create its model class. We get an error because the MRO is not correct. The reason is that we are adding `mail.thread.blacklist` _after_ `mail.thread` in the `_inherit` list. That list is used to generated the `__bases__` of the model class[1]. According to Python's MRO rules[2], since `mail.thread.blacklist` appears after `mail.thread` as parents of the custom model class this order _must_ be respected. But `mail.thread` must appear _before_ `mail.thread.blacklist` because the latter inherits from the former. This is a contradiction and the MRO algorithm cannot succeed. To put it in a simple example: ```py class A: pass class B(A): pass # This fails: # class C(A, B): pass # The right order is: class C(B, A): pass # Equivalent to: class D(B): pass # C and D have the same MRO linearization excluding themselves assert D.mro()[1:] == C.mro()[1:] ``` Example traceback: ``` Traceback (most recent call last): File "/home/odoo/src/odoo/14.0/odoo/service/server.py", line 1201, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "/home/odoo/src/odoo/14.0/odoo/modules/registry.py", line 89, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/odoo/src/odoo/14.0/odoo/modules/loading.py", line 464, in load_modules registry.setup_models(cr) File "/home/odoo/src/odoo/14.0/odoo/modules/registry.py", line 263, in setup_models env['ir.model']._add_manual_models() File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/ir_model.py", line 430, in _add_manual_models Model = model_class._build_model(self.pool, cr) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 585, in _build_model ModelClass.__bases__ = tuple(bases) TypeError: Cannot create a consistent method resolution order (MRO) for bases BaseModel, mail.thread, mail.thread.blacklist, base ``` Solution: check if a model inherits from `mail.thread.blacklist` first. There is no need to add `mail.thread` if inheriting `mail.thread.blacklist` because the inheritance is already implicit. This issue was observed during upgrades. We convert custom models and fields into manual to allow upgrading without custom code. This causes issues because the MRO error appears when a custom model inherits mail blacklist. [1]: https://github.com/odoo/odoo/blob/02f820fb0eaddbb3a4269a0967184c8aaf52c363/odoo/models.py#L585 [2]: https://www.python.org/download/releases/2.3/mro/ closes odoo/odoo#120948 X-original-commit: 8848bb57 Signed-off-by:
Christophe Simonis <chs@odoo.com> Signed-off-by:
Alvaro Fuentes Suarez (afu) <afu@odoo.com>
-
Thomas Lefebvre (thle) authored
On the ecommerce, we want the pricelist to be adapted to the user who is connected. If no user is logged in, the 'Public Pricelist' is used. To determine the pricelist that will be used (by default): https://github.com/odoo/odoo/blob/a3169ede4f609b56c83da04756d20b1c7a07251f/addons/website_sale/controllers/main.py#L350-L354 Therefore, if we have been to the shop as a 'Public user' and we decide to log in, we already have a pricelist in `request.session.get('website_sale_current_pl')`. So we have to clear the pricelist when we connect to determine the new pricelist of the user. opw-3228998 closes odoo/odoo#118880 Signed-off-by:
Lefebvre Thomas (thle) <thle@odoo.com>
-
- May 09, 2023
-
-
Patrick Hoste authored
When one customize a course by adding the 'buy now' button. Both the 'Add to cart' and 'Buy now' button doesn't fill the container width. This commit fix this by changing 'btn-block' class by 'd-block'. See commit eee625bb Task-3299234 closes odoo/odoo#120394 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Touati Djamel (otd) authored
Steps to reproduce the bug: - Create a storable product “P1”: - Tracked by SN - BoM: - Component: 1 unit of “C1” - Create a Mo to produce one unit of “P1”: - Confirm the MO - Set a new serial number “SN1” and qty done for “C1” - Mark as done - Click on “unbuild” button Problem: An user error is triggered: “This lot ‘SN1’ is incompatible with this product ‘C1’ When you click on the "Unbuild" button, the `lot_id` of the finished product is added in the context with the key `'default_lot_id'`: https://github.com/odoo/odoo/blob/dd60647ce41547ecd00bbde45ddf564a7ada91c7/addons/mrp/models/mrp_production.py#L1977 Therefore, when creating the `stock.move.line` for the component, even if the “lot_id” is not in the vals, we will get the “lot_id” from the context: https://github.com/odoo/odoo/blob/d04a5b5c8c7dc13e4e911a29d1944e90587e2883/odoo/models.py#L4136 https://github.com/odoo/odoo/blob/d04a5b5c8c7dc13e4e911a29d1944e90587e2883/odoo/models.py#L1961 Then, we do a field validation via a constraint, but as the product "C1" is not compatible with the product in lot "P1", an error is triggered: https://github.com/odoo/odoo/blob/b9334c53b84228c00ab100ffd28620b3c923c4e6/addons/stock/models/stock_move_line.py#L94-L95 opw-3284525 closes odoo/odoo#120466 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
Arnis Putniņš authored
Based on Allegro-IT's PR https://github.com/odoo/odoo/pull/112159 with several adjustments and fixes (renamed XMLIDs, taxes, fiscal positions, VAT report). closes odoo/odoo#118371 Signed-off-by:
William André (wan) <wan@odoo.com>
-
gawa-odoo authored
Currently, the field `analytic_distribution` does not appear in the filters, while it should (to be able to filter `account_move_line` for example). We added Json to the filterable fields. If not overriden, it will search on it like a String. We also have to add a non-stored field to be able to define a search function for `analytic_distribution`, to be able to search based on the keys of the json. closes odoo/odoo#116496 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Julien Van Roy authored
When receiving an email on a mailbox with an alias that triggers the creation of invoices, 4 bugs could occur. 1. If the xml received contains replacement characters (U+FFFD �), and the charset of the part of the email is "US-ASCII" the encoding of the string will fail, preventing the rest of the flow to be completed. Be more resilient, encode the string and ignores these characters if this case occurs. NB: sometimes, the charset is omitted for a Content-type: text/xml. This is valid but not recommended (see: https://www.ietf.org/rfc/rfc2376.txt). In this case, the default used is "US-ASCII". This means that any non-ascii char will be lost (they are replaced by the replacement character: �, see: https://github.com/python/cpython/blob/3.10/Lib/email/contentmanager.py#L67 ) when decoding the attachment. 2. When the xml attachment is created in Odoo, the mimetype is 'text/plain' (rather than 'application/xml'). Thus, the `_decode_attachment` needs to be more flexible when guessing the type of the attachment (to know which function to use to read the content of the attachment and create the invoice). 3. When creating an invoice from an email with an xml attachment, the xml is attached as the `message_main_attachment_id`. It's only later on that the content of the xml is read and we possibly find the PDF in base64 inside. When creating the PDF attachment, it was not set as the `message_main_attachment_id`, so the PDF was not rendered on the right part of the invoice form view. Add a clause to replace the `message_main_attachment_id` in such a case. 4. When the xml attachment represents a credit note, the move_type of the invoice created by the email alias needs to be changed. Indeed, the invoice is created before decoding the attachment, so we can only change the `move_type` later. opw-3144519 opw-3149649 closes odoo/odoo#120887 X-original-commit: b5214e1d Signed-off-by:
Laurent Smet <las@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
-
prye-odoo authored
In delivery address, `country name` and in shipping method, `country name` will be same and no zip in delivery address. While creating new sale order along with product and clicking on "Add shipping", error will be generated. Steps to Reproduce -Install `sale_management' and 'delivery' modules -Go to the settings and enable the 'Customer Address'. -Go to the settings and enable 'Shipping Methods' and configure it. -Select a shipping method and go to the 'Destination Availability' tab and set to the 'Countries' and set to 'Zip Prefixes'. -Create a new customer and add the delivery address of the customer in res.partner. -The delivery address and shipping method of the 'Countries" or 'Country' name should be the same. -Set the 'Zip Prefixes' -Set the delivery address of zip code null. -Create a new quotation and add to the customer and delivery address -Add to the product in the sale order line. -Click on the 'Add Shipping' or 'Update Shipping Cost' button. A trace back will be generated. Applying this commit will resolve this issue. sentry-4147077852 closes odoo/odoo#120802 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
MerlinGuillaume authored
Readonly email fields break the layout if the value is long enough Steps to reproduce: 1. Install CRM and Studio 2. Go to CRM and open any lead 3. Change the lead email and make it too large for the field size 4. Toggle Studio, in the View tab, uncheck 'Can Edit' 5. Close Studio 6. The email overflows its expected position Solution: Put the email field inside a grid layout div opw-3248361 closes odoo/odoo#119985 Signed-off-by:
Guillaume Merlin (megu) <megu@odoo.com>
-
Preksha Chouhan authored
While creating a new product in product category with barcode value in inventory module, `_check_barcode_uniqueness` method is called. In which variable 'domain' is passed, and getting wrong value. Steps to Produce:- 1) Go to Inventory then configuration 2) Click on 'Product Categories' under products 3) Click/Create Product Category 4) Click stat button 'product' 5) Create a product 6) Then add barcode value 7) Click on Save 8) Trace-back will be generated Reason:- While creating new product from product category when user add the barcode value in product form, the '_check_barcode_uniqueness' method is called. In this method the value of 'domain' is getting updated by reference from variable 'domain' from method '_search' present in the same model. This results in a traceback with the message 'Invalid field product.packaging.categ_id'. Applying these changes will resolve this issue. sentry - 4073963761 closes odoo/odoo#118339 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Guillaume (guva) authored
When partially reversing a bill and paying the difference, the payment state should be 'paid'. In the particular case of having the bank account as manual outstanding payment account on the bank journal, payment state was 'reversed'. opw-3235107 closes odoo/odoo#117761 Signed-off-by:
Laurent Smet <las@odoo.com> Co-authored-by:
Habib Ayob <ayh@odoo.com> & Laurent Smet <las@odoo.com>
-
pedrambiria authored
Before this commit: if you add a custom one2many field to the 'res.partner', like x_related_commercial_partner_ids, that is related to the `commercial_partner_id` in the`res.partner` model, it won't update the display name of a contact in case of changing its parent_id name. Here are the steps to reproduce the problem: 1. Create a new custom field with these values: a. Field Type = one2many b. Model = Contact c. Related Model = res.partner d. Relation Field = commercial_partner_id 2. Create a new Contact that is the "Company" (e.g. "My Company") 3. Create a new Contact that is the "Individual" (e.g. "My Name"), and put the "My Company" as its parent_id. 4. Now the display_name is "My Company, My Name" which is correct 5. Change the company name to "My new Company" -> display_name won't change, and is "My Company, My Name" The solution is to add the 'commercial_company_name' to the `display_name` depends. opw-3202894 closes odoo/odoo#120882 X-original-commit: f242cad9 Signed-off-by:
Rémy Voet <ryv@odoo.com> Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Benoit Socias authored
Since [1] when the fuzzy search was introduced on website pages, the filtering on most specific pages only happens at the end of the search operation. Because of this, the search happens on pages that would be excluded anyway, the limit might be wrongly applied and the count might be wrong. This commit makes the page search begin by keeping only the most specific pages, then performing the actual search within those pages. Steps to reproduce: - Install `website` only and drop a search snippet. - Search "ax". => No results found, but the "All results" link is displayed. [1]: https://github.com/odoo/odoo/commit/7559626c54e34b41e1549e28276a650accec6986 task-3203794 closes odoo/odoo#120881 X-original-commit: 5ad049f5 Signed-off-by:
Arthur Detroux (ard) <ard@odoo.com>
-
Nabil Ragab authored
closes odoo/odoo#120750 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Tiffany Chang (tic) authored
During the OWL refactoring of the reception report, the "Print" button was hardcoded to only work for pickings. Unfortunately this means the button did NOT work when the report was opened for a MO. This is due to the report printing being dependent on the report's context values which can either be `default_picking_ids` or `default_production_ids` (and this is by design to avoid additional file extensions to handle both cases). When this button was used in the previous legacy_web_report's client_action, the entire action's context + data used to be passed as part of the Print action: https://github.com/odoo/odoo/blob/30fcb2e60fed17a473353b21bac4916e9ab77b10/addons/stock/static/src/legacy_web_report/client_action.js#L109-L119 The `data` and `context` is then stringified and added into the reportURL: https://github.com/odoo/odoo/blob/30fcb2e60fed17a473353b21bac4916e9ab77b10/addons/web/static/src/webclient/actions/action_service.js#L1042-L1050 But passing of the data isn't necessary in this case, and most of the context's content is not needed since the backend is still receiving + apply the current user's context thanks to the action_service: https://github.com/odoo/odoo/blob/30fcb2e60fed17a473353b21bac4916e9ab77b10/addons/web/static/src/webclient/actions/action_service.js#L1079 always providing it to the backend https://github.com/odoo/odoo/blob/30fcb2e60fed17a473353b21bac4916e9ab77b10/addons/web/controllers/report.py#L87 Therefore, to avoid an extra long report URL of all of the report's data/context, this fix has been designed to capture only the necessary context value and manually build the print URL accordingly. Noticed during task: 3046178 closes odoo/odoo#119954 Signed-off-by:
Steve Van Essche <svs@odoo.com>
-
Tiffany Chang (tic) authored
In the case of draft pickings/MOs, the reception_report_main component's "Assign All" button was NOT disabled, which could result in an IndexError if the button was pushed. Note that this issue does not occur for the "Assign All" button within a table because the button is correctly not shown at all when there are no assignable lines within it. Noticed during task: 3046178 Part-of: odoo/odoo#119954
-
Tiffany Chang (tic) authored
Steps to reproduce: - activate Reception Report in settings - create outgoing picking for a product (qty > qty in stock) - create an incoming picking for the same product with a non-int qty - confirm the incoming picking + click on "Allocation" smartbutton - assign product to outgoing picking + click "Print Labels" (either at top of report or within the table of outgoing moves) Expected result: Labels and created + printed Actual result: ValueError because int() is called on a non-int value within the label template Note that the the `onClickPrint` within the reception_report_line.js already correctly did the Math.ceil rounding on the qty Noticed during task: 3046178 Part-of: odoo/odoo#119954
-
Jurgen (jugj) authored
task - 3175879 closes odoo/odoo#114342 Related: odoo/enterprise#37775 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Harsh Modi authored
Handled error for if e-waybill is already generated and we send request for e-way bill generation it will give error - [4026] Duplicate e-waybill for the given document. Fix - It will fetch the ewaybill details and shows the ewaybill has been already generated task-3262244 closes odoo/odoo#120829 X-original-commit: 886536ce Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Have an invoice marked as paid Send by email Issue: Email will contain "$ <amount> due <due date>" which is confusing for the user as the invoice is already paid opw-3289653 closes odoo/odoo#120843 Signed-off-by:
Brice Bartoletti (bib) <bib@odoo.com>
-
Renilkumar Kajavadra authored
If applied, this commit will handle the KeyError: res_id when the user tries to import the translation of .csv file in settings -> translations, and if .csv file doesn't have the res_id column. I handled the traceback by changing the logger level to warning. sentry - 4049419481 closes odoo/odoo#120775 X-original-commit: dd0ec40c Signed-off-by:
Renilkumar Kajavadra (reka) <reka@odoo.com> Signed-off-by:
Rémy Voet <ryv@odoo.com>
-
roen-odoo authored
Current behavior: When adding a tips to an order, then applying a global discount. The discount is applied to the tips when it should not. Steps to reproduce: - Open POS - Add a product to the order - Add a tips to the order - Apply a global discount - The discount is calculated on the tips and the products opw-3271886 closes odoo/odoo#120462 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
Jurgen (jugj) authored
task - 3293181 closes odoo/odoo#120837 X-original-commit: 4424e901 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- May 08, 2023
-
-
Jurgen (jugj) authored
task - 3247012 closes odoo/odoo#116553 Related: odoo/enterprise#38704 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
smdc-odoo authored
We want to propagate the analytic breakdown on the accrued entries that user can already create from the PO/SO list views. task-3096126 closes odoo/odoo#108288 Signed-off-by:
William André (wan) <wan@odoo.com>
-
niyasraphy authored
before this commit, on clearing the value from post_date field in the blog.post model is not recalculating the post_date value from the inverse function. * open a blog post * clear the post date value * click go to website smart button * traceback will be shown due to missing date _write is not needed because it was done for method _compute_ranking, which doesn't exist in v16 https://github.com/odoo/odoo/commit/74e1d6940da7b5f0cc8fe4b2ba60d0bb81990ba5 post_date is computed method with inverse function which is handled in write, not in _write after this commit, on clearing post_date value the inverse function will set the post_date value from create date as it was in the previous versions. closes odoo/odoo#116922 Signed-off-by:
Ivan Elizaryev (iel) <iel@odoo.com>
-
Hubert Van de Walle (huvw) authored
This reverts https://github.com/odoo/odoo/commit/59dcd17c2d389d52365a2e2975de800284cd271f Issue: With a comma as decimal separator, it is replaced by a dot It is then ignored in parseFloat closes odoo/odoo#120807 Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
eLBati authored
closes odoo/odoo#120783 X-original-commit: 94247ed0 Signed-off-by:
William André (wan) <wan@odoo.com>
-
LeDungViindoo authored
Steps to reproduce: Step 1: Create new MO Step 2: In page by-products click three dots to show column cost_share in tree by-products Step 3: Create new Byproduct and input cost share >100% or <0% or input two byproducts where their cost share adds up to more than 100% Expected result: Validation error: total byproduct cost_share cannot exceed 100 or Validation error: cost_share values must be positive Actual result: Values saves without issue Issue is due to `move_byproduct_ids` being removed in the mrp_production overrides of `write()` or `create()` and having the `_compute_move_byproduct_ids` populate its values. This removal is causing the constrains to not be enforced, therefore we set the constrains field to `move_finished_ids` since changing of this value will ensure that the values are correctly checked. Note: There will be a decrease in performance since this means the constrains will be called whenever the MO's product to produce is changed, but hopefully it will be minimal since there is no simple fix for this issue. closes odoo/odoo#120771 X-original-commit: 9d6ff93d Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
Hubert Van de Walle (huvw) authored
Steps to reproduce ================== - Enter debug mode - Go to "Settings / Technical / User Interface / Views" - Click on the "View Type" column header - Click on any record - Use the breadcrumbs to go back Issue: the list is not sorted anymore by "View Type" Cause of the issue ================== When there is an `orderBy` param passed to `DynamicList`, it takes precedence over the previous exported state. We should only use the params.orderBy if it is not the initial one. Solution ======== In order to know if we are using the initial order by, we need to export it. With that, we can check if the `params.orderBy` is the initial one. If it is the same, use the `state.orderBy` If not, use the `params.orderBy` opw-3202088 closes odoo/odoo#120537 Signed-off-by:
Julien Mougenot (jum) <jum@odoo.com>
-