- Feb 23, 2021
-
-
Lucas Lefèvre authored
The `mail` module logs bus notifications it does not handle. However, some notifications are not meant to be handled by `mail` and it's perfectly fine. This commit removes the log to avoid useless noise in the console. closes odoo/odoo#66661 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Xavier Morel authored
instead of using ad-hoc weirds closes odoo/odoo#66649 X-original-commit: 9a129ca9 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Qiuyu (QHO) authored
The executing function for FieldCommand should return boolean value to indicate whether the value changed for triggering the re-computation. closes odoo/odoo#66648 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Denis Roussel authored
Do a transfer in two steps with several move lines (e.g.: Vendors => Input => Stock). In the first picking, set quantity = 0 on a single line. Transfer it and say 'No backorder'. In the second picking, set all quantities (you have two move lines confirmed and one canceled). Validate the transfer. The backorder wizard is launched. It should not. closes odoo/odoo#66272 X-original-commit: 25ae2416 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Feb 22, 2021
-
-
Tiffany Chang (tic) authored
Commit e5ab8cf9 missed a use case. Steps to reproduce: - Activiate "Packages" setting in Inventory - Configure an operation type to "Move Entire Packages" - Create a "Planned Transfer" picking with that operation type and add a package to be moved - Turn off "Move Entire Packages" and try set the destination package of the move line to nothing (False). Expected result: Move line has no destination package + package level is deleted as expected. Another bug will still exist due to the design of package_level where if in addition to the above use case, if a different package is used instead of deleting it and "Move Entire Packages" is reactived => final package shown in the Detailed Operations will show all move lines as being part of the same package even though they are not. Data appears to be correct in the database otherwise and a reasonable fix doesn't seem feasible for now so we leave this bug as is. Related to Task: 2418907 closes odoo/odoo#66624 Fixes: odoo/odoo#66542 Fixes: odoo/odoo#66517 X-original-commit: a73505dd Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Nicolas Lempereur authored
Scenario: - go to /slides and start editing the page - change the position of background banner - save => traceback Why: The code for pan tool duplicates the target element in an overlay. In the given use case, it means a node with .o_editable class is created that will cause an error when saving because the code expect the cloned element to be an editor (in `RTEWidget.save()`) but it is not (and is eg. missing `.data('options')`). opw-2427560 closes odoo/odoo#66639 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Adrien Dieudonne authored
Before this commit, 'hours' was on the next row instead of the same line. closes odoo/odoo#66628 X-original-commit: 6820eef1 Signed-off-by:
Pierre Paridans <pparidans@users.noreply.github.com> Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
nie authored
Steps: - Install sales,payment - Go to Sales - Create a quotation - Click Actions > Generate a Payment Link - Browse the link in a private window - Pay Bug: The transaction is not linked to the sale order in the link table `sale_order_transaction_rel` Explanation: When not connected, the user doesn't have the rights to read the order. This leads `order_id` to be set to `None`: https://github.com/odoo/odoo/blob/d2f3c9e7975188753fa17c06db3fc5c73c773944/addons/payment/controllers/portal.py#L177-L178 When paying without `order_id`, the app is not able to make a link with the transactions: https://github.com/odoo/odoo/blob/d2f3c9e7975188753fa17c06db3fc5c73c773944/addons/payment/controllers/portal.py#L276-L277 This raises problems such as not being able to capture an amount as seen here: https://github.com/odoo/odoo/blob/d2f3c9e7975188753fa17c06db3fc5c73c773944/addons/sale/views/sale_views.xml#L254-L257 If we ensure a `partner_id` is present, using `sudo` here shouldn't be a problem as the data is protected by the token. Everything we get from `order_id` should already be in the URL. opw:2451564 closes odoo/odoo#66616 X-original-commit: f1f73fd2 Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
Andrea Grazioso (agr-odoo) authored
- Have a storable product with 3140.0 quantity on hand - Make a sale order for 3106.40, confirm and validate delivery - Reserved quantity will be 3106.40 - Make another sale order for 33.60, confirm and go to delivery - Reserved quantity will be 33.59 because of a rounding issue when calculating the available quantity opw-2449732 closes odoo/odoo#65453 Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
Andrea Grazioso (agr-odoo) authored
- Go to the website - Drag a "Tabs" block on the page, you will have 3 example tabs - Click on the tab "Contact" and drag in the block "Image Gallery" - Add multiple images to the image gallery - Click on one of the other tabs so that the image gallery is hidden - Save The image gallery do not have the thumbails anymore. This occurs because when the carousel-indicator is hidden, jquery is not able to fetch its real length, so no icons are added. opw-2438513 closes odoo/odoo#66197 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Benjamin Frantzen (bfr) authored
Before this commit, in some cases the attachment of the Belgian EDI might not exist any longer when printing the pdf, which caused a crash when trying to embed it into the xml. closes odoo/odoo#66588 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
Stefan Rijnhart authored
closes odoo/odoo#66505 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- Feb 18, 2021
-
-
nie authored
Steps: - Login as an admin user - On a fresh branch install event_crm - Give a "test" user access rights of "Own Document only" in the "Sales" app, nothing in "Events" - Assign any lead to "test" user - Login as "test" user and try to access your own leads Bug: Error: While parsing modifiers for button: for modifier "invisible": Unknown field registration_count in domain Explanation: The button `event_registration_action_from_lead` tries to access event registrations even if the user doesn't have access to events. opw:2462127 closes odoo/odoo#66425 Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
- Feb 17, 2021
-
-
Aaron Bohy authored
Let's assume the following scenario: - have an action in target new (e.g. a form view) - in the dialog, have an action/object button with confirm attribute - when clicking on that button, a confirm dialog opens - if validated, the following action returned by the server is again an action in target new Before this commit, the confirm dialog remained in the DOM. This issue occurred because it's parent wasn't correctly set (wrong use of `this`), so when the first dialog was destroyed, the confirm dialog wasn't automatically destroyed in turn. OPW~2440712 closes odoo/odoo#66345 X-original-commit: 2016fe31af970976775c9df160a31abfbec742ba Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com>
-
Mohammed Shekha authored
before this commit: when there is only one page in the notebook tag and there is a boolean field in form to show/hide that notebook page based on invisibility attrs, if we toggle boolean field notebook hides, that's OK but when we toggle boolean field again then notebook page is displayed but it is not active and due to that content of notebook page is not displayed. after this commit: when there is only one page in notebook and it has attrs for invisibilty, when we toggle boolean field to hide/show notebook page then notebook page as well as content is toggled. task-2449053 closes odoo/odoo#66338 X-original-commit: a0b5ecd3 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Feb 21, 2021
-
-
Odoo Translation Bot authored
-
- Feb 19, 2021
-
-
xO-Tx authored
Context: 1) Edit mode 2) Click on anchor edition button of website form submit button 3) Traceback occurs The "focus" triggered on $editable element in editor's 'getLinkInfo()' discards user's text selection on submit button, as a result, 'range.create()' method returns null since no selection is found. Note: the bug only occurred in Chrome. Note 2: [1] apparently tried to solve the same issue but the fix was not solving it correctly, at least not in all cases. [1]: https://github.com/odoo/odoo/commit/da14e4449e5e318eb72e1b9f268fb797adb0c6a6 opw-2443441 closes odoo/odoo#66552 X-original-commit: d2f3c9e7 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Laurent Smet authored
closes odoo/odoo#66543 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Laurent Smet authored
This field shouldn't be visible on the view for 'base' repartition lines. closes odoo/odoo#66541 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Andrea Grazioso (agr-odoo) authored
Open POS, add something to the order, go to checkout, add payment, double click on validate js error will popup opw-2429523 closes odoo/odoo#66046 Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
Nicolas Lempereur authored
Scenario: - start editing background position - press TAB key - press CTRL + Z => traceback Why: Restoring a snapshot with CTRL Z can send a click event with target not wrapped in a jQuery object which was not expected by the code. reported in https://github.com/odoo/odoo/pull/66462#issuecomment-782025417 opw-2423445 closes odoo/odoo#66540 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Adrien Widart authored
When printing a draft invoice, it raises an error. The error comes from fix #65320: the latter registers the printed invoice as main attachment, but this needs to be done only with posted invoices. OPW-2427247 closes odoo/odoo#66526 X-original-commit: 192e128e Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com> Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
JordiMForgeFlow authored
closes odoo/odoo#66531 X-original-commit: 7f8ff150 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
JordiMForgeFlow authored
Currently, the quotation amount field added in the CRM Sales Teams Kanban view is overflowing the kanban card once the number is too large. The fix adds the class text-truncate in the corresponding div to avoid the overflow. Notice that this class is the one already used in the parent view implemented in the CRM module, for the other amount fields. X-original-commit: 14915f4b
-
- Feb 18, 2021
-
-
Xavier Morel authored
closes odoo/odoo#66439 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
qsm-odoo authored
Adapt [1] to be a bit more robust. [1]: https://github.com/odoo/odoo/commit/eb9373522628fa01c3503fa802ded23adc1cbe1f closes odoo/odoo#66501 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Nicolas Lempereur authored
If a field is sanitized, a6e2b484 would hide the video button because the video does not show in backend. It is better for the consistency but if the field appear in frontend, the video would still show so we prevent something that worked (but is very not user friendly when editing in backend). This changeset go back to the previous behavior (keeping the code simplification), at one point there should be a fix so at least when editing we see the video (currently we see an empty div in given conditions). opw-2463746 closes odoo/odoo#66449 X-original-commit: 73f57819 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nasreddin (bon) authored
Issue - Install "Sales" module - Go to settings and activate "Product Configurator" feature - Create a product X with mutilple color (variants) - Create a quotation - Add product X (Product Configurator should open) - Hover any color Popup with color name does not appear. Cause 'title' attribute value is removed. Solution if element have 'value_name' data attribute, set it back as title else set no title. opw-2438704 closes odoo/odoo#66464 X-original-commit: fc7ef284 Signed-off-by:
bon-odoo <nboulif@users.noreply.github.com>
-
Nicolas Lempereur authored
Scenario: - start cropping of an image - press TAB key - do CTRL + Z => now the image cropping tool are inside the page and there is no way to remove them. Why: The image crop tool was added inside the editable elemnt, so if we did an action that changed history the cropping tools are saved in the snapshot and going back to it will add them without any code handling their removal. opw-2394877 opw-2423445 closes odoo/odoo#66462 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nicolas Lempereur authored
Enter keypress browser event were removed in 3c372d1d. It was reintroduced in text fields with d2f024d2 and in source mode of html field with b10ca1f6. When doing ENTER in the editor, we do our special case of ENTER (eg. it will split the container in two and have other custom behavior) but when doing SHIFT+ENTER we let the browser handle it and add a normal newline. With the "Enter" prevention, SHIFT+ENTER did not work. opw-2463746 closes odoo/odoo#66442 X-original-commit: 27b84138 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Martin Trigaux authored
When genrating an attachment in a mail message (e.g. the pdf attached to a confirmation email), the filename was not translated into the language of the recipient (unlink the email content). The variable `template` has the contact language in the context while `self` contains the language of the user executing the action. Fixes odoo/odoo#66420 closes odoo/odoo#66441 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Feb 17, 2021
-
-
Goffin Simon authored
This commit ba32244c introduced an error when validating pickings or reconciling closes odoo/odoo#66348 X-original-commit: b20e6896 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Feb 18, 2021
-
-
Christophe Monniez authored
In some situations, like during tests on runbot, the data-dir location may vary. With this commit, the `data-dir` CLI argument is added to the test_module_operations script. closes odoo/odoo#66422 Signed-off-by:
Adrian Torres (adt) <adt@odoo.com>
-
Nasreddin (bon) authored
*: google_recaptcha, website_form Issue - Install 'Ecommerce' module - In settings, fill the "reCAPTCHA: Easy on Humans, Hard on Bots" option with random wrong site key and secret key - Open your ecommerce (go to /shop ) - Add any product to cart and and open cart - Activate "Customize -> Extra Step Option" - Process to "Extra Info" step - Click on next Stuck at this step since next button does not react. Cause There is an error due to re-captcha feature that does not allowed to go to next step. The second issue is that the error is not displayed because missing message area in form. Solution Do not check recaptcha if 's_website_form_no_recaptcha' class present in form. Add span 's_website_form_result' to display error messages. Replace 'public' by 'site' in error message to fit google 'field' name. opw-2456098 closes odoo/odoo#66382 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider a customer C1 with email address A1 and phone P1 - Let's consider a project PR with C1 as customer - Let's consider a service product P with: - Milestones (manually set quantities on order) as Service Invoicing Policy - Create a new project but no task as service tracking - PR as project template - Create a sale order SO with C2 as customer with A2 as email address and P2 as phone - Confirm the SO Bug: The email address and phone of C2 were changed into A1 and P1 instead of keeping A2 and P2 opw:2439459 closes odoo/odoo#66307 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Feb 15, 2021
-
-
Anh Thao Pham (pta) authored
- Install sale_timesheet and hr_expense - Create a Service Product with "Create a task in sales order's project" as Service Tracking (i.e. Service X) - Create a Product with "Can be Expensed" and "At cost" as "Re-Invoice Expenses" (i.e. Expense X) - Create a SO with Service X (i.e. Unit Price: 50.0) and confirm it - Go to Expenses and create an Expense: * Product: Expense Y * Unit Price: 25.0 * Customer to Reinvoice: [select the created SO] - Create Report, Approve and Post journal entries - From SO, create an Invoice (Service Y + Expense Y) and confirm it In Project Overview, the expense is computed in Other Revenues and Re-invoiced costs. Therefore, the amount of the expense is added twice in the Profitability total. In Project > Reporting > Project Costs and Revenues, for Project linked to SO, Untaxed Amount Invoiced and Untaxed Amount Re-Invoiced are also computed in Other Revenues. opw-2444237 closes odoo/odoo#66186 Signed-off-by:
Anh Thao PHAM <kitan191@users.noreply.github.com>
-
- Feb 18, 2021
-
-
Laurent Smet authored
Issue - Install "Accounting" module - Create a new bill : - Set vendor - Set no payment reference - Set a bill reference - Add products to bill - Confirm and click on Register Payment Memo field has no value. Cause The memo field is based on lines name. Lines name is computed in `_onchange_payment_reference` and depends only on payment_referecence. Solution If no `payment_reference`, fallback on `ref` to set line name. opw-2440389 closes odoo/odoo#66158 Co-author: nboulif <bon@odoo.com> X-original-commit: 10274903 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
Romeo Fragomeli authored
Before this commit, the 'mounted' method of the ControlPanel in the client report action was called twice. It happened because the client report action updated the ControlPanel before being actually mounted, so mounted was called once when the traceability report was mounted, and once when the update was applied. Ideally, this should not be an issue (this isn't an issue with owl). However, in Odoo, we mix layers of Owl Components and legacy widgets. In these situations, the above scenario isn't properly handled (and can't be). As a consequence, in mobile (enterprise), it crashed because an handler bound in mounted (thus twice) was only unbound once. This commit avoids the issue as the update was actually useless. Steps to reproduces (Mobile): * Go to Inventory (Stock) * Open the "burger menu" * Select "Products" -> "Products" * Select one product in the list * Click on the "Forecasted" ("stat button") * Select one "SO line" (sale order) to go to the form view * Go back to the previous view using breadcrumb * Optional: Go to another app if the screen can't scroll (e.g. go to Sales) * Scroll the view => Bug closes odoo/odoo#65522 Related: odoo/enterprise#16033 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
Romeo Fragomeli authored
Before this commit, the 'mounted' method of the ControlPanel in the traceability report was called twice. It happened because the traceability report updated the ControlPanel before being actually mounted, so mounted was called once when the traceability report was mounted, and once when the update was applied. Ideally, this should not be an issue (this isn't an issue with owl). However, in Odoo, we mix layers of Owl Components and legacy widgets. In these situations, the above scenario isn't properly handled (and can't be). As a consequence, in mobile (enterprise), it crashed because an handler bound in mounted (thus twice) was only unbound once. This commit avoids the issue as the update was actually useless. Steps to reproduces (Mobile): * Go to Manufacturing (MRP) * Open the "burger menu" * Select "Products" -> "Lots/Serial Numbers" * Select one product in the list (unfold group first) * Click on the "Traceability" ("stat button") * Select one line to go to the form view * Go back to the previous view using breadcrumb * Optional: Go to another app if the screen can't scroll (e.g. go to Sales) * Scroll the view => Bug
-
- Feb 15, 2021
-
-
Nasreddin (bon) authored
Solution is different in the case of the foward-port, see bellow. Issue - Init an instances of Odoo v13.0 'A' and v14.0 'B'. - Install "Accounting" app on instance A & B. - Set your email server on instance A & B. - Activate 'External email server' in settings of instance A. - Set an email alias for "Vendor Bills" on instance A. - Send a "Customer Invoice" from instance B to alias of instance A. - Fetch for new mail (in case new vendor bill don't appear) on instance A. - Open the new Vendor bill on instance A. Data are not parsed from pdf attachment. Cause No managing all attachements types: - list(tuple(str,str), tuple(str,str, dict) or int) attachments : list of attachment tuples in the form ``(name,content)`` or ``(name,content, info)``, where content is NOT base64 encoded - list id attachment_ids: list of existing attachement to link to this message - Should only be setted by chatter - Attachement object attached to mail.compose.message(0) will be attached to the related document. Solution In this fw-port, we override `_message_post_after_hook` instead of `_message_post_process_attachments` because the later is also called from portal and with sudo rights. We don't want to update invoices with files coming from portal, since it could cause a security issue. Also, because of the way attachments are parsed for invoice, this could cause the OCR not to work any longer because at the time `_message_post_process_attachments` is called,`move.message_main_attachment_id` is not set yet, and OCR relies on it. The solution is rather to override `_message_post_after_hook` because it ensures that all the attachments have been properly treated and are present in `new_message.attachment_ids`, and `message_main_attachment_id` is properly set. opw-2411002 closes odoo/odoo#64286 X-original-commit: 9076b1ba Signed-off-by:
bon-odoo <nboulif@users.noreply.github.com> Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-