- Jun 05, 2023
-
-
divy-odoo authored
The translation of input "default values" is allowed only when `type="text"`. However, email field values are translatable because of strange behaviour: - Go to website (Edit mode) > Add a form block. - Select the existing email field > Change label position > The input is transformed into a `type="text"`. Each time a "non-custom" field is re-rendered, The `_getActiveField()` method is obtaining field related data from the database, including its type, which changes it back to the original value ("char"). The goal of this commit is to fix this behaviour using `_getFieldType()` to set the right field type instead of the default one. task-3247520 closes odoo/odoo#119293 Signed-off-by:
Outagant Mehdi (mou) <mou@odoo.com>
-
Maitri Patel authored
when the user removes the company_id and add a line in the purchase order then the issue is generated. Steps to reproduce: - Create a new purchase order. - Remove the company_id in the Purchase order. - Now add a line in PO. Select a product with the consumable product type. - Traceback will be generated. Applying these changes will resolve this issue. Sentry-4215579151 closes odoo/odoo#123061 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
niyasraphy authored
before this commit, if user search with full group name in the search view of res.groups, currently it returns no results. * open groups menu * search for Sales / Administrator * will return no result after this commit, searching a user group with full name with return the corresponding user group. closes odoo/odoo#122788 Signed-off-by:
Julien Castiaux (juc) <juc@odoo.com>
-
- Jun 04, 2023
-
-
Odoo Translation Bot authored
-
- Jun 03, 2023
-
-
Luis Manuel [Vauxoo] authored
Incorporate Luis Manuel (LuisMzz) as Vauxoo's contributor. I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#123622 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jun 02, 2023
-
-
Robin Lejeune (role) authored
Some Facebook pages have a different URL pattern than what we currently accept for the snippet. Namely: - /profile.php?id=<id> - /people/<name>/<id> - /p/<name>-<id> This commit adds these to the accepted patterns and adjusts the call to the Facebook page plugins with the right format. task-3147321 closes odoo/odoo#120325 Signed-off-by:
Outagant Mehdi (mou) <mou@odoo.com>
-
Achraf (abz) authored
This commit includes the exception details when logging an error in the registry module. By importing the sys module and using the exc_info() method, the commit ensures that the complete exception information is captured by Sentry. This modification improves the error reporting functionality by providing more comprehensive information about the encountered exceptions. This will aid in debugging and diagnosing issues, enabling faster resolution of potential problems. closes odoo/odoo#122432 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Florian Charlier authored
This method was supposed to work in multi (see history) but that behavior was lost somewhere. Voting for several posts at the same time doesn't mean much in the end and the function wouldn't work anyway because: 1. Return values wouldn't work in multi 2. It would try to vote n times for each of the n posts in self and violate unique constraint. 3. If the last existing vote had opposed value to the new vote, the method would create only '0'-valued votes for all the new records. We here then clean it make sure it is not called on several posts. A test is extended to check votes and records counts. Task-3267872 closes odoo/odoo#118065 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Jun 01, 2023
-
-
snd authored
In a 3-steps delivery with backorders, when removing the package in the 2nd step, it should be absent from the last step (OUT picking). However, assigning a package on the backorder of the 1st picking and creating a new backorder reassigns the package to the OUT picking. Settings: 3-steps delivery, packaging Steps: - create a SO of product A for 10 units - on PICK_1 picking: put 2 units in Done and put in a package, validate, create a backorder - on PACK_1 picking: remove the destination package for the 2 units, validate, create a backorder - on OUT picking: the stock.move.line does not have a package - on PICK_2 picking: put 2 units in Done and put in a package, validate, create a backorder - on PACK_1 picking: the package was reassigned to the destination package - on OUT picking: the stock.move.line has the original package that was removed before This fix ensures that a package can't be assigned on 'done' stock.move.line closes odoo/odoo#123130 Signed-off-by:
Diez Stéphane (snd) <snd@odoo.com>
-
Saurabh Mishra authored
While creating redirects/rewrite if the user does not enter any url in the 'Url to' field of the website module under 'Configuartion/Redirects' then during redirection, the error 'NotFound: 404 Not Found: The requested URL was not found on the server' will be produced. Applying this commit will solve the issue. sentry-4206504892 closes odoo/odoo#122878 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Pierre Rousseau authored
Steps to reproduce: - Activate two languages - Go to any multi-edit list view (not editable) - Select a record - Select a translatable column - Change the value of the **current** language - Click on save => Traceback OPW-3225186 closes odoo/odoo#123232 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- May 31, 2023
-
-
Rahul Prajapati authored
Before this commit: `id` cannot be set as the dependency for a field's compute method. So, when a user configures `id` as a dependency for a studio field's compute, there is no error shown to the user and the field is saved with `id` as a dependency. After this commit: It will throw a `UserError` to the user. sentry-3979435039 closes odoo/odoo#121745 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Xavier-Do authored
This query count is failing randomly in 14.0 and 15.0 Disabling the test waiting for a proper investigation or branch eol. runbot_error-14447 closes odoo/odoo#123056 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
Julien (jula) authored
The method `_get_unece_code` is called in the module `account_edi` and `account_edi_facturx`. The latter depends on the former but the opposite is not true. So this method should be defined in the module `account_edi` otherwise a traceback appears when we confirm an invoice and `account_edi_facturx` is not installed. opw-3171405 closes odoo/odoo#122912 Signed-off-by:
William André (wan) <wan@odoo.com>
-
althaf shaik authored
When _get_rule does not find any rule, it returns False. This could create some tracebacks as we mostly expect a stock.rule. It will give: if False in <recordset>: Hence a traceback: TypeError: unsupported operand types in: False in stock.rule() By applying these changes will resolve this issue. Sentry-4206998573 closes odoo/odoo#122636 Signed-off-by:
Adrien Widart (awt) <awt@odoo.com>
-
niyasraphy authored
before this commit, if the translation import is failed, in the log it shows "unsuccessfully imported" after this commit, the logger message is improved and show file import failed closes odoo/odoo#113307 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Benoit Socias authored
When generating a new page key, it was only made sure to not match existing page keys. This leads to COW happening on existing views if the key already existed in a view. This commit ensures that new page keys are not existing view keys either. Steps to reproduce: - Create a page named "snippets". => Notification was shown indicating that `website.snippets` is private. task-3328827 closes odoo/odoo#122669 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Benoit Socias authored
When the name given when creating a new page starts with a slash, the werkzeug route `/website/add/<path:path>` cannot be matched. This leads to wrong navigation situations. This commit removes any leading slash from the entered page name. Steps to reproduce: - Create a page. - Enter "/abc" as name. => A 404 error page was reached. task-3328827 Part-of: odoo/odoo#122669
-
Robin Lejeune (role) authored
On Firefox only: some SVG shapes either disappear when flipped or are not properly flipped. This is due to the way Firefox parses SVGs and the way Odoo applies transformations on them. It happens when the main `<svg>` contains other nested `<svg>`, and the flip transformation is applied to each of them, causing unexpected behaviors. When the parent contains a direct `<svg>` child and both of them are then applied a transformation, the whole shape disappears. When the parent contains some `<svg>` inside a `<defs>`, and the children are then included with `<use>`, each element is flipped individually, which means the flip is not processed as we would expect. This commit makes sure the flip is only applied to the main `<svg>`. Steps to reproduce: (A) >= 14.0: - On Firefox, drag & drop the image-text snippet - Add a background shape and choose "Origins 07" - Flip it: it isn't flipped (B) >= 15.2: - On Firefox, drag & drop any block snippet - Add a background shape and choose "Float 13" - Flip it: the shape is hidden task-3264851 closes odoo/odoo#120516 Signed-off-by:
Bojabza Soukéina (sobo) <sobo@odoo.com>
-
- May 30, 2023
-
-
Guillaume (gdi) authored
Depending on the modules installed, the action of the form on the `/contactus` page changes. For example, if you have `website_crm` installed, the action will be set to "Create an Opportunity" but if you only have `website_form` installed, the action will be "Send an Email". For each action, there are mandatory fields that cannot be deleted by the user. Unfortunately, the templates for the `/contactus` forms didn't have the right fields marked as mandatory. This led to the following bug (with only `website_form` installed): - Go to `/contactus` - Edit the page => The Email and Subject fields can be deleted. However, when you drop a form and set the action to "Send an Email", these fields are mandatory and cannot be deleted. This commit fixes this bug by ensuring that these fields are marked as mandatory on `/contactus`. This commit fixes the same issue with the `website_crm` module. task-3302433 closes odoo/odoo#122858 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Aurelien van Delft (avd) authored
The report_stock_quantity model defines a view in its init method to compute quantity information related to stock. This view is made of two CTEs and a three-part query separated by UNION ALL. The first CTE, existing_sm, retrieves the stock_move data from the database that are later used by the remaining of the query. One of the where conditions of existing_sm is (m.state != 'done' or m.date >= ((now() at time zone 'utc')::date - interval '3month')). m.state != 'done' is translated to m.state <> 'done' by the query planner. This type of operator has the side-effect of turning off index scan. Therefore, the scanning of the existing_sm CTE performs a Seq Scan and applies the where conditions in a Filter node. This can be quite ineffecient if the stock_move table is big, and if the selectivity of the m.state != 'done' condition is high enough to theoretically justify an IndexScan. To fix that, we take the inverse of m.state != 'done', i.e. an IN cond. This allows postgres to use Bitmap Scan, which is usually better under these specific conditions. E.g. speedup: db with 7M stock_moves, select from report_stock_quantity with conds for state, date, product_id, warehouse_id, company_id 4.5s -> 2.5s opw-3288364 closes odoo/odoo#120820 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Luis González authored
A new validation was recently added to prevent importing reserved quantities on stock move lines, to prevent inventory discrepancies [1]. However, such validation inadvertently introduced another issue, which is now, if the reserved quantity is not filled with 0, the new validation is triggered. This commit fixes the above issue by not requiring the reserved quantity to be provided. In addition, a typo is fixed in the error message: "it is not allow" -> "allowed" [1] odoo/odoo#119201 closes odoo/odoo#122797 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
Alvaro Fuentes authored
Backport of 8aa4f424 closes odoo/odoo#121284 Signed-off-by:
Alvaro Fuentes Suarez (afu) <afu@odoo.com>
-
Walid authored
Steps to reproduce: - set up a header with company logo - print 20 sale orders in arabic Bug: header disapears on most pages Fix: add a setting to allow users to increase the delay before printing opw-3217155 closes odoo/odoo#121054 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Tom De Caluwé authored
The test_current_leave_status checks the correct implementation of different hr.leave computed fields. To do this, a leave is created, during the test. The test fails however, when the employee is not supposed to work during the leave period, which can happen when running the test on certain days. The test is made deterministic again by adding the number_of_days field to the dict. As this is a stored field, the created leave entry will be considered valid. closes odoo/odoo#121533 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- May 28, 2023
-
-
Odoo Translation Bot authored
-
- May 26, 2023
-
-
Walid authored
Steps to reprodue: - Create a dropshipped product - Sell the product to a client with a different language set - Print the delivery slip Bug: delivery slip is currently being printed in the vendor's language Fix: Print the delivery slip in the client language when possible opw-3193015 closes odoo/odoo#121305 Signed-off-by:
Adrien Widart (awt) <awt@odoo.com>
-
Arnold Moyaux authored
Use case: It happens that a product is consumed in different operations. So it needs two distinct BoM lines. Since commit [1] the stock.move in pbm are not merged. However [1] was design for kit. In our case we would like to have only one stock.move for all the quantities. The fix is not perfect because it won't work if we confirm at the same time a move with a kit and without it. But at least it will let people using MO without kit has the correct behavior + remove a duplicate of the function [1] commit 741d2fe9 closes odoo/odoo#120835 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
- May 25, 2023
-
-
stcc-odoo authored
Steps to reproduce: - Install industry_fsm_report, website - Create Project P, add column/stage PC. - Edit stage, Email Template = Task: Intervention Schduled. - Edit the template > Advanced Settings > Optional report to print and attach = Worksheet Report (PDF). Save everything. - Go to website, "contact us" page > Edit the form, Action = Create a task, Project = P > Save Issue: When you first submit the form, it will fail, but the task will be created and visible in project P. By instinct, the user will submit the form again, so the task will be duplicated. The second form submit will return a success message. When submitting a form, we first generate a savepoint (added in commit [1]). Since this is the first interaction with the report system, during the handling of the form, the assetsbundle will be generated (see keyword 'commit_assetsbundle'), which will cause a commit. Finally, assuming no other error is raised, we try to delete the savepoint. However, since a commit was executed, then the savepoint will no longer exist, which will cause an error status to be returned. Solution: When submitting a form, pass `commit_assetsbundle=False` to the record creation, which prevents the commit from happening. This solution has a downside; creating the record also sends an email and the report attached to that email will have broken styling. This is still an improvement to the current behaviour, which doesn't send the first email at all. [1]: https://github.com/odoo-dev/odoo/commit/5a499ecf113f08c11d2b33b47680dd00ec1b297b opw-3183912 closes odoo/odoo#119612 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Sébastien Theys authored
A raw query is not necessary to produce the desired result, found activities need to be kept only if the corresponding record can be found with standard search (which includes multi-company check). Part of task-3266643 closes odoo/odoo#122354 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Csaba Tóth authored
closes odoo/odoo#122303 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Julien Van Roy authored
Use case: the eco-taxes (recupel, auvibel, etc) are fixed taxes in Odoo, which apply before the "regular" (percentage) tax on an invoice line. We can have one or more fixed taxes and 1 regular tax. In EN16931, there can only be 1 tax per invoice line. Thus, the fixed taxes are encoded as charge on the invoice lines (with reason code `AEO`: "Collection and recycling"). The tags `AllowanceCharge` (in UBL) and `SpecifiedTradeAllowanceCharge` (in CII) are used. Then a serie of tax related infos need to be changed: the taxes in UBL/CII should not contain the fixed ones and the total untaxed amount needs to be adapted, as well as the total tax amount (since the fixed taxes were removed). To be able to import the fixed taxes back in Odoo, the charges on the invoice lines are read and their names and amounts are used to search on the existing taxes. task-3274208 closes odoo/odoo#121494 Signed-off-by:
Laurent Smet <las@odoo.com>
-
niyasraphy authored
The orginal PR and it's forward ports https://github.com/odoo/odoo/pull/121048 intorduced an unexpected AttributeError when using OAuth for incoming mail servers (fetchmail.server). Since `smtp_user` is not a defined field in fetchmail.server (it uses the field `user` instead), we had to change the approach. To prevent this error, we move the UserError call into the respective ir_mail_server models, which should check the contrains at that level. This means that before the form gets saved, trying to connect using an OAuth account, should prompt the user to first specify an smtp_user before proceeding. closes odoo/odoo#122222 Signed-off-by:
Stéphane Debauche (std) <std@odoo.com>
-
Michele authored
closes odoo/odoo#121868 Signed-off-by:
Vincent Schippefilt (vsc) <vsc@odoo.com>
-
- May 24, 2023
-
-
Benjamin Vray authored
Steps to reproduce the bug : - Add the same google font twice with the font family selector in the option tab of the editor panel. - The font will be displayed only once in the font selector menu but 2 trash icons will be added, one for the added font and one for the font that was already there. This commit fix this and allows now the user to add the same font twice, but only to replace a served font by a local font. The opposite does not make sense, but if the user really wants to replace a local font with a served, it is always possible by deleting the locale beforehand. In addition, this commit adds a cloud icon next to the default fonts of the theme. Since these fonts are served by Google, it is logical to have the cloud icon. This is consistent with the cloud icon that is present when the user adds a font served by Google. task-2998689 closes odoo/odoo#103402 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Paul Morelle authored
The selection function get_selection_class for the field classname has obviously been thought to be overridable by subclasses in order to add new selection classes if need be. However, before this commit the method was passed directly to the Selection constructor, which used the callable object directly. If it was overridden by a subclass, the Selection object would still use the same non-overridden callable instance. With this commit, we give the name of the method instead of the callable, which makes that the method is resolved after all overrides, and therefore the resulting selection will be the overridden one. closes odoo/odoo#122299 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Laurent Smet authored
When duplicating the reco model, we want to counterpart entry lines to be copied as well. closes odoo/odoo#122309 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Dylan Kiss (dyki) authored
After commit 9bf54f09, we assumed that the date field of a move was never empty. On the form view, it can be (temporarily) empty though (before save), causing an error when trying to read it. We now don't try to recompute the name when the date is empty, thus preventing the date field to be read in that method. task-3326834 closes odoo/odoo#122260 Signed-off-by:
William André (wan) <wan@odoo.com>
-
divy-odoo authored
Before this commit, the widget value was updated (based on the current state) prior to updating the snippet UI. As a result, the widget value reflected used the non-updated UI labels. task-3112890 closes odoo/odoo#120569 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
paso-odoo authored
If applied, this commit will solve the min-max issues for efaktur. - invalid literal for int() with base 10: when we enter all characters string in the min or max it will raise an error like this. - Error is also raised when the min or max is blank and try to save the record. So, I have update the value as 0 if the min value or max value not generated. see - https://tinyurl.com/2lx9j2kr Sentry - 3936020226 closes odoo/odoo#112850 Signed-off-by:
William André (wan) <wan@odoo.com>
-