- May 26, 2023
-
-
jorv 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. X-original-commit: fcfd72a5 Original author: niyasraphy <niyasraphyk@gmail.com> Conflict resolution for saas-15.2, 16.0 closes odoo/odoo#122613 X-original-commit: 3de5e2a1a0238b3edc5537aa5e3842ad5430a186 Signed-off-by:
Stéphane Debauche (std) <std@odoo.com>
-
Đào Nam authored
[REF] account: Create function _get_aml_default_display_map to allow other modules to inherit and add new key pairs closes odoo/odoo#122426 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Saran440 authored
closes odoo/odoo#122334 X-original-commit: 479a3354 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
mky-odoo authored
Expected singleton: res.currency() when currency not provided also when remove company in invoice. Steps to Produce:- - While go to invoice and click on `REGISTER PAYMENT` - Remove currency from wizard Traceback will be generated. Applying this changes will resolve this issue. sentry - 4149615534 closes odoo/odoo#121625 Signed-off-by:
William André (wan) <wan@odoo.com>
-
PNO authored
When working on an operation in workcenter that requires login, we can add multiple timers. However, if multiple timers do not have an `end_date` and have different `loss_id`, we will get a traceback (expected singleton) when computing the interval duration. After this fix, `_convert_to_duration` can be called with multiple productivity loss. OPW-3292374 closes odoo/odoo#121112 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Asta authored
And resynchronise terms based on pot closes odoo/odoo#120331 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
sergio-teruel authored
closes odoo/odoo#122537 X-original-commit: 18e03c73 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Ivan Yelizariev authored
1. Infinite loop may happen on using `parent_of`\`child_of` when there is a recursion in the tree (e.g. a record is marked as a parent of itself). Fix it by excluding seen records from the next iteration. 2. Another problem with `child_of` is `parent_id` that references to another model. For example, the `parent_id` may come from inherited model. It's the case with `res.users` and `res.partner` models. It may lead to a random search results. Avoid that by raising exception in case of wrong usage of the `child_of` operator. STEPS: In demo data, there is a partner called "Wood Corner" that is `res.partner(9,)` that has 3 sub-contacts. If we give Portal access to two of them, we end up with a database, where we have a `res.users(9,)` record that has a partner, which has a `parent_id` to "Wood corner". So this way, the user id is the same as the user's partner's parent contact id. After that open a shell and type: ``` env['res.partner'].search([["user_ids", "child_of", 9]]) ``` BEFORE: infinite loop (without change n.1) or random search results (when change n.1 is applied) AFTER: ValueError exception --- opw-2729740 closes odoo/odoo#122524 X-original-commit: a7352c644f5f12ca075546bd57912f849f9e20f2 Signed-off-by:
Raphael Collet <rco@odoo.com> Signed-off-by:
Ivan Elizaryev (iel) <iel@odoo.com>
-
Saurabh Mishra authored
When user enters empty space in name field instead of entering an actual name and confirm their billing, shipping address then when they click on paynow to confirm order they will face the issue 'list index out of range'. Note : Do the paypal configuration before following below steps. Steps to produce: 1) Vist the website as a public user. 2) Create a sale order by adding some products to the cart. 3) While entering shipping and billing address, in the name field enter some space. 4) Click on next button. 5) Now a sale order is created. 6) Go to orders through 'website' module. 7) Open the order created and generate a payment link. 8) Paste that payment link in another tab or browser . 9) Click on pay 10) By following above steps you will encounter the error. This commit will prevent the above error. sentry - 4177783431 closes odoo/odoo#122521 X-original-commit: 46f7bc3cdd80313290b4b72b9a9da49a09e548a4 Signed-off-by:
Saurabh Mishra (sami) <sami@odoo.com>
-
Louis (loco) authored
*website Steps to reproduce the bug: - Add a Cover and a Picture snippet on the website. - Change their visibility to "Conditionally". - Change the order of the two snippets on the page either with the drag and drop tool or with the "move up" or "move down" option. => Their order on the "Invisible Elements" panel has not been updated. The problem is fixed by calling `_updateInvisibleDOM()` at the end of `moveSnippet()` and `_onSnippetDragAndDropStop()`. Note that before this commit, all the snippets with a conditional visibility were hidden at the call of `_onSnippetDragAndDropStop()`. This is due to the call of `cleanForSave()` from `_destroyEditors()`. `_onSnippetDragAndDropStop()` has been adapted in order to, as for the "move" option, do not change the visibility of those elements. task-3203914 closes odoo/odoo#122454 X-original-commit: https://github.com/odoo/odoo/commit/e8ff70b1b85dc104750ca8a81833444a17a2e9bb Signed-off-by:
Dieleman Guillaume (gdi) <gdi@odoo.com>
-
Louis (loco) authored
*web_editor, website Steps to reproduce the bug: - Add a Text-Image snippet. - Change its visibility to "Conditionally". - Save. - Edit again. => The eye icon indicates that the snippet is not visible but the snippet is displayed. Note that [1] introduced a mechanism to solve this problem (the `cleanForSave()` of the `ConditionalVisibility` option) but the code was not working correctly since [2]. Let's first remember that when calling `toggleTargetVisibility()`, two main actions are performed: - The addition or suppression of the `data-invisible` attribute from the dataset of an invisible element. This attribute is responsible for the crossed or not of the eye icon in the "Invisible Elements" panel. - The call to `onTargetHide()` or `onTargetShow()` that performs among other things the addition or the suppression of the `o_conditional_hidden` class on an invisible element. This class is responsible for the visibility of the element on the page in edit mode. This being said, here is what happened at the "Save" before this commit: - `cleanForSave()` of `snippetEditor` is called. If the related element has the `o_snippet_invisible` class, `toggleTargetVisibility(false)` is called (meaning that the `o_conditional_hidden` class and the `data-invisible` attribute are added to the element). - `cleanForSave()` of the `ConditionalVisibility` option is called and before [2], the `data-invisible` attribute was removed from the corresponding element. - At the `DOMContentLoaded`, the `o_conditional_hidden` class is removed from all the elements that have a conditional visibility. The visibility of those elements on the page now depends on the rule set by the user. The goal of this commit is to restore the mechansim of the remove of the `data-invisible` attribute from the conditionnal elements at the `cleanForSave()`. [1]: https://github.com/odoo/odoo/commit/1c442782f887a8c16bae05a43fae13a310ac05df [2]: https://github.com/odoo/odoo/commit/de3c29fab2bc5349da8a9418f9d0086d76e6f7de task-3203914 X-original-commit: https://github.com/odoo/odoo/commit/aae9053cbab6e0d3eda256a67fce98aced183ee7 Part-of: odoo/odoo#122454
-
Louis (loco) authored
Steps to reproduce the bug: - Add a form snippet on the footer of the website page. - Change the visibility of the form snippet to "conditionally". - On the footer settings, deactivate the "Page Visibility". => The form snippet is still present on the "Invisible Elements" panel but clicking on it has no effects. Indeed, it is inside the footer which is hidden. The goal of this commit is to reorganize the "Invisible Elements" panel in order to better visualize the hierarchy between the different invisible elements. To do so, the list of the invisible snippet elements (`[...$invisibleSnippets]`) is scanned. Each invisible snippet that is the descendant of another is discarded of the list (to only keep the "root" ones) and a map is created with its `keys` set to invisible snippets that have invisible descendants. The `value` corresponding to an invisible snippet element is a list filled with all its descendant invisible snippets except those that have a closer invisible snippet ancestor. The list of the root snippets is then scanned. Each root snippet is inserted in the DOM as well as their descendant snippets found thanks to the newly created map. Note that thanks to this commit, another problem is solved: - Add a cookie bar on the website. - Add a Text-Image snippet and change its visibility to "conditionally". - Save and edit again. Note that the "Cookies Bar" is above the "Text- Image" on the "Invisible Elements" panel. - Click to display the cookie bar. => The order of the "Cookies Bar" and the "Text-Image" is switched on the "Invisible Elements" panel. Indeed, before this commit, the order of the snippets was influenced by the order of their snippet editor creation. Because this order was not always the same from one call to `_updateInvisibleDOM()` to another, a glitch could happen when toggling a snippet visibility. This is now fixed as the order of the invisible snippets in the "Invisible Elements" panel is determined either by their order in the list `rootInvisibleSnippetEls` or their order in the lists contained as value in the map `descendantPerSnippet`. task-3203914 X-original-commit: https://github.com/odoo/odoo/commit/3f10fc99c92176c7379ec7d460afb2feb87ecc23 Part-of: odoo/odoo#122454
-
Mohit Beniwal authored
ZeroDivsionError: float division to Zero is generated because for assigning value to 'factor' of uom in method '_set_ratio', it tries to divide value by Zero for uom_type 'Bigger'. Steps to reproduce: 1) Install 'Inventory' module. 2) Click on 'Configuration' > 'Settings'. 3) Activate 'Units of Measure' > click on 'Units of Measure' button under it. 4) Click on 'Create' button to create new uom category. 5) Give any name > in 'Units of Measure' page, click on 'Add a line'. 6) Enter name and select type as 'Reference unit of measure for this category'. 7) Now, add another line and select type as 'Bigger than the the Reference unit of measure' and set the 'ratio' value to Zero, Error will be generated. By applying this,it will check for the value of 'ratio' to prevent division by 0 sentry - 4174584503 closes odoo/odoo#122333 X-original-commit: afbd59e5 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
niyasraphy authored
before this commit, on changing the product from bom is not clearing the product variant field, if the product variant feature is not activated in the database. * activate the product variant in the db * create a product and variants * open bill of material, and set the created product as product and set any variant in product variant field * now go to settings and disable product variant feature * come back to same bom and change the product * the product variant field will still have the other product onchange_product_tmpl_id is written to clear the product variant field value, but as the product variant field has group the onchange value is not getting updated. after this commit, on changing the product the product variant field will get cleared even if the product variant feature is not activated. closes odoo/odoo#121859 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Achraf authored
Handling of 'None' return value from 'get_url_from_code' to prevent crashes in 'request.redirect' https://github.com/odoo/odoo/blob/05fc9a67335d5a96752d828defa066d4fdabe301/addons/link_tracker/models/link_tracker.py#L248-L255 Apply same logic as https://github.com/odoo/odoo/blob/c46f4b908a73658ce2aa7fd9987fbac76a0dda00/addons/link_tracker/controller/main.py#L21-L24 sentry-4183731887 closes odoo/odoo#121405 Signed-off-by:
Achraf (abz) <abz@odoo.com>
-
Raúl authored
- We refactored the VAT validation from a validation error to a warning that is stored in l10n_ec_vat_error - Remove the "-" and "EC" from the base_vat in the EC validation/example - Only validate the length in the base_vat - Add compute field with the warning message in the l10n_ec closes odoo/odoo#121099 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Csaba Tóth authored
closes odoo/odoo#122570 X-original-commit: 3e757c59 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
David (dafr) authored
qty_received_method is not recomputed if the product type change, and can lead to issues on existing purchases when trying to generate a Vendor Bill. # HOW TO REPRODUCE: - Create product P, type: Service, Control Policy: 'On Received Qty' - Create PO for 1 unit of P (do not confirm) - Update type of P to Storable - Confirm PO, Receive Products => Qty Received is 0, not able to generate Bill closes odoo/odoo#122353 X-original-commit: fcc1e8e3 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Fesquet David (dafr) <dafr@odoo.com>
-
Preksha Chouhan authored
When user create a pos category from 'restaurant.printer' model in 'pos_restaurant' module. it will give an error with the message - 'sequence item 0: expected str instance, bool found' Steps to Produce:- 1. Install 'pos_restaurant' module 2. Go to 'point_of_sale' module 3. Go to 'Configuration' -> 'Order Printers' 4. Click on any printer or create new 5. Under 'Printed Product Categories' click 'Add a line' 6. Click 'New' Trace-back will be generated. Applying these changes will resolve this issue. sentry - 4072172292 closes odoo/odoo#120519 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
- May 25, 2023
-
-
Stanislas Gueniffey authored
**TicketBAI features** - Generation of XML documents for invoices - Automatic signing of documents with certificates - Sending XML to the appropriate tax agency's servers - Parsing and storing their response - Preserving the invoice signature chain integrity - Displaying the TicketBAI QR code on the invoice PDF - Downloading XSD files for local validation - Test mode using tax agencies' test servers **Supported accounting flows** - Posting and canceling invoices - Foreign and national customers - Multi-currency - Refunds (credit notes) - Discounts - Simplified invoicing **Not supported accounting flows** - Specific VAT regimes - Handling of third-party invoices - XML generation and EDI operations for vendor bills (Bizkaia LROE) - Modelo 140 (Bizkaia LROE) - Invoice batching (Bikzaia LROE) closes odoo/odoo#109907 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Josse Colpaert authored
This way, the demo company is easier to play with as a certificate is already there. Part-of: odoo/odoo#109907
-
Josse Colpaert authored
Before, if you had multiple lines with noexenta, the lines could be added multiple times. So, we only add the lines outside of the for-loop. For Ticketbai, we also need to make the distinction between S1 (normal) and S2 (inversion sujeto pasivo) lines, so we return them in different lists. Part-of: odoo/odoo#109907
-
Josse Colpaert authored
Part-of: odoo/odoo#109907
-
Josse Colpaert authored
Part-of: odoo/odoo#109907
-
Habib (ayh) authored
With this commit, we improve the usability of foreign bank transactions. When capturing a new bank transaction (account.bank.statement.line) - when capturing a new transaction we compute the amount currency based on the transaction date, amount in journal/company currency, and foreign currency - when the foreign currency is removed, the amount_currency is cleared Task-3338560 Task-3338532 closes odoo/odoo#122499 Related: odoo/enterprise#41503 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Yolann Sabaux authored
This reverts commit 33d95edd4832c4bd68bb2da2c4585e7b26db8a3c. Following of the next steps https://www.odoo.com/web#id=3338017&cids=1&model=project.task&view_type=form Initial opw-2992106 closes odoo/odoo#122474 Forward-port-of: #122431 Signed-off-by:
William André (wan) <wan@odoo.com> Signed-off-by:
Yolann Sabaux (yosa) <yosa@odoo.com>
-
Michele authored
closes odoo/odoo#122463 X-original-commit: fa2cb330 Signed-off-by:
Vincent Schippefilt (vsc) <vsc@odoo.com>
-
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#122398 X-original-commit: be503205 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Jeremy Kersten authored
The 'frontend_lang' cookie is used to 'cache' the user's preferred lang. We want to make sure that this language preference is preserved for a longer period of time than just the life of the browser. This means that even if you quit your browser and come back into the year, your preferred language will be used, until you choose to remove your cookies. The 'utm_*' cookies are used to 'track' where you are coming from on the instance. The purpose of these cookies is to know the tracking value to improve the overall user experience or compute the profitability of some campaigns. Now we keep these cookies for 1 month. closes odoo/odoo#122295 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
pedrambiria authored
This update enables PoS to handle GS1 barcodes, which was previously not possible even though the GS1 nomenclature could be selected. GS1 barcodes can now be used to extract product identifiers, lot numbers, and serial numbers from the code. opw-3204299 closes odoo/odoo#122257 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
Mahamadasif Ansari authored
'PdfReadError Could not read malformed PDF file' log error is generated when user upload a corrupted PDF file in an invoice. This commit changes the logger exception to a warning to avoid an unnecessary error in the log. sentry-4188965420 closes odoo/odoo#121617 Signed-off-by:
Quentin De Paoli <qdp@odoo.com>
-
- Apr 13, 2023
-
-
Valentin Chevalier authored
by using the `request.website` context closes odoo/odoo#88374 Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com>
-
- May 25, 2023
-
-
Thomas Lefebvre (thle) authored
Steps to reproduce: Without being logged in, complete the purchase flow on the ecommerce, taking care to have a different billing and shipping address. If you change the delivery address, you will get an access error. Cause: In some cases, we do not have access to the `name` field of the `partner` record. Solution: Add `sudo` to be able to read the fields. opw-3276877 closes odoo/odoo#122284 X-original-commit: 1d6ae6bb Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by:
Lefebvre Thomas (thle) <thle@odoo.com>
-
Julien Castiaux authored
Install and then uninstall the utm module via the web client, you get a traceback because the ir.http override of the utm module is still present in the registry altought the module is not installed anymore. The problem affects all modules that override the _post_dispatch method of ir.http, it is not limited to UTM. The problem is that, after the uninstallation, a new registry (without the uninstalled modules) is created but the old registry was still used by the HTTP stack. closes odoo/odoo#122242 Closes: #121755 Signed-off-by:
Julien Castiaux (juc) <juc@odoo.com>
-
Antoine Dupuis (andu) authored
When creating an invoice with a positive line and a negative line, with different taxes, the DatiRiepilogo node for the tax of the negative line contained positive amounts when they should be negative. This is because we were applying `abs()` too naively in the XML template and in the code of _l10n_it_edi_prepare_fatturapa_tax_details. This bugfix commit changes the logic to no longer use abs(). opw-3316300 closes odoo/odoo#121933 Signed-off-by:
Quentin De Paoli <qdp@odoo.com>
-
Antoine Dupuis (andu) authored
Since the coming into force on 01/01/2016 of Legislative Decree 139/2015 implementing EU Directive 2013/34/EU, extraordinary gains and losses should no longer be accounted separately on the P&L statement. See this article https://www.fisco7.it/2017/02/come-ricollocare-nel-conto-economico-gli-abrogati-oneri-e-proventi-straordinari/ There is therefore no point in having special accounts for extraordinary gains and losses. So we are removing accounts 71 and 72, both from the CoA and from the Profit and Loss accounts. Since they should no longer be used since 2016, this should not have any impact for existing users. closes odoo/odoo#121288 Related: odoo/enterprise#41014 Signed-off-by:
Quentin De Paoli <qdp@odoo.com>
-
Laurent Smet authored
When duplicating the reco model, we want to counterpart entry lines to be copied as well. closes odoo/odoo#122360 X-original-commit: c5d5f4db Signed-off-by:
William André (wan) <wan@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#122377 X-original-commit: 91bea596 Signed-off-by:
Romain Derie (rde) <rde@odoo.com> Signed-off-by:
Paul Morelle (pmo) <pmo@odoo.com>
-
pedrambiria authored
There were two cases that caused the issue: Consider a cash rounding with Precision 5 and only cash. If you have an order that the total amount is 40 and pay 38 by bank and 0 with cash (cash rounding), it will raise an error. If you have an order that the total amount is 41 and pay 38 by the bank and 5 with cash, it will raise another error. opw-3302114 closes odoo/odoo#121626 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
- May 24, 2023
-
-
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#122302 X-original-commit: 78ecfd66 Signed-off-by:
William André (wan) <wan@odoo.com>
-