- May 04, 2021
-
-
Ivan Yelizariev authored
BEFORE this commit query "invoices is not set" was tranformed to query "order_line.invoice_lines.invoice_id is False", which doesn't make sense, because invoice_id is required fields and hence always set. Hence, result of the query was always empty. AFTER: just check that there is no invoice_lines. Strictly speacking, is not the same as checking result of compute method, but because invoice_lines are supposed to be lines for invoices of out_* type, the result should be the same. --- opw-2516124 closes odoo/odoo#70343 Signed-off-by:
Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
-
abd-msyukyu-odoo authored
* IMPACTED VERSIONS 12.0+ * HOW TO REPRODUCE locale : Locale is en_US (or other SUNDAY based) view: CRM - My Pipeline - Kanban view groupBy: date_deadline:week (Expected closing) records: one record with a planned activity, on date_deadline = 2021-05-02 (SUNDAY) one record with no planned activity, on date_deadline = 2021-05-09 (SUNDAY) remark: don't keep any other record in MAY for better visibility * PROBLEM The progressbar of the week containing 2021-05-09 displays information about the record from the week containing 2021-05-02 * CAUSE 1. PostgreSQL `date_trunc` function follows ISO8601 which essentially means that the start of a WEEK is always MONDAY. There is no argument to change this. 2. _read_group_format_result https://github.com/odoo/odoo/blob/27da86a138089c1838e4b94f8a6976995b9c1fff/odoo/models.py#L2210-L2219 - Computes a label for a group of records. - Follows the locale for the label of the week, based on a date which is always a MONDAY because of `date_trunc`. 3. read_progress_bar https://github.com/odoo/odoo/blob/88957afca09662af7eaa19df1e40b3699e45e79e/addons/web/models/models.py#L167-L175 - Associates a group label to a record. - Follows the locale for the label of the week, based on the date of a record which can be any day of the week. If the record is related to a SUNDAY and SUNDAY is the first day of the week, it would have been in a group with a different label in (2.) than in (3.) prior to this change. * FIX In 3., before associating a label to a record, we truncate the date to the ISO start of the period, so that the label is determined for a record in the same conditions than in 2. The locale is still used to get language-dependent outputs with babel, but the grouping will always follows ISO8601 (date_trunc). * TEST Added a test for this problem case TASK-ID : 2517848 closes odoo/odoo#69946 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
Andrea Grazioso (agr-odoo) authored
Have in a purchase order a first row with unit price 0 Export the PO adding unit price in the list of fields to export The unit price is not reported This occur because the first line of the order lines is meld with the purchase order line but in the process the 0.0 values is discarded opw-2510917 closes odoo/odoo#70274 Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
Adrien Widart authored
When the user creates a new account analytic line, he should not be able to create a new journal item. To reproduce the error: (Use demo data) 1. In Settings, enable "Analytic Accounting" 2. Accounting > Configuration > Analytic Accounts > Administrative > Cost/Revenue 3. Create a new one 4. Click on "Journal Item" list Error: the list contains the "Create and Edit..." option. Such an action should not be possible. OPW-2481197 closes #69881 closes odoo/odoo#70325 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
Victor Feyens authored
The only purpose of the module `test_documentation_examples` is to test a few of the code examples shown in the developer documentation. As c99629b7de3 removes the documentation sources from the repository, the test module is removed as well. DOC PR: https://github.com/odoo/documentation-user/pull/945 task-2352371 closes odoo/odoo#70121 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com> Co-authored-by:
Victor Feyens <vfe@odoo.com> Co-authored-by:
Antoine Vandevenne <anv@odoo.com>
-
Victor Feyens authored
In odoo/documentation-user#945, the developer documentation is merged with the user documentation in a single repository and build config. This commit then removes source files for the developer documentation from the odoo/odoo repository. DOC PR: https://github.com/odoo/documentation-user/pull/945 task-2352371 Co-authored-by:
Victor Feyens <vfe@odoo.com> Co-authored-by:
Antoine Vandevenne <anv@odoo.com>
-
Achraf (abz) authored
What are the steps to reproduce your issue ? 1. Go to helpdesk/configuration/stages 2. Add rating email template to Solved 3. Change state of a ticket to Solved 4. Go to Technical/messages and open the sent message What is currently happening ? The template is not displayed correctly opw-2476485 closes odoo/odoo#70234 Signed-off-by:
Achraf <abz-odoo@users.noreply.github.com>
-
- May 02, 2021
-
-
Odoo Translation Bot authored
-
- Apr 30, 2021
-
-
Adrien Widart authored
When selling a tracked product that comes from a specific place in the warehouse, the module will ignore this information and set the parent warehouse as source location. To reproduce the error: (Use demo data) 1. In Settings, enable "Multi-Warehouses" 2. Create a product P: - Product Type: Storable Product - Available in Pos: True - Tracking: By Unique Serial Number 3. Update its quantity: - Location: WH/Stock/Shelf 1 - Serial Number: USN01 - Qty: 1 4. Start a POS session 5. Sell P - Enter the same serial number 6. Go back to quantity update page for product P Error: The quantity for "WH/Stock/Shelf 1, USN01" is still 1, it should be 0. Moreover, a new line appeared: "WH/Stock, USN01, -1" which is incorrect. The POS module considered that the product sold came from WH/Stock instead of WH/Stock/Shelf 1. OPW-2473002 closes odoo/odoo#69750 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
- Apr 29, 2021
-
-
Nicolas Lempereur authored
Make translation work for "Visitor" that was appearing in livechat session to the visitor. opw-2504461 closes odoo/odoo#70123 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Philémon van Helden authored
In eg. 13.0 when refreshing sales analysis action of a product, we would get an error because we have a single active_ids which is not expected by the code. With this commit, we use .toString() on the jQuery BBQ parsed active_ids as it was done before 32b8cec5 refactoring (january 2018). The added test with the fix fails with an error: TypeError: state.active_ids.split is not a function at Class.loadState (/web/static/src/js/chrome/action_manager_act_window.js) opw-2471982 closes odoo/odoo#68943 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Co-authored-by:
Nicolas Lempereur <nle@odoo.com>
-
- Apr 23, 2021
-
-
nounoubensebia authored
Display the default name (the one displayed in the kanban view) for followers replacing the False value for "other address" partners, this way the user won't get confused, furthermore, this fix won't require the name to be mandatory for this type of contacts. Task-2514244 closes odoo/odoo#69739 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Apr 29, 2021
-
-
Stéphane Debauche authored
A computed field on event may crash if current user is a portal user as it tries to access registrations to know if current user is already participating to the event. We also fix ACL on the registrations as most code already use it as sudo and do not access it directly. Only the event users or admins should access it directly. Task ID-2322411 PR odoo/odoo#68699 closes odoo/odoo#69939 closes odoo/odoo#69965 X-original-commit: odoo/odoo@f7c95d959520675fe11a345c3d9b1b85a675f9fa Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Stéphane Debauche authored
Purpose ======= When creating an attendee from frontend some fields may be added in parameters, notably through inheritance (questions, ...). We want the defaults values to have the priority on those parameters (e.g. barcode code). Task ID-2322411 PR odoo/odoo#68699 X-Original-Commit: odoo/odoo@5391df9a81a42d2ec783e505d8e98f4c75abf13d
-
- Mar 10, 2021
-
-
david authored
Give a coherent group as otherwise we could have access errors. Simple case: an Admin Rights user goes into a mail message form which is only available in debug mode which sets `group.no_one` into such user. This model is only readeable by `base.group_sytem` so an AccessError will raise. closes odoo/odoo#67621 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Apr 28, 2021
-
-
Aaron Bohy authored
The changed test uses the drag&drop helper, and an operation does not work as expected with the given params on chrome 90. The runbot currently uses chrome 80, so it is not an issue, but if your chrome is up-to-date, and you try to run the test suite, this test would fail. closes odoo/odoo#69964 Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com>
-
- Apr 27, 2021
-
-
Kamen Zhekov authored
Description of the issue/feature this PR addresses and current behavior before PR: There is a discrepancy in the wording of the error message provided. The error reads that an 'internal user' is linked but really its a 'portal user.'. Desired behavior after PR is merged: The wording of the error is clearer, and it now says 'portal user' instead of 'internal user'. OPW: 2498139 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#69550 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Apr 25, 2021
-
-
Odoo Translation Bot authored
-
- Apr 22, 2021
-
-
nie authored
*: account_payment, payment, sale Steps: - Install eCommerce - Go to Website / Configuration / eCommerce / Payment Acquirers - Configure Stripe: - Save Cards: Always - Payment Flow: Redirection to the acquirer website - Go to /shop - Add a product to the cart - Process Checkout - Select Stripe - Pay Now - Enter test data in Stripe Checkout form (https://stripe.com/docs/testing#cards) - Pay - Go to /shop - Add a product to the cart - Process Checkout - Select your saved card - Pay Now Bug: Stripe Error: The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first. Explanation: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage > Indicates that you intend to make future payments with the payment > method collected by this Checkout Session. According to this doc, `setup_future_usage` must be set in order to use the saved card afterwards. opw:2452452 opw:2498571 opw:2509897 closes odoo/odoo#69692 Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
- Apr 16, 2021
-
-
Aaron Bohy authored
Before this commit, it might happen that, in some situations, with several tabs opened, the CrossTabBus called the longpolling route repeatedly, thus slowing down the server, and freezing the webclient. The issue was tricky to reproduce. It was a race-condition that could occur when several tabs performed simultanous calls to addChannel, while being unloaded or becoming mastertab in the meantime (e.g. when opening/closing/refreshing several tabs simultaneously). This issue has been introduced by [1] which by mistake (probably) made each tab calling itself the localStorage to update the list of channels when it was notified that the list of channels in the localStorage just changed. So if several tabs had a slightly different list of channels at a given moment (e.g. at startup), it might happen that they in turn, undo what another tab just put in the localStorage, and thus produced an infinite loop of localStorage writes and longpolling request aborts/calls. The issue could be reproduced with the OCA module [2], which performs several addChannel at webclient startup. This commit restores this part of the code as it was initially written in [3]. Closes #69067 opw~2502799 maybe opw~2451865 as well [1] https://github.com/odoo/odoo/commit/6448420 [2] https://odoo-community.org/shop/product/web-notify-2670#attr=10773 [3] https://github.com/odoo/odoo/commit/38581f67236377daa767ca2216529a26b8708b00#diff-f6eccad21ae3543606ab8f97b8b097d015412caeaee2bf8cc928eb3ccabac9f5R149 closes odoo/odoo#69383 Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com>
-
- Apr 21, 2021
-
-
Adrien Widart authored
To reproduce the error: (Need sale_management) 1. In Settings: - Line Subtotals Tax Display: Tax-Included 2. Create a tax T: - Included in Price: True 3. Create and save a SO - Add a line with T 4. Switch to mobile view Error: The amount of the order line is incorrect, it does not consider the option from step 1. OPW-2484646 closes odoo/odoo#69627 Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
Adrien Widart authored
The IBAN template of Costa Rica is incorrect Backport of #66730 OPW-2477541 closes odoo/odoo#69620 Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
- Apr 22, 2021
-
-
Dharmraj Jhala authored
Before this commit When someone tries to send a mail to a restricted alias (which can be anywhere in 'To', 'CC' or 'BCC') and if the sender is not allowed to do so, the mail bounces. However bounced mail shows info as if it bounced due to address provided in 'To', even though it is not always the case. Example you send a message to * 'To': 'valid@gmail.com' (okay) * 'Cc': 'myalias@odoo.com' (not allowed for you) Mail bounces because you are not allowed to send a mail to alias provided in 'Cc', but it shows the message that: `The following email sent to valid@gmail.com cannot be accepted because [...]`. After this commit Boucing alias is shown in message body. Above example becomes `The following email sent to myalias@odoo.com cannot be accepted [...].` Note: Because the alias can be present in `Bcc` too (which will not available in the message values we get in `message_route_verify` method), we simply use display name of the alias instead of finding mail address matching with alias from the message values. Task ID-2390310 closes odoo/odoo#66654 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Apr 21, 2021
-
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider a company in $ - Let's consider two sales taxes T1 (10% included) and T2 (0%) - Define a fiscal position FP that maps T1 to T2 - Define a product P with T1, price = 11$ and available in the shop - Define a pricelist PL in € such as 1€ = 2$, show discount to customer and discount P with 50% - Define a portal user PU with FP and PL - Log with PU - Add P in the cart Bug: The unit price of P was 2,75€ instead of 2,5€ and the discounted price was 10€ instead of 5€ PS: Before adding P in the cart, the correct unit price and discounted price were displayed. opw:2472528 closes odoo/odoo#69502 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Apr 20, 2021
-
-
wan authored
The try/except is there to check that the string can be interpolated, so it is catching a ValueError. But if there is a singleton error (when the length of `self` is bigger than 1), it will raise a ValueError too. The UserError raised in the except is then weird/wrong. closes odoo/odoo#69515 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
- Apr 19, 2021
-
-
Anh Thao Pham (pta) authored
This is a cherry-pick of commit: https://github.com/odoo/odoo/commit/72a5e2b273e5faeccf49c0ef3fbb9f470e1a1c71 - Install Website and Email Marketing - Go to Settings - Click on "Manage Languages" and activate French - Click on "Activate and Translate" and check the websites to translate - Go to Preferences and set user language to "French" - Go to Website > Configuration > Settings and make sure that French is in the languages list and that it is default - Go to Email Marketing - Create a new mailing - Make sure that current user is in the Recipients list - Send the mailing (it will be scheduled) - In debug mode, go to Settings > Technical > Scheduled actions to run the action manually - Check the received mail and click on the "unsubscribe" link On the unsubscribe page there is text that is not translated. Some of the translations on this page is done in JS. But the translations are not available at that moment. The translations have to be loaded manually before letting the JS doing its work. opw-2501708 closes odoo/odoo#69457 Signed-off-by:
Anh Thao PHAM <kitan191@users.noreply.github.com>
-
Jason Van Malder authored
Issue - Install Time Off - Marc Demo > Create leave request - Admin > Validate the leave request - Marc Demo > Add an attachment Nothing happens Cause There is a access right issue that is not handled in the JS. Solution Handle it by doing a do_warn. OPW-2171791 12.0 backport of #43464 note: backport for 12.0 opw-2500564 closes odoo/odoo#69463 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Apr 18, 2021
-
-
Odoo Translation Bot authored
-
- Apr 15, 2021
-
-
Nicolas Lempereur authored
In windows chrome 89 (seemed ok at version 89.0.4389.90 (13 march 2021) and broken at version 89.0.4389.114 (29 march 2021)), clicking on a select option doesn't trigger jQuery events if they are delegated. For example this happen when selecting a field for custom group or custom filter in the search view and when selecting a field the dropdown closes. This happens because: - chrome now sends MouseEvent.button[^1] with value -1 instead of previousvalue of 0. - jquery in odoo 12 and under is version 1.11.1 and only executes the delegated event if the button value is 0 Reproduction case of the issue [^2]: clicking to choose an option only logs "non-delegated click". So for version 12.0 and only 12.0, this commit is cherry-picking jquery's commit that is fixing the issue: https://github.com/jquery/jquery/commit/c82a6685bb9 [^1]: https://developer.mozilla.org/docs/Web/API/MouseEvent/button [^2]: http://jsfiddle.net/cox4gzae opw-2497859 opw-2499415 opw-2499305 opw-2466991 opw-2506676 fixes #66848 closes odoo/odoo#69274 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Apr 14, 2021
-
-
Goffin Simon authored
Steps to reproduce the bug: - Go to Settings > Technical > Messages - Select some records and export it Bug: A traceback was raised because PS: When exporting data, the function export_date is called from web/controllers/main.py with the attribute raw_data opw:2504763 closes odoo/odoo#69228 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Apr 12, 2021
-
-
Ivan Yelizariev authored
on large database module installation may be aborted because of timeout error. --- opw-2475335 closes odoo/odoo#68400 Signed-off-by:
Adrian Torres (adt) <adt@odoo.com>
-
- Apr 13, 2021
-
-
Munaf Khan authored
currently, in fetchmail while create an incoming mail server, Set a server name while being in POP or IMAP server type and Switch to "Local" server type the server name is erased. with this commit, the value of the server name should not be erased with onchange. closes odoo/odoo#69125 Taskid: 2258523 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
nie authored
Backport of https://github.com/odoo/odoo/pull/61267 opw:2478217 closes odoo/odoo#69180 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Apr 11, 2021
-
-
Odoo Translation Bot authored
-
- Apr 09, 2021
-
-
Romain Derie authored
If the user type his website URL as suggested by the helper, and he redirects his `http` to `https` (nginx, cloudflare..), then his canonical url won't ever be reachable. Most critical issue will be that we won't display the `alternate/hreflang` tag, which basically tells the search engines what and where is our translated content. opw-2486918 closes odoo/odoo#69056 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Nicolas Lempereur authored
The transcoder (transforming CSS rules into inline CSS for mail clients) was not working for text-decoration property because it would transform text-decoration values in: {'text-decoration-thickness': 'normal', 'text-decoration': none} And the regex that ensures we don't add duplicates check if there is: "(^|;)\s*text-decoration" so if there is text-decoration-thickness, text-decoration is not added. The regexp could be changed to: "(^|;)\s*text-decoration[^\w-]" but we already have special case for other text-decoration-* properties. With this change we should get text-decoration applied in: - edit mode (was already the case) - readonly mode (new) - mail client (only if mail client does not override it) As a side note: text-decoration-thickness seems to be rather new[^1] so at one point in time there was probably no issue. [^1]: https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness opw-2496490 closes odoo/odoo#69061 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Co-authored-by:
Kamen Zhekov <kzh@odoo.com>
-
- Apr 08, 2021
-
-
Achraf (abz) authored
What are the steps to reproduce your issue ? 1. Go to Contacts > Configuration > Localization > Countries > Select a country 2. Edit the 'Layout in reports' (enable debug mode) and add an invalid field 3. Create a Quotation and search for a customer from the country you edited. What is currently happening ? Traceback is raised and you can't select the customer anymore Why is this happening ? Because the key is not defined. How to fix the bug ? Handle KeyError to detect if the user put an undefined key Handle ValueError to detect if the user put an invalid format key opw-2447078 closes odoo/odoo#68923 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Apr 07, 2021
-
-
oco-odoo authored
Doing domains like [('something_ids', 'in', 4)] crashed the emulator because it was trying to check something was 'in 4', instead of reversing the check (as real form views do). closes odoo/odoo#68875 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Apr 08, 2021
-
-
oco-odoo authored
https://github.com/odoo/odoo/pull/68253 fixed a bug in check_vat that caused it not to run any check when called on a partner with no country. However, doing this caused another issue because of an ORM limitation: when writing vat and country_id with a single write() on the res.company, two distinct write are triggered on the related res.partner, one for each field. Both those write trigger the check_vat constraint. Depending on the order in which the keys of the dictionnary passed to res.company's write were ordered, country_id could or could not be written before vat. If vat was written first and did not start with a country code, the write() on res.partner failed the constraint, because country_id wasn't set yet. This was wrong, but used to pass as there was no country_id on the partner, before https://github.com/odoo/odoo/pull/68253 fixed that. To circumvent the issue, we now allow entering any vat number without performing any check if it does not start with a country code and no country_id is set on the partner. closes odoo/odoo#68896 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Apr 07, 2021
-
-
Andrea Grazioso (agr-odoo) authored
Open Website sale dashboard The pie chart "Conversion Rate" labels display true/false which is not meaningful for the user. This occur because the labels are not taken into consideration for boolean fields opw-2454547 closes odoo/odoo#68841 Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-