- Feb 01, 2021
-
-
Christophe Monniez authored
When using the windows installer in French language, the `Hôte` label used to configure postgresql server does not display correctly. The LangString documentation does not specify how to use the special characters but after some tests, specifying a BOM for the nsi file seems to be the way to go. closes odoo/odoo#65365 X-original-commit: 3d0871d1 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
Romain Estievenart authored
Steps to reproduce: 1. Go to Project App 2. Open and edit a task 3. Click on Customer => search more 5. Click on "Filters" 6. Click on "Group by" => The "Filters" and "Group by" dropdown are open at same time => bug Since odoo/odoo@e4f87710e16357f24f388159a7b1e82eccda598a, we added a way to prevent bs and owl dropdown to be open in the same time. But when the web-editor is present, the CSS selector used to match the opened modal ("search more" in this case) conflicts with the DOM created by the web-editor (modals identified by the classes: .web-editor, .note-picture-dialog, .note-link-dialog, .note-help-dialog). To avoid this conflict, this commit uses a more restrictive CSS selector to match only the first (active) opened modal (as web-editor doesn't attach its modals at the root of the body). closes odoo/odoo#65274 Signed-off-by:
Pierre Paridans <pparidans@users.noreply.github.com>
-
John (jol) authored
A former constraint made it impossible to import bank statements with lines = 0. The task #2403369 removed that constraint. But the user could no longer reconcile Bank Statement Lines = 0. Drawbacks : - The user is then blocked when setting a lock date. - The bank statement remains endlessly in Status Processing A previous fix made a bank statement line = 0 immediately reconciled. Closes task #2449127. closes odoo/odoo#65269 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
nie authored
Steps: - As admin, go to Settings > Users & Companies > Users - Edit Mark Demo (demo) - In Human Resources > Attendances, select Manual Attendance or blank - As demo, go to My Profile - Click the smart button showing the hours worked for the last month - Remove all filters Bug: The demo user, who hasn't the rights to see the other employees attendances, can see them. Explanation: Every user must have the right to read attendances in order to see their own attendances. Not giving the users the read rights in the security record rule prevents the record rule from being applied when reading attendances. This makes the read access rights the only rule and allows everyone to see the attendances of the others. This commit also fixes the default selected employee when going to the attendances tree view on these paths: - User - Employee - User > Employee In fact, sometime, `active_id` is the ÌD of the user and not of the employee. This leads to incorrect results since another employee's attendances are shown. Finally, this commit prevents users from creating attendances from other apps since only attendance officers and above can have access to the creation form within the Attendances app. opw:2440117 closes odoo/odoo#65330 X-original-commit: b3247c81 Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
Anh Thao Pham (pta) authored
- Go to Point of Sale > Configuration > Settings & enable "Cash Rounding" - Configure POS: * Enable Invoicing * Enable "Cash Rounding" and "Only on cash methods" * Select 0.05 HALF-UP Rounding Method - Start POS session - Select a Product and change its Price to a value that should be rounded (i.e. $ 16.51) - Select a Customer - Proceed to Payment - Enable Invoice - Select Bank Payment method - Validate No rounding is applied as expected, but the rounding line still appears on printed Invoice. opw-2449222 closes odoo/odoo#65317 X-original-commit: b0eb0fe0 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com> Signed-off-by:
Anh Thao PHAM <kitan191@users.noreply.github.com>
-
Olivier Dony authored
This patch complements the previous one by ensuring that any `cache_invalidated=True` flag inherited from the master process (pre-fork mode) cannot trigger a cache clear. This could occur when the first request is served, because the flag was never clear in the master process, which never server any request. At the end of `check_signaling()`, the local cache has either been cleared because a (real) increment of the cache sequence was detected, or it is considered still valid. The final state of the `cache_invalidated` flag should reflect this, by being `False`. closes odoo/odoo#65303 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
Olivier Dony authored
During loading, the registry clears all `ormcache` data multiple times, in order to ensure consistency with the newly loaded module data. Since 083c70bb, this was done by calling `self.clear_caches()`, with the side-effect of signalling to all other worker processes that the cache *needs* to be invalidated, which is actually untrue. If the other workers have any reason to reload their own registries, they will also clear their own cache in the process - there is no need to forcefully invalidate it globally. One could think that combining the pre-fork mode with the `-d <db>` parameter would mitigate this issue, by making all workers inherit from a fully loaded registry, In reality it doesn't work, because they also inherit from the `cache_invalidated=True` flag, that was never cleared in the master process. So despite having a fully loaded registry, the newly forked workers will signal a cache invalidation upon serving their first request. Further, in a multi-tenant setup with large numbers of databases, registries may be recycled and loaded much more frequently than new workers are starting, due to the limited registry LRU, amplifying this effect a bit. ~~ This patch directly clears the cache LRU without going through `clear_cache()`, avoiding setting the `cache_invalidated` flag of the registry, and thus not signalling to other workers. This is similar to what was being done before 083c70bb, where the LRU was dropped like all other lazy properties.
-
Nicolas Lempereur authored
When a user on website sends livechat feedbacks: - Good -> send an average smiley
- Average -> send ?? instead of smiley This is because in e4a4ffb9 value of good ( ) was changed from 10 to 5, and value for average ( ) was changed from 5 to 3, but it was not reflected in one part of the code. opw-2447246 closes odoo/odoo#65328 Signed-off-by:Nicolas Lempereur (nle) <nle@odoo.com>
-
- Jan 29, 2021
-
-
Antoine Prieels authored
We should open the cashdrawer when paying with a non cash payment method if change should be returned to the customer. Use case: The customer wants to pay 10€ more with his card to get 10€ in cash in return. closes odoo/odoo#65260 Taskid: 2449312 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
- Feb 01, 2021
-
-
Martin Trigaux authored
All fields not provided default to 0, so the the exact values are `%Y-%m-20 00:00:00` - `%Y-%m-22 00:00:00`. Because this is only 2 days it can entirely overlap with a week-end (e.g. 2021-02-20/21), leading to `number_of_days` computed to 0 and triggering an error at confirmation (`"The following employees are not supposed to work during that period"`). Change familly trip as the same issue would occure in May 2021 closes odoo/odoo#65314 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jan 31, 2021
-
-
Odoo Translation Bot authored
-
- Jan 29, 2021
-
-
Anna Janiszewska authored
closes odoo/odoo#65295 X-original-commit: 72c5d63e Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jan 30, 2021
-
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider a user U with fr_BE as lang - Log as U and active developper tool - Go on any record, click on debug button - Select Technical translation - Choose a translation and click on the transifex url button Bug: The URL contained the iso code fr_BE but this iso code didn't match any code in Transifex. From: https://www.transifex.com/odoo/odoo-14/languages/ We can see that the only iso codes with a '_' are: 'zh_CN', 'zh_TW', 'pt_BR' opw:2448533 closes odoo/odoo#65152 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com> Co-authored-by:
mart-e <mat@odoo.com>
-
- Jan 29, 2021
-
-
Arnold Moyaux authored
Usecase to reproduce - Create a KIT with COMP A (15$) COMP B (25$) - Enable Margin on SO - Set the cost on the KIT with compute cost button (40$) - Create a quotation with the KIT (cost is correct 40$) - Confirm the quotation -> Cost is updated to 15$ (first component) It happens because the function to compute the average price doesn't expect a kit and compute everything from the valuation layer of first component opw-2413246 closes odoo/odoo#65292 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Laurent Smet authored
closes odoo/odoo#65273 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Christophe Monniez authored
As Fedora 32 was the current release when Odoo 14.0 was released, this should be the supported version. Also, a few old libs were still in mentioned in the packaging files. They flew under the radar because they never broke the packaging. This is not the case anymore, those libs disappeared from the Fedora repos. It seems that pyparsing is not used anymore since 5a1c06a1 and thus can be safely removed from `requirements.txt` too. pychart is not used anymore since 3425752e. While at it, remove mix of tabs and spaces in package.dffedora, also add missing packages to avoid installation at test time. Now that I started down the slippery slope, also removed some `-dev` packages in package.dfsrc as wheel's are available. Finally, the rpm install script now detects the python ABI version in order to avoid update this file at each ABI change in Fedora. Fixes #63719 closes odoo/odoo#65224 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Jan 28, 2021
-
-
Laurent Smet authored
When the suspense account is not reconcilable, 'suspense_lines.reconciled' always gives 'False' leading to a not reconciled statement line. closes odoo/odoo#65211 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
- Jan 24, 2021
-
-
msteinfeld authored
closes odoo/odoo#64972 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jan 20, 2021
-
-
Dario Bösch authored
closes odoo/odoo#64810 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jan 29, 2021
-
-
Munaf Khan authored
With commit[1], we introduced a feature that from the sales team, we can see the overdue opportunities for a particual teams. However, the filter that we use for related action which is supposed to show overdue opportunities is not not added, and the filtration is not working as expected, showing us all the opportunites for a team. This commit fixes the issue by adding the invisible filter with proper domain set within opportunities' search view and thus enables us to filter overdue opportunites. commit[1] - https://github.com/odoo/odoo/commit/1da63f0ab0fb4212bee46f960c6bbe8ca9251cac TaskID : 2323612 closes odoo/odoo#65248 X-original-commit: 68577d32 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Jan 26, 2021
-
-
nie authored
Steps: - Go to Settings > Companies > Manage Companies - Create a company (1) with a different currency than the one you're in - Go to inventory > Products > Products > Create a product (2) - Storable Product - Cost: 10 - Click Update Quantity - Create a new quantity line with 1 in On Hand Quantity - Switch to company (1) - Go to Inventory > Products > Products > Edit product (2) - Storable Product - Cost: 15 - Click Update Quantity - Create a new quantity line with 1 in On Hand Quantity - Go back to the product - Click the "Forecasted" smart button Bug: Traceback here: https://github.com/odoo/odoo/blob/47bfdf0592a5dd93870ca1a9da326351d70087bb/addons/stock_account/report/report_stock_forecasted.py#L17 ValueError: Expected singleton: res.currency(2, 1) Explanation: The amount is the sum of the `stock.valuation.layer`s of a product across all companies and these companies may have different currencies. This commit scopes the computation of the amount inside the company of the current warehouse. Also the `stock.quant` values displayed in the "On Hand" report are not correct for the other companies when displaying their data by selecting all the checkboxes in the global company dropdown. This commit also fixes the amounts in the On Hand view by using the standard price per company and attributing the correct currency to the `stock.quant`. opw:2444593 closes odoo/odoo#64942 Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
- Jan 28, 2021
-
-
Achraf (abz) authored
What are the steps to reproduce your issue ? 1. Install project 2. Open any project 3. Switch to list view and display by Stage 4. Open categoryA and select some records 5. Open CategoryB What is currently happening ? The button create is not displayed What are you expecting to happen ? Don't hide create button opw-2423701 closes odoo/odoo#64136 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Antoine Prieels authored
By default, the `ls` command has a width limit. Everything after this limit will be split on a second line. This happened when listing the modules present on the Iot Box in v12. The list of modules was split accross two lines, the modules on the second line were then not loaded when starting the Odoo service. closes odoo/odoo#65226 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
Benoit Socias authored
Before this commit the Dynamic Products snippet was displaying a message box instead of its content until its template and product category were selected. After this commit the Dynamic Products snippet is automatically configured on drop with the first available template and the first available product category. The message box only appears if no product category exists yet. Also an "All Products" category was added as first element of the list to make the snippet usable before categories are defined. task-2439295 https://github.com/odoo/odoo/pull/64982 closes odoo/odoo#64982 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Benoit Socias authored
Before this commit dynamic snippet and dynamic carousel were always available. To reduce the number of available snippets for new users it was decided to make these two snippets available only in debug mode. After this commit dynamic snippet and dynamic carousel are available only in debug mode. task-2446024 https://github.com/odoo/odoo/pull/64982
-
- Jan 25, 2021
-
-
Martin Trigaux authored
This is the javascript equivalent of `_("Foo %s" % bar)` https://www.odoo.com/documentation/master/reference/translations.html#variables closes odoo/odoo#65004 Related: odoo/enterprise#15936 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Martin Trigaux authored
Since the issue of the synchronisation stuck at point_of_sale a few weeks ago, it appears older translations were never synchronised. Forcing a tx pull -f on some modules
-
- Jan 28, 2021
-
-
Josse Colpaert authored
This fixes potential problems with the caches we encountered on certain runbot tests for l10n_pe_edi closes odoo/odoo#63337 Related: odoo/enterprise#15297 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Benjamin Frantzen (bfr) authored
- Some errors will never get fixed until user intervention, it doesn't make sense to run the CRON when there is such error. + some small improvements and esthetic changes - When we are in a CRON, we need to commit the changes between each call to web-service to avoid loss of data. - Small refactor of edi.document prepare_jobs and process_jobs - Added an arbitrary key to create the batches.
-
- Jan 25, 2021
-
-
Nhomar Hernandez authored
-
Nhomar Hernandez authored
-
Josse Colpaert authored
The name of your first customer invoice is a configuration that determines the next ones. The problem before is that when you confirmed a first invoice, you could not alter its document number anymore. With this commit, as long as it is the first invoice, you can still change the document number when you reset to draft.
-
- Jan 28, 2021
-
-
Nicolas Lempereur authored
Office Outlook doesn't take into account the [style] attribute, and it doesn't manage width/height in percent value. This commit set width/heigth attribute in pixels and also always set the width/height in style attribute (keeping them in the original unit and setting them to auto if not present). This is a reintroduction of 2015 commit bdf58adb opw-2447756 closes odoo/odoo#65212 X-original-commit: c51762a7 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nasreddin (bon) authored
Issue - Install "Contacts" and "Studio" modules - Go to "Contacts" and switch to Studio - Go to "Reports" tab - Create a new report - Select "External" layout Header and footer are missing on report. Cause Header is displayed if 'company' has a value. However, here, we only check if 'company_id' is available in current record fields, not checking if also set. Solution Check that 'company_id' is set on current record, else, fallback on 'res_company'. opw-2443234 closes odoo/odoo#65202 X-original-commit: 7c451004 Signed-off-by:
bon-odoo <nboulif@users.noreply.github.com>
-
Benjamin Vray authored
Before this commit, dropzones were created around invisible elements (e.g. the snippet popup). So we had 2 dropzones instead of one at some locations. After this commit, we avoid creating dropzones around elements that must not have dropzones. task-2312878 closes odoo/odoo#65198 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Jan 27, 2021
-
-
Benjamin Frantzen (bfr) authored
- added code to DE account.tax.report.lines records - generic Kz generation (based on code) - support for quarter period - added tax nr for de companies - better xml generation Backport of https://github.com/odoo/odoo/pull/56075/ closes odoo/odoo#65165 X-original-commit: 1b57cf25 Related: odoo/enterprise#15991 Signed-off-by:
Josse Colpaert <jco@openerp.com> Signed-off-by:
bfr-o <bfr-o@users.noreply.github.com>
-
- Jan 21, 2021
-
-
Andrea Grazioso (agr-odoo) authored
Create a product with variants attributes that NEVER create variants. Configure Variants to add some extra-prices to some variants. In POS settings activate "Product Configurator" and "Advanced Pricelists", add the public pricelist and one that applies 5% to the product. Open a session and select the product created (say price = 1$) Select the attributes, the extra-price is added to the product (say the total price now is 2$). Change pricelist from public to 5% and the order line will show our product = 0.95, not taking the extra-prices into account (so not 1.9, i.e. 5% of the 2$ that were formerly displayed) opw-2439445 closes odoo/odoo#64861 Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
- Jan 27, 2021
-
-
Goffin Simon authored
Steps to reproduce the bug: - Go to Accounting (module)> Accounting (menu) > Journal Entries - Create a new account move M - Remove the default journal Bug: Impossible to set a journal opw:2445553 closes odoo/odoo#65144 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Aurélien Warnon authored
Follow-up of 13a45447 Where we fixed the portal *list* of opportunities but did not notice that the associated *form* also had the same issue. To recap the issue: When you remove the 'company_id' on a crm.lead, you also remove the computed 'company_currency'. When trying to view this kind of leads in the website_crm_partner_assign portal form page, it would raise an error while trying to display the planned_revenue in the missing currency. Now, we display the number without any currency sign, which is a "best effort" solution, just the same as on the crm.lead form view. So it will look like "9000 at 47%" instead of "$9000 at 47%". Task-2444539 closes odoo/odoo#65141 X-original-commit: 2fe4d3e7 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by:
awa-odoo <awa-odoo@users.noreply.github.com>
-
- Jan 28, 2021
-
-
Nicolas Lempereur authored
Let's assume the following situation: in a form view, there is a one2many field A displayed as a list (non editable). In the list, there is another one2many field B displayed with no widget (it basically displays "X records"). In A's form view, B is also displayed, but this time as a list. There is an onchange on the main form view that adds a line in A, (and simply sets B to [[5]], i.e. 'No record'). Before this commit, if the user opened the newly added sub record in A, and clicked on 'Add a line' of B, it crashed. The cause of the crash was that the wrong viewType was used to create the new (default) record in B: it used the original viewType, which was undefined (B is displayed with no widget in A's list). With this commit, we use the viewType of B that is used to edit it, in this case 'list'. In the slighlty different scenario where B is displayed with widget many2many_tags in A's list, there were no crash, but wrong fieldNames were sent to the 'default_get' RPC. As a consequence, default values for fields in B's list were potentially not loaded. opw-2422806 closes #64793 closes odoo/odoo#65157 Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com> Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Co-authored-by:
Aaron Bohy <aab@odoo.com>
-