- Nov 28, 2022
-
-
Antoine Guenet authored
Columns added with the "columns" Powerbox commands should be aligned with the editable element's bounds. task-3001988 closes odoo/odoo#105208 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Younn Olivier authored
Before this commit, the tooltip content of a tour had a font-size set in rem. As its container dimensions were computed using the root element font-size, these dimensions were not correct if the tip was inserted in a document with another root element font-size. This was leading to a bug after [1] added an iframe to edit the website: the backend and frontend root elements font-size are different and the containers of tips targeting frontend elements were clipped. This commit fixes the tooltip content font-size in px (with the font-size used to compute the container dimensions), so that it can be placed in iframes with a different root element font-size. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-3035156 closes odoo/odoo#104039 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Younn Olivier authored
Before this commit, the main website_slides tour, slides_tour, was broken after [1] introduced the WebsitePreview client action. This commit adapts it to work with an iframe. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-3035156 Part-of: odoo/odoo#104039
-
Younn Olivier authored
Before this commit, the website homepage tour was starting with an unresolvable "Wait for the editor to be started", useful only for tests. This commit removes that technical step for user tours. task-3035156 Part-of: odoo/odoo#104039 Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
qsm-odoo authored
When entering edit mode, the navbar is hidden. The problem is that since the merge of the website-in-backend feature at [1], it is only not shown via an animation (height 0 + out of screen) but not `display: none`. The tour system thus thinks it is still shown and keeps showing the related tour tips. E.g. with website_sale installed (and no demo data, to have the tours), go on the shop page, there is a tooltip pointing at "+ New", enter edit mode => the tooltip is still there and it even prevents to click on "Discard" to leave the edit mode. This commit fixes the issue by making the navbar `display: none` once the closing animations are finished. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-3082439 closes odoo/odoo#106629 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
qsm-odoo authored
While showcasing your website inside the website application, there is the possibility to hit the escape key to enter fullscreen (hiding the backend navbar outside edit mode and the editor panel during edit mode). There was a problem following this flow: - Go to your website inside your website app - Hit escape to enter fullscreen - Press CTRL-K to switch to another part of the backend => You are now somewhere in the backend, without the navbar (fullscreen) and you cannot exit it. As it was a one-line fix (except for the re-indentation), this commit now allows to exit fullscreen mode wherever we are. Discovered during task-3082439 Part-of: odoo/odoo#106629
-
shsa-odoo authored
Current behavior before fix: In mobile view when we click invite button on events module which loads the snippet, at that time there was a traceback. Desired behavior after fix: Now the snippet gets loaded without any traceback. Task-2994261 closes odoo/odoo#101238 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Romeo Fragomeli authored
Since the Bootstrap 5 migration the "headings" `<h1>`, `<h2>`, ... are smaller than before. This commit, restores the old CSS rules from Bootstrap 4 for reports. Steps to reproduce: * Open Sales * Select a quotation * Print the Quotation (using Print dropdown) => BUG title is smaller than the old version of Odoo (e.g. Odoo v15) closes odoo/odoo#106668 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
Samuel Degueldre authored
Previously, when calling error handlers, we would give them a new error created by the error service, as well as an `originalError` which is the error that was caught by the error service. In some cases, this error is part of an error chain, eg: errors that happen in the owl lifecycle are wrapped in an `OwlError`, so that when an error occurs in a callback passed to a lifecycle hook, the position where the hook was called to register the offending callback is part of the stack trace. In practice, most error handlers only care about the error that caused the entire error chain (the root) when deciding whether they should handle the error or not, eg: an RPCError should be handled by the rpc error handler, regardless of whether it occured in an event handler or in a component's willStart. It already reads the traceback to display on the UncaughtError provided by the error service as this traceback contains the entire error chain stack information and is annotated with source maps by the error service. This commit makes it so that the `originalError` passed to handlers is now the root of the error chain, it also sets the `cause` of the UncaughtError which is passed to handlers as the error that was caught by the error service, so that if a handler needs to inspect the error chain to know whether it can handle the error or not, it can still do that. related to OPW-3069633 closes odoo/odoo#106661 Signed-off-by:
Michaël Mattiello <mcm@odoo.com>
-
Kevin Baptiste authored
The default hours of a time off created from the Day view would be the range of hours that was selected in the calendar view, thus resulting in leaves of half an hour. closes odoo/odoo#106567 X-original-commit: 5155f654420433176abde675bedc4afeeeb45a1c Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Julien Van Roy authored
In Factur-X, there is no way to represent a tax "price_include" because every amounts should be tax excluded. Currently in Factur-X, a line with a tax price_include = True will be incorrectly exported. Indeed, the Factur-X.xml is generated by setting the GrossPriceProduct as the price_unit. In Factur-X, this amount (and the others in the line details) should be tax excluded. Thus, it's wrong to set the GrossPriceProduct as the price_unit. To fix this, the GrossPriceProduct should be the price_unit if no tax price_include = True is set, otherwise, the gross price = price_unit/(1+tax/100). This way, the Factur-X file will be consistent with the norm. Note that the import of a Factur-X xml will thus try to pick taxes with price_include = False, and the price_unit will be tax excluded. If no matching tax with price_include = False is retrieved, a tax with price_include = True is searched, if found, the price_unit is recomputed accordingly. In both cases, the lines subtotals are the same. opw-3032382 closes odoo/odoo#106563 X-original-commit: 9a5ba15c Signed-off-by:
William André (wan) <wan@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
-
Tommy (tong) authored
closes odoo/odoo#106161 X-original-commit: 0ac1fd90 Signed-off-by:
Arnold Moyaux (arm) <arm@odoo.com>
-
Romeo Fragomeli authored
In kanban view, the columns are in a flex container and as there is no specific flex rules on the quick create column and is shrink by default. So when the new column is above the edge of the viewport, it starts to shrink. To avoid this bug we have added the same flex rules has the kanban column. Steps to reproduce: * Open Note * Create many new column => BUG text wrapped when the new column reach the width of the viewport. closes odoo/odoo#106549 Signed-off-by:
Pierre Paridans (app) <app@odoo.com>
-
Patrick Hoste authored
Before this commit when creating a mailing contact with a mailing list opt_out at creation the unsubscription_date wasn't set. Indeed, from the mailing contact view the mailing list uses an editable list that passes all the values at create even when not set contrary to when one update the contact only the changed values are passed. This commit fix this issue. Task-3070852 closes odoo/odoo#106260 X-original-commit: d6758919 Signed-off-by:
Warnon Aurélien (awa) <awa@odoo.com> Signed-off-by:
Hoste Patrick (pko) <pko@odoo.com>
-
Nicolas Bayet authored
Because of css limitation, the child of a parent that define a text-decoration cannot "neutralize" that decoration defined by its parent with a css property (ie. the text-decoration cannot be overridden). When a block define an inline style or any tag that have a class, the method `formatSelection` tries to "neutralize" the style by calling `addNeutralStyle`. As it is impossible to "neutralize" the style for underline nor strikeThrough, there is no method `addNeutralStyle` defined for those properties. Before this commit the method `formatSelection` was crashing because `addNeutralStyle` was not defined. Task-3002123 closes odoo/odoo#106632 X-original-commit: ce068a31 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Jérôme Hellinckx authored
Before this commit: 1. Create PO with quantity 10, confirm (creates receipt-1) 2. Receive 2 quantities on first receipt (receipt-1), backorder (receipt-1 is 'done', creates receipt-2) 3. Receive 3 quantities on second receipt (receipt-2), backorder (receipt-2 is 'done', creates receipt-3) 4. Change quantity to 5 in PO 5. An exception is created on all receipts (1, 2 and 3) In the scenario above, receipt-1 and receipt-2 are partial receipts that are set to 'done'. It is not necessary to create an exception in these receipts when the quantity is changed to less than originally expected in the PO. Since the system checks that the new quantity has to be equal or greater than the received quantities, the already received quantities cannot be impacted. After this commit: The exception is only propagated to the receipts that are not done. e.g. in the example above, an exception appears only in receipt-3. task-2648209 resolves #76297 closes odoo/odoo#106627 X-original-commit: d6fad232 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Florent de Labarre authored
Before this PR Odoo don't pre-search on location. closes odoo/odoo#106604 X-original-commit: 71a3b5b2 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
niyasraphy authored
closes odoo/odoo#104664 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Jinane Maksoud authored
Only active boms should be returned by the domain even if they match a product id. closes odoo/odoo#106608 X-original-commit: 2a73890d Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Donatas authored
closes odoo/odoo#106606 X-original-commit: 3772da47 Signed-off-by:
William Braeckman (wbr) <wbr@odoo.com>
-
Lucas Lefèvre authored
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/f83585f2 [FIX] InternalViewport: compute the actual visible rect of a zone closes odoo/odoo#106578 Signed-off-by:
Pierre Rousseau (pro) <pro@odoo.com>
-
Lucas Lefèvre authored
Module `spreadsheet_dashboard_hr_expense` depends on `hr_expense` but uses the field `sale_order_id` which is only introduced with `sale_expense`. `spreadsheet_dashboard_hr_expense`'s dependencies are wrong. To fix the issue: 1) we remove references to `sale_order_id` in `spreadsheet_dashboard_hr_expense`. Note that it won't be applied to existing databases. The spreadsheet would need to be updated "by hand" by deleting the cells, the filter and the pivot object. 2) we introduce a new auto_install module with the correct dependencies to restore the current dashboard. On the master branch, `spreadsheet_dashboard_hr_expense`'s dependencies is correctly changed to `sale_expense` by odoo/odoo#105148 closes #103899 closes odoo/odoo#104125 Signed-off-by:
Rémi Rahir (rar) <rar@odoo.com>
-
Valentin Vallaeys (vava) authored
There was a typo in the color_field xml not allowing to disable the pop-up in case of readonly. A test validates the feature is active. The color_field now displays the transparent symbol (instead of black color) in case the color is undefined. The product configurator also displays the transparent symbol for undefined non-custom colors. task-3013110 closes odoo/odoo#103478 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Kartik Chavda authored
Before this commit Projects in overtime filter does not return project as expected after project has allocated hours to set on then. This commit fixes by taking allocated hours into account to search for project that are in over time. task-3000817 closes odoo/odoo#106428 X-original-commit: a6d652a85a428a28d3d6eab25e591c08809c2a34 Signed-off-by:
Laurent Stukkens (ltu) <ltu@odoo.com>
-
dbkosky authored
This module implements communication with the fiscal device for submitting invoices to the KRA (Kenya Revenue Authority). The device supported in this module is the Tremol G03. -- COMMUNICATION FLOW SUMMARY -- 1. "Send Invoice To Device" on account move is clicked 2. l10n_ke_action_cu_post triggers a client action, with serialised invoice data. (more details below) 3. The client action uses the 'post_send' function defined in javascript to forward the request to the /hw_proxy/l10n_ke_cu_send endpoint on the proxy server (more details below) 4. The proxy server wraps the serialised data with the appropriate bytes (for instance, a couple of a checksum bytes), and sends them to the device through serial communication (more details below) 5. The data returned from the fiscal device is communicated back in the request. The client action 'post_send' then triggers the 'l10n_ke_cu_response' with an rpc call, with the aforementioned data from the fiscal device (more details) 2. The module l10n_ke_edi_tremol inherits from the account_move model in order to provide methods for serialising the data of the account_move and sending it to the proxy server. Fields have been added to the product template to define the HS Code and HS Name (data which is required by the KRA in some circumstances). A field has also been added to the company defining the address of the proxy server. The fields added on the account move are populated by the data returned by the fiscal device, this includes the device serial number, the invoice number on the device, the URL of the invoice on the KRA web portal, and the date/time the invoice was signed. 3. Communication between the client database and the proxy server is defined using a client action defined in l10n_ke_edi_tremol/static/src/js/send_invoice.js. This allows users who aren't on-premise to communicate with the device, provided the proxy is accessible on the network that the user is on. 4. The proxy server is an intermediary server that should be connected to the tremol G03, and running the IOT drivers from hw_drivers. The driver that supports communication between the proxy server and the fiscal device has been defined in this commit inside of hw_drivers/iot_handlers/drivers//L10nKeEDISerialDriver.py. The proxy server can be run on the IOT box, or on odoo community by running: ./odoo-bin addons-path=.... -d dbname --load hw_drivers --proxy-mode ** all messages are encoded/decoded with cp1251, as defined in the protocol. The company vat code is sent along with the request to compare that sent with that of the device. The 'serial_number' of the device is always returned along with the request, since it is required for the invoice details, and it is retrieved as part of the query to find the registered VAT code on the device. --- DATA and VIEWS --- product_view: adds HS Name, and HS Code on the product product and product template form views. report_invoice: adds to the invoice qweb template such that a section including the fiscal device / KRA details is included at the bottom of the invoice when the invoice is rendered as a pdf. res_config_settings_view: adds makes the proxy address field editable from the config settings. account_move_view: add a tab for the tremol device details and the qr code on the account move form view. The KRA invoice number is also added as an optional field on the account move tree view, and the invoice search view is inherited to make this field searchable too. (l10n_ke) account_tax_report_data, account_tax_template_data: The tax report is defined for Kenya, and tax tags that link to the lines on this tax report are defined on the existing taxes. This allows the classification of the tax, between zero-rated and exempt, during the serialisation. closes odoo/odoo#106653 Task-id: 2950308 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
- Nov 27, 2022
-
-
Florent de Labarre authored
In large database with lot of user, the browser don't respond. closes odoo/odoo#106638 X-original-commit: 0f597b3a Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Odoo Translation Bot authored
-
- Nov 25, 2022
-
-
Walid HANNICHE (waha) authored
Steps to reproduce: - edit RFQ model with studio - add a toggle widget to the product list - activate/deactivate the toggle multiple times on different products Bug: sometimes the element on the widget is undefined when trying to rerender Fix: check the element is defined before trying to render it opw-3013024 closes odoo/odoo#106607 X-original-commit: 1b09a631 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Signed-off-by:
Walid Hanniche (waha) <waha@odoo.com>
-
Antoine Dupuis (andu) authored
When creating draft deferred entries in a reconcilable account, we should not attempt to reconcile them, because only posted entries can be reconciled. closes odoo/odoo#106592 X-original-commit: edaf019e Signed-off-by:
William André (wan) <wan@odoo.com>
-
Guillaume (gdi) authored
In this commit [1] (merged in 16.0) a bugfix has been made in the `removeSlide` function but this one should have been applied on all supported versions because the bug it fixes is present on all versions. The bug it fixes is the following: - Drop a carousel block on a page - Remove the *first* slide => There is no active indicator. Moreover, the bugfix made in 16.0 [1] introduces another error: when a slide is removed from the carousel the indicators are not in a correct state anymore. Following the same steps with the changes of [1]: - Drop a carousel block on a page - Remove a slide => Indicators are no longer consistent with the slides so tracebacks appear during the carousel slides. The list of indicators must have on each element a `data-slide-to` attribute which must reflect the position of the slide (starting with 0). So this commit is to backport the fix from 16.0 [1] to 14.0 and to fix the new bug that [1] introduces. [1]: https://github.com/odoo/odoo/commit/f7055d3dbabfbe471f490bd65c2032f5251f3f37 task-3040931 opw-3051615 closes odoo/odoo#106634 X-original-commit: 16405934 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Guillaume (gdi) authored
Before this commit, the buttons to scroll to the next element might not work if the next element was invisible. Steps to reproduce the bug fixed by this commit: (Note that these steps are only reproducible from 15.0. We decided to merge this fix in 14.0 to be custo-friendly) - Install two languages on a website - Drop a cover block (1), with a height of 100% and a scroll down button - Drop a new block (2) only visible for language B below the block 1 - Drop a new block (3) visible for everyone below the block 2 - Save and go to the site in language A - Click on the scroll down button => No scroll at all while the user expects to scroll to the block visible to everyone (3). This commit fixes that by making the user scroll down to see the next visible element. opw-2967706 closes odoo/odoo#106474 X-original-commit: 076d7ac7 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Thibault Delavallée authored
PURPOSE Overall cleaning of subscription and exclusion management code from portal. SPECIFICATIONS Unsubscribe page uses a custom layout allowing a portal-like behavior for mass mailing without any link to website or portal. However it currently uses the complete backend assets and crashes when trying to display the unsubscription page, due to missing assets, modules, ... When having frontend pages like the one used in mass mailing it should rely on frontend assets with some custom assets if necessary for the page to be correctly displayed. In this commit we choose to use frontend assets like other portal-like pages. Mailing layout now uses the frontend layout defined in web and adds its own subset of assets (mailing_assets). Some custom css is moved or added as well as few tweaks to ensure layouting is globally the same as before this commit. Task-3082546 (Mass Mailing: Fix assets and unsubscribe page) closes odoo/odoo#106595 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Mathieu Duckerts-Antoine authored
When a one2many is used as a search default, its label has to be fetch via a name_get in order to get a correct display of the facet corresponding to that field in the search bar. It turns out that the search model did not wait properly the return of the name_gets before to start to compute the facets. closes odoo/odoo#106575 X-original-commit: 95ef4253 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Signed-off-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Mathieu Duckerts-Antoine authored
- Currently the label of the lines is not limited to the number of characters. When the user gives a name that is too long, the graph will not be displayed. - This commit limits the number of labels, if exceeded it will display as ... closes odoo/odoo#106564 X-original-commit: d4b91b6c Signed-off-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Antoine Guenet authored
When rendering, the form view looks for the element it should autofocus, and defaults to the first text input it finds. This extends that default behavior to the first textarea or contenteditable element. closes odoo/odoo#106537 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Antoine Guenet authored
When rendering a form view that has a truthy `default_focus` attribute, the renderer looks for the element in its tree that has its `name` as `id`. However in the case of `html_field` it couldn't find it since `html_field` failed to apply that `id` to its focusable element (the editable root). This adds the `id` to the editable root when rendering the element in `wysiwyg`, and also directly applies `contenteditable` to it so the `focus` method actually does what we expect it to, even though we are waiting for `HtmlFieldWysiwygAdapterComponent` to be mounted before actually instantiating the editor itself. task-3073096 Part-of: odoo/odoo#106537
-
Romain Derie authored
With commit [1] we refactored the cookies bar to let the user decide if he wants to accept the cookies (and/or only part of it). Before that commit, the `website_cookies_bar` cookie could only hold `true` as value, which now is holding an object like `{"required": true, "optional": false}`. This creates an issue if a user is coming from a previous version with `true` as cookie value because since the refactoring it will crash both in JS and PY because `in` instruction with a boolean value will fail in both languages. The decision taken here is simply to remove the cookie if we face such a case so the user can decide again what he wants (since there is more choices now). It also means that we won't be holding an outdated value in the cookie any longer. [1]: https://github.com/odoo/odoo/commit/2cbda6c98ee947cea1d06c09880eee8c758304a8 opw-3074303 closes odoo/odoo#106476 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Arnold Moyaux authored
This reverts commit 3ebe1185. The code ECC200DataMatrix already exist in reportlab (that is already a dependance). Some differences: - ECC200DataMatrix only supports a Type 12 (44x44) C40 encoded data matrix. (214 alphanumeric characters and 14 to 27% of error correcting rate) - pylibdmtx support more type and add a default to 24x24. So it means a (52 characters and 20 to 35% error correcting rate). It's also smaller to display. We consider the gain too small compare to maintain an extra lib. It also fix blured datamatrix in stock report if they contains too much data. *If you want to test 001234560000000018 is a valid sscc for package closes odoo/odoo#106457 X-original-commit: 00a85de0d43a98a91f9199ccb388140fb79be647 Related: odoo/enterprise#34354 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Arnold Moyaux (arm) <arm@odoo.com>
-
amdi-odoo authored
Purpose ======= Prevents auto save of not dirty forms with text fields on page reload and tab/browser closing. Specifications ============== The text field default value is making Odoo consider the form as dirty even when it's not which triggers auto saving for not dirty forms. Change the text field widget setDirty condition to prevent considering empty textarea string dirty. Typically, if the previous value was false, false and empty string should be considered as the same value. Task-3031570 closes odoo/odoo#106439 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
niyasraphy authored
closes odoo/odoo#106385 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-