- Sep 15, 2023
-
-
Quentin authored
When parsed, if the attachment has a basis quantity of zero, it creates an error, because it is used in a division. The condition that checks whether is computed should be done only if this variable is none. The code does not handle if `attachement_name.text` is None, which can be caused by an orphan ID tag (e.i. "<cbc:ID />") , in the xml of the pdf. opw-3470969 closes odoo/odoo#135504 X-original-commit: bfc83df7 Signed-off-by:
William André (wan) <wan@odoo.com> Signed-off-by:
Laurent Smet (las) <las@odoo.com>
-
Thomas Lefebvre (thle) authored
Steps to reproduce: ------------------- - Without going to the shop first, login with a user who triggers a different fiscal position and pricelist than the public user. - In another browser tab (incognito or separate tab), go to the shop with the public user. - Select the pricelist previously used by the user in the other session. Issue: ------ We obtain the prices for the other user's fiscal position. Cause: ------ When we login with a user who triggers a fiscal position mapping and go to the `/shop` page, `products_prices` will be frozen with values calculated with the fiscal position (via `_get_sales_prices`). If we change our fiscal position, but use a template that contains the same `t-cache` key, we won't re-evaluate the template. As a result, it is possible to obtain values calculated for another fiscal position. Solution: --------- As the template values take into account the fiscal position, we need to add a `t-cache` key to identify this fiscal position. opw-3316153 closes odoo/odoo#133949 Signed-off-by:
Thomas Lefebvre (thle) <thle@odoo.com>
-
vishal padhiyar authored
Before this commit: When pasting text from outside odoo, it often includes additional tags such as <b> and <P>, along with unwanted styles. After this commit: When pasting text from outside odoo, those extra tags and styles are now removed. task-3378093 closes odoo/odoo#127393 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
thsh-odoo authored
How to reproduce the bug =========================. 1. Open e-Learning. 2. Create a section. 3. Add a content in the created section and change the default duration . -> New duration is not set and it is taking the default duration only Technical ========= https://github.com/odoo/odoo/commit/7b7fdf8f2771840797e1d416a8275ba3666ab542 This commit introduce the feature to set default time for the content in the backend if user put the Duration field empty for that content but because of the extra 'not' in the condition it was always getting true so every time default value is stored and if completion_time is not there then it is set to 0. After this Commit ================== Now whatever duration user will put, it will be set and if completion_time is not given then it will give us the default time. Task-3340462 closes odoo/odoo#135334 X-original-commit: 1c470b65bca48c2ac660fda919be7b8fc6e3990f Signed-off-by:
Stéphane Debauche (std) <std@odoo.com>
-
- Sep 14, 2023
-
-
Josse Colpaert authored
The SII module adds some fields on the taxes, so after installing the module, those fields need to be set on the already installed CoAs. We forgot to set the l10n_es_bien_inversion field, which is used in l10n_es_edi_sii to send the right information about the taxes to the gov. closes odoo/odoo#135484 X-original-commit: 1b37eaaf Signed-off-by:
Olivier Colson (oco) <oco@odoo.com>
-
oco-odoo authored
Example: Copy the Belgian P&L, try to open the copied report => error message saying some aggregation terms cannot be expanded. If you open the its form view, you can see that line BE_PL_14's balance formula has been translated from this BE_9906.balance + BE_791.balance - BE_691_2.balance + BE_794.balance - BE_694_6.balance to this on the copy: BE_9906_COPY.balance + BE_791_COPY.balance - BE_691_2_COPY.balance + BE_794.balance - BE_694_6.balance This is buggy ; BE_794.balance and BE_694_6.balance should be BE_794_COPY.balance - BE_694_6_COPY.balance, in order for them to match the other lines of the copied report properly. This bug touches other reports more generally. It was due to the fact we replaced the codes in aggregations while we were copying the lines, and not after copying all the lines. Because of that, lines that were referrenced by an aggregation expression belonging to a line coming before them in sequence were not taken into account, as they were not part of the code_mapping dict yet. OPW-3505592 closes odoo/odoo#135467 Signed-off-by:
John Laterre (jol) <jol@odoo.com>
-
duongnguyen authored
closes odoo/odoo#135245 Signed-off-by:
Sofie Gvaladze (sgv) <sgv@odoo.com>
-
Benoit Socias authored
If leads are created using live chat, users without CRM rights cannot access the visitors list anymore because the lead/opportunity information is not available to them. This commit limits the display of `lead_count` to the `sales_team.group_sale_salesman` group. Then, the visitor's form cannot be accessed because the "Lead" smart button fails to load. This commit therefore limits the display of the button to that same `sales_team.group_sale_salesman` group. In 14.0, the column still appeared without the `lead_count` value displayed, but clicking on it raised a traceback. Steps to reproduce: - Install `website_crm_livechat` - Login as Mitchell Admin - Send a message in the live chat - Go to Discuss - Answer the livechat message with `/lead New` - Go to Settings / Users / Marc Demo - Remove the Sales rights - Logout - Login as Marc Demo - Go to the Website / Reporting / Visitors page => The page could not be reached and an access right error message was generated. opw-3475301 closes odoo/odoo#135399 X-original-commit: 7de453477d7c23e607a15e0d60613080857e3371 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by:
Robin Lejeune (role) <role@odoo.com>
-
gera-odoo authored
This replaces the former domain operator '?=' which is not allowed, This domain property, new to Odoo 16 does not permit the edition of the field with Studio, this change will enhance the configuration and will prevent future issues. owp-3484144 closes odoo/odoo#135243 Signed-off-by:
Sofie Gvaladze (sgv) <sgv@odoo.com>
-
Pierrot (prro) authored
A previous commit made to add a new (triangular) tax introduced a bug where the tag 3b (omzet) was archived, leading to journal items not being picked up by the modified tax report. This commit should add the new tag 3bl (omzet) on the items containing the previous 3b (omzet) tag when upgrading the module. closes odoo/odoo#134158 Signed-off-by:
Olivier Colson (oco) <oco@odoo.com>
-
roen-odoo authored
Current behavior: If a PoS had a different currency than the company currency, the total due was not converted in the PoS currency. So when you paid the total due it was not the correct amount. Fix: The total due is now converted in the PoS currency when the PoS is loading the data. We also had to change the refreshTotalDueOfPartner to retrieve the total due in the PoS currency. Steps to reproduce: - Create a PoS that uses a different currency than the company currency (change the journal, pricelist and payment method) - Make some payments with this PoS using the customer account - Check the total due of the customer account in the PoS, it's not the correct value. - Try to pay the total due, it's not the correct value either. opw-3469682 closes odoo/odoo#133061 Related: odoo/enterprise#46718 Signed-off-by:
Robin Heinz (rhe) <rhe@odoo.com>
-
Julien Alardot (jual) authored
Fix a corner case when the expense currency doesn't update when a cost is added to the product Steps to reproduce: - Create an expense in a foreign currency - Add a cost to the expense product Before fix: Unit amount currency stays in foreign currency After fix: Forces expense currency to company currency task-3455446 closes odoo/odoo#131043 Signed-off-by:
Laurent Smet (las) <las@odoo.com>
-
Florent de Labarre authored
Before this commit, the fiscal position is not used to determine account. closes odoo/odoo#135289 X-original-commit: 4a447759 Signed-off-by:
Cedric Snauwaert <csn@odoo.com> Co-authored-by:
Miquel Raïch <miquel.raich@forgeflow.com>
-
roen-odoo authored
Current behavior: When invoicing an order that was made in a closed PoS session, the wrong partner was used for the invoice. And so the total due was assigned to the wrong partner if you used the "Customer Account" payment method. Steps to reproduce: - Open PoS and make an order for a customer using the Customer Account payment method. - Close the PoS session. - Open the PoS session again, and invoice the order you made in the previous session. Fix: Use the commercial_partner_id of the order's partner instead of the partner_id directly. opw-3478670 closes odoo/odoo#135007 Signed-off-by:
Vlad Stroia (vlst) <vlst@odoo.com>
-
shsa-odoo authored
Before this commit: -Font size does not get applied to selected cells. -Font style buttons were active when cells are selected. After this commit: -Font size can be applied. -The font styles should not all be toggle by default. task-3477490 closes odoo/odoo#133188 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Victor Piryns (pivi) authored
Description: The commit 05855b6b introduced a fast-path for the name_search on tags from the form view of tasks. But the implementation was too complex and wasn't handling correctly all possible operators (it just had a fallback on the default parent name_search implementation). The aim is to simplify the code for better robustness and maintainability long term. Fix: Convert the query to it's equivalent python code. It has a slight performance regression than the previous implementation (we are making 3 queries worse-case instead of 1), but the regression is non-significant and not critical. Affected versions: 16.0 up to master Reference: task-3503721 closes odoo/odoo#135323 Signed-off-by:
Audric Onockx (auon) <auon@odoo.com>
-
Aaron Bohy authored
We must wait for an additional tick to be sure that the error dialog is displayed, because the "unhandledrejection" event is triggered asynchronously. Runbot issue-24690 Runbot issue-24691 Runbot issue-24744 Runbot issue-24733 Runbot issue-24742 closes odoo/odoo#135426 Signed-off-by:
Pierre Rousseau (pro) <pro@odoo.com>
-
Julien Carion (juca) authored
This commit gathers the different parts of the content from the many2one confirmation dialog into a single _t in order to facilitate the foreign translations of the content closes odoo/odoo#135294 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Pedram (PEBR) authored
Before this commit, if a product was set to be available in the PoS, and also existed in a reward, it was loaded to the PoS twice. This caused issues in _loadProductProduct during the assigning of pricelist items, and could result in missing pricelist information for a product. opw-3487702 closes odoo/odoo#134835 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
Joseph Caburnay authored
The `_computeUnclaimedFreeProductQty` method was not properly computing reward quantities for order type rules. This commit fixes the computation to handle order type rules separately, allowing free product rewards to be granted as expected. The computation now also takes into account which rules were actually used when calculating points. It will ignore any rules that were not used in the points calculation when determining free product rewards. This ensures the rewards match the rules that contributed to points for the order. opw-3492083 closes odoo/odoo#134557 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
Julien Castiaux authored
Go to the form view of mailing.mailing, write "hello " as the subject, insert an emoji, you end up with "hello:)" instead of "hello :)". The problem is that when the input loose the focus, it is automatically trim. Reconfigure the `char_emojis` widget so that is doesn't trim. task-id-3493168 closes odoo/odoo#134519 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Martin Trigaux authored
closes odoo/odoo#135419 Source: Larissa (lman) Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Sep 13, 2023
-
-
Florent de Labarre authored
In case of the user have no access to all account.payment, the record can be deleted. closes odoo/odoo#129253 Signed-off-by:
Olivier Colson (oco) <oco@odoo.com>
-
Anh Thao Pham (pta) authored
Steps to reproduce: - Create an invoice - Select a partner - Add an invoice line (without a product): a default account will be computed - Change the account - Add a second invoice line (with a product) - Change the account - Select another partner The account for the invoice line without a product will be recomputed, while the account for the invoice line with a product will not. The computation of the account should happen when the line is added. If the account has been changed, it should not be recomputed to a default one when changing the partner. The behavior for aml without product should be the same than aml with a product. opw-3474469 closes odoo/odoo#135027 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Touati Djamel (otd) authored
cherry-pick of a4904fb4889c16322494981f5a1be586683704bd Steps to reproduce the bug: - Create a storable product “P1” - costing method: avco - Create a PO: - Add the product “P1”: - Line 1: Qty= 10, price= $50 - Line 2: Qty=1, price= $10 - Confirm the PO and receive the product - Go to purchase → Reporting → Purchase Analysis Problem: The average price is incorrect, the current calculation is: (50 + 10) / 2 = 30 The average should take into account the quantities purchased in each line, And not simply the number of line, so the correct calculation should be: ((10 * 50) + (10 * 1)) / 11 = 46.36 The SQL query is correct, it is when applying the read_group that the calculation is incorrect, we should override it to make a personalized calculation of the average. opw-3136406 closes odoo/odoo#135267 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Thomas Lefebvre (thle) authored
Issue: ------ After registering for an event, you can download the '.ics' file. This file is not translated into the current user's language. Solution: --------- Use the default user language and, if public, use the language selected on the website. A user may wish to have his calendar in his preferred language by using the English website. opw-3193663 closes odoo/odoo#135161 X-original-commit: b06c56b9 Signed-off-by:
Thomas Lefebvre (thle) <thle@odoo.com>
-
Rodolpho Lima authored
When the Wysiwyg is used by website, multiple editable elements are possible, and each of them carry the related record's model and id in the element's dataset. On the other hand, when the Wysiwyg is used by the html field, there's only one root editable element, and such information is not present in the editable's dataset, but in the widget's options object. Before this commit, when saving the content of an html field, modified images were converted to attachments without the correct reference to the record's model and id. This commit makes sure that such information is passed to the route that handles attachment creation. task-3495668 closes odoo/odoo#134705 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Rodolpho Lima authored
Commit [1] added a check for the closest ".o_dirty" editable element in order to define which editable is used for obtaining the model and id reference from its dataset, and also to avoid multiple attachment creation for the same image. But such check for the closest ".o-dirty" element evaluates to null when the Wysiwyg is used by the HtmlField component, as such class is not added to editable when saving/committing changes. This resulted in skipping the attachment creation for modified images. After this commit, attachment creation for modified images is not skipped if an element with the ".o_dirty" class does not exist. task-3495668 [1]: https://github.com/odoo/odoo/commit/e631bff05a3588f3304b75b6a0018b096c13f68d Part-of: odoo/odoo#134705
-
Thomas Lefebvre (thle) authored
Steps to reproduce: ------------------- For example: - add a work permit file to an employee (private information tab); - try to download it before saving; Issue: ------ The old file is downloaded or a traceback occurs if there was no file before. Cause: ------ When downloading, we use the `/web/content` endpoint. We will try to read the record in the backend via `_record_to_stream`. The record is not yet saved in database. Solution: --------- Disable download button if record is dirty. opw-3458842 closes odoo/odoo#134521 Signed-off-by:
Michaël Mattiello (mcm) <mcm@odoo.com>
-
Maruan Aguerdouh (magm) authored
Steps to reproduce: - Install Knowledge App - Create a sub-article and add them as many properties as you want. - Go to search to get the list view and export the article, adding both of the properties field (`article_properties`, `article_properties_definition`). - Now try to import the file we just exported. At this moment this issue affects knowledge properties and crm, leads properties (for reference see: #122817) but the proper fix is still not applied, and since it's implementation is complicated we are going to remove the properties from the export when we tick the "I want to update data (import-compatible export)." until the proper fix is done. opw-3346642 closes odoo/odoo#131568 Signed-off-by:
Stéphane Debauche (std) <std@odoo.com>
-
Robin Lejeune (role) authored
Since the scrollbar was moved from the window to .modal-content at [1], animations inside popups without backdrops would not be working anymore because the scroll was not checked against the right element. This commit fixes this by using the right scroll element's scrollTop. task-3328419 [1] https://github.com/odoo/odoo/commit/cb7cf77 closes odoo/odoo#122622 Signed-off-by:
Outagant Mehdi (mou) <mou@odoo.com>
-
Arthur Detroux (ard) authored
[1] introduced the grid mode and with it a util that reloads lazy images in order to prevent a bug in Chrome which make images disappear. This util read the .src property of the image element. That property is the absolute URL. In order to keep the exact URL that was on the img attribute, one needs to use "getAttribute". This commit does exactly that. Steps to reproduce: - Drop a Image - Text snippet - Drag the image to enter grid mode => At the same time the image is reloaded with the wrong src [1]: https://github.com/odoo/odoo/commit/cc406afcea7bf5846233a9f97a4a8ac5f618f3ec closes odoo/odoo#134019 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Activate analytic accounting Configure a [TEST] product to create a project on order Create a SO with [TEST] Have an expense product [EXP] with reinvoice policy set Create an expense with [EXP] and set as analytic account the one created for the SO and another one Complete the expense flow Check the SO Issue: the expense line was added correctly but the quantity delivered is set to 2 opw-3410712 closes odoo/odoo#130812 Signed-off-by:
Andrea Grazioso (agr) <agr@odoo.com>
-
Dang Van Loc authored
closes odoo/odoo#135246 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Antoine (ande) authored
Current behaviour: When editing a product, try to add a ribbon, it will not save. Steps to reproduce: 1. Go to website 2. Go to Shop 3. Click on Edit (top right) 4. Select any product 5. At Badge: Select Sale 6. (badge is visible) 7. Click on Save 8. (badge is gone) Cause of the issue: The element was not considered "dirty" opw-3487397 closes odoo/odoo#135008 Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com>
-
Rodolpho Lima authored
Before this commit, some actions related to link creation and edition were not tested by the LinkTools tour. This commit adds steps to the mentioned tour in order to avoid regressions of the issues fixed in the referred task. task-3284649 closes odoo/odoo#118676 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Rodolpho Lima authored
When changing a link's content, its URL (href attribute) might change (if the new label is a valid URL), due to a mechanism in OdooEditor. Before this commit, when a change in the link's content leads to a href change: - if the LinkTools is opened, the URL input field would become outdated and display an incorrect URL. - likewise, if the popover is shown, its content and position would be outdated (possibly covering the link's new content). This commit makes sure both the LinkTools URL input field and the popover stay up-to-date if a link's content or href changes. task-3284649 Part-of: odoo/odoo#118676
-
Rodolpho Lima authored
If a link's content is equivalent to its URL, two problems can arise when its URL is changed via the LinkTools: - The link's content becomes outdated, showing a different URL; - On LinkTools destroy, the OdooEditor mechanism that updates a link's href on label(content) change will update the href according to the old label, effectively reverting the changes in the URL. This commit avoids such issues by syncing the label with the URL input field in such cases. task-3284649 Part-of: odoo/odoo#118676
-
Rodolpho Lima authored
Before this commit: - URLs like "domain.com/@/page" were incorrectly detected as an email URL by Link(Dialog/Tools), - switching from an email URL to a http URL with the Link(Dialog/Tools) was not possible (URL remained prepended with "mailto:"). This commit improves email detection from simply looking for a "@" to something slightly more robust, and makes switching between 'http' and 'mailto' links possible. task-3284649 opw-3245501 Part-of: odoo/odoo#118676
-
Rodolpho Lima authored
Typing a URL + SPACE transforms the URL into a link. Before this commit, email URLs were incorrectly prepended with 'https://'. Because it is not desirable to automatically transform email URLs, this commit disables link transformation for email URLs, leaving it only active for http URLs. task-3284649 Part-of: odoo/odoo#118676
-