- May 11, 2023
-
-
qsm-odoo authored
When mass_mailing was installed, the website snippets demo page did not work anymore. This is due to a combination of two factors: A. [1] marked views for removal just before the release of the 16.0 (so that they could be removed via an upgrade script later on after runbot things) but we forgot to remove them before the release. B. The views that [1] tweaked and should have been removed contain an apparently simple `<div>` with a comment... but it actually acts as an xpath looking for a div as it is an extension view. Unfortunately, there is a bug in the t-call/inheritance system regarding this: when the main view containing this xpath is rendered directly, there is no issue (that's what edit mode works: a div is found and nothing is added inside). But when it is t-call'ed (as it is the case in the snippets demo page), the div cannot be found anymore (it seems to look for `/data/div` instead of `/t/div`). The bug described at B (if it is really a bug) could be worth checking but this is probably not worth the time until a real usecase occurs. For now, this commit fixes the broken demo page by using a real xpath to target the div. This is technically not a stable change but really, users should not have targeted a template which was clearly marked for removal. So hopefully, there should not be any issue. [1]: https://github.com/odoo/odoo/commit/3201eba9fd31602d709b962965e9c1411d1eeb6f#diff-b26221e9411fb6f3725ce5a30c4659a22d81a9a69f666bdbd6daa77e03ec3253R302-R308 task-3233465 closes odoo/odoo#121134 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Nshimiyimana Séna authored
Bug: When the `sale_loyalty_taxcloud` is installed and 'Lock Confirmed Sales' is enabled, confirming a SO impossible. Setup: - install `sale_management` and `sale_loyalty_taxcloud` - activate Taxcloud (with test credentials) - enable 'Lock Confirmed Sales' in the settings Steps to reproduce: - create a quotation, fill the necessary fields and add a product - in the 'Other Info' tab, set the fiscal position to 'Automatic Tax Mapping (TaxCloud)' - attempt to confirm the quotation You should be met with a message stating that you can't modify the tax on a locked order. Cause: This issue was introduced by odoo/enterprise@ea954b818b9582c2f63f103019b61d3fa73c7a29 Enterprise PR: odoo/enterprise#40880 opw-3289657 closes odoo/odoo#120998 Signed-off-by:
Nshimiyimana Serge Séna (sesn) <sesn@odoo.com>
-
paso-odoo authored
If applied, this commit will solve the issue of missing product issue while installing the following modules: loyalty_delivery, pos_loyalty, sale_loyalty, website_sale_loyalty Steps to produce: - Install loyalty module. - Go to 'Products' or 'Product Variants'. - Delete the product 'Gift Card'. - Now install the 'sale_loyalty' module. This commit will raise an userError while deleting the loyalty products. sentry - 4112536971 closes odoo/odoo#119926 Signed-off-by:
Parth Solanki (paso) <paso@odoo.com>
-
Ivan Yelizariev authored
This commit modifies `execute` method to avoid `MissingError` on reading `template_ref` field. `template_ref` is a Reference field, which may have id of a deleted record. https://github.com/odoo/odoo/blob/927890d0178c361ef8d80fe6a1ec2ffaefaf73fd/addons/event/models/event_mail.py#L53 Method `execute` is used by cron. https://github.com/odoo/odoo/blob/fba13477843d4d36e3e7a9ddd4b0812c9726e20c/addons/event/data/ir_cron_data.xml#L4-L8 https://github.com/odoo/odoo/blob/927890d0178c361ef8d80fe6a1ec2ffaefaf73fd/addons/event/models/event_mail.py#L247-L256 Getting the `MissingError` means blocking processing the whole batch of tickets. Fix it by ignoring such tickets and logging a warning https://online.sentry.io/issues/4089773378 closes odoo/odoo#118901 Signed-off-by:
Ivan Elizaryev (iel) <iel@odoo.com>
-
Arthur Detroux (ard) authored
Prior to this commit, starting this test individually would not work as the admin user is subscribed to the mailing list used during the test. The reason the test has passed our test suite is because on runbot the `mass_mailing_sms` module is installed, which adds a new mailing list to which the admin user is not subscribed. This commit changes the test to always ensure that the admin is not subscribed to any newsletter, making the test a bit more robust. closes odoo/odoo#118869 Signed-off-by:
Outagant Mehdi (mou) <mou@odoo.com>
-
Chong Wang (cwg) authored
Before this commit: when reset template, the strategy is 1. write the template value from the data file with_context(lang=None) (some legacy translations may be kept, if their en_US values were not changed) 2. use the translations in the po file to override current translations But when a term is not translated in the po file (for example, all en_UK terms, since we don't have en.po), the old translation of the term cannot be overridden and reset After this commit: Thanks to the new feature introduced in #109858, the translation for a term can be voided before the step 2 As a result, translations for model translated fields can be correctly reset opw-3241014 closes odoo/odoo#116780 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Romain Derie authored
This commit is simply conditionning the presence of the /website/info page in the sitemap so it's removed from it if you disable/remove the website info view. It will help SEO wise to not have error page in it. Also note that it has always been in sitemap, even if marked excplicitely since [1]. [1]: https://github.com/odoo/odoo/commit/e19227d3ba9c9296bfc0c221ac70a863a571b9a6#diff-d41b2dc5ff6fd6a303373f86e1af97d055db315ccc431749b4ffac1488dea119L200 opw-3255831 closes odoo/odoo#120736 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Hamza (hisl) authored
Steps to reproduce the issue: 1. Go to any of the contacts with partner ledger option. 2. Make the browser window small and observe the text in the partner ledger button box. Current Behaviour: The text in the button box does not get ellipsized, rather stays the same and may get out of the button box if the box becomes smaller Desired Behaviour: The text in the button should be ellipsized OPW-3266235 closes odoo/odoo#119531 Related: odoo/enterprise#40224 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
Thomas Lefebvre (thle) authored
In the multi-company context, it is possible to create an analytic account without a defined company. The result is that the analytic account will not have a currency. A traceback will be triggered when calculating the profitability of a project (for example by changing its status when the 'sale_timesheet' module is installed). Solution: Use the currency of the project. Introduced by: 68b4ea69 opw-3292417 closes odoo/odoo#120885 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
Victor Piryns (pivi) authored
Current behaviour: If we confirm an SO with a service with a delivery based on milestones, that creates both a project & task, and we set a project on the SO, the project for the milestone should be the one set on the SO, a ValidationError is raised for missing project on milestone. Expected behaviour: No ValidationError, the milestone should use the project set on the SO. Steps to reproduce: - Install Sales, Project - Check Milestones in Settings - Create a new project. - Create a new product, type service, delivery milestones, on confirm create project & task - Create an SO, add a line with the new product. - Set a our new project on the SO (In the "Other Info" tab) - Confirm the SO, you are met with a ValidationError. Reason for the problem: Since we are not *generating* a new project, `project_id` on the sale_order_line is empty, and we base ourself on it when creating the milestone in `_generate_milestone`, leading to the non-null validation error, because this field is `required=True` on milestones. Fix: When creating the milestone in `_generate_milestone`, if the line doesn't have a `project_id`, we take the one set on the order. We don't set the `project_id` to the *determined_project* (`_determine_project`) at line 305 (after: `so_line._timesheet_create_task(project=project)`) because the `project_id` on the sale_order_line is marked as "Generated Project", which is not true in our case (the project isn't generated by the sale order line). Affected versions: - 16.0 - saas-16.1 - saas-16.2 - master opw-3236235 closes odoo/odoo#120434 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
Guillaume (gdi) authored
Before this commit, the user could use the blog publication date selector situated in the blog sidebar even when he was in edit mode. This date selector should behave like a link, it should not work in edit mode. This commit prevents the user from using this selector while he is in edit mode. Steps to reproduce the bug: - Go to /blog - Edit the page - Enable the sidebar option - Click on the select in the sidebar - Click on a date => An error is displayed. task-3213851 closes odoo/odoo#119785 Signed-off-by:
Outagant Mehdi (mou) <mou@odoo.com>
-
Nshimiyimana Séna authored
### Summary When modifying the accounting date of an invoice in Accounting Firms mode, Odoo always generates a new invoice sequence number. This behavior can introduce gaps in the sequences. ### Reproduction Steps 1. Activate Accounting Firms mode. 2. Create a new Draft Invoice and save it. 3. Create a second Draft Invoice and save it. 4. Modify the accounting date of the first invoice and save it. 5. Observe that the first invoice's invoice sequence number is updated to the next sequence, creating a gap. ### Fix Recompute the sequence only when the new date falls into a different fiscal year. opw-3164537 closes odoo/odoo#117007 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Jay Savaliya authored
In https://github.com/odoo/odoo/commit/6371565e6933d6ede88fa85992f4acbc2cb5327b we expect required fields to throw ValidationError when not set, we thus correct res_partner to raise that error when the email is implicitly required, so after this commit if we can try to create a new partner from the name directly then It will give a validation error and wizard will open for the creation of a new partner. Task-3297388 closes odoo/odoo#120638 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Laurent Smet authored
When l10n_mx_edi is installed and a payment is posted, the move_name field on account.move.line being a related to move_id.name is not well computed. That is because posting a move trigger the computed field in a protected mode due to `flush_recorset`. This mode prevents any computed field to be recomputed twice. This flush triggers `_compute_name` calling `sequence_mixin`, itself doing another `flush_recorset`. This extra flush triggers `_compute_l10n_mx_edi_cfdi_uuid` that access to `move.payment_id.reconciled_bill_ids`. This access to this field triggers its recomputation and then, `_compute_stat_buttons_from_reconciliation` is called. This method does `self.env['account.move.line'].flush_model()` that force the computation of `move_name` to `/`. `sequence_mixin` assigns the new `name` to the journal entry but `move_name` is not recomputed due to the protected environment. closes odoo/odoo#121064 X-original-commit: 147427bb Signed-off-by:
Olivier Colson (oco) <oco@odoo.com> Signed-off-by:
Laurent Smet <las@odoo.com>
-
- May 10, 2023
-
-
flvr-odoo authored
Due to numerous client complaining about their automated scanner not seeing the CSP header on the http request, we add it for good mesures opw-2793379 closes odoo/odoo#121057 Signed-off-by:
Vranckx Florian (flvr) <flvr@odoo.com>
-
Nicolas Lempereur authored
Since 16.0's 0501bbd6 fields with groups are now removed from the view instead of being set as invisible. Scenario: - template user has group "Access to export feature" - create a new user while being in debug=0 mode - save => the users don't have the group "Access to export feature" set, because the corresponding field is not in the view. If the same scenario was done in debug=1 mode, we would get the group set. Solution: duplicate the field that are inside base.group_no_one section and have them be invisible if someone is not in debug mode. note: before the fix, added assert fails because there is missing groups in the newly created user. closes odoo/odoo#120310 Note: issue observed when working on another ticket Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Julien Van Roy authored
Prevent crashing when there is no VAT for an autralian partner for A-NZ Bis Billing 3.0. closes odoo/odoo#121030 Signed-off-by:
Laurent Smet <las@odoo.com>
-
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>
-