- Feb 11, 2021
-
-
Adrien Widart authored
When printing some invoices, they are not registered as main attachment. Therefore, when sending a follow-up report, a UserError message asks the user to print the invoices first. To reproduce the error: (Need account_accountant, use demo data) 1. Go to Accounting > Configuration > Invoicing > Follow-up Levels 2. Select "First Reminder Email" 3. Enable "Join open Invoices" 4. Create an invoice INV01 for customer C01 + Post INV01 5. Go back to Accounting > Customers > Invoices, select INV01 - ! Do not open the invoice. Just select it. 6. Print > Invoices 7. Go to Follow-up Reports 8. Select C01 9. Send by mail Error: An error message is displayed: "You are trying to send a followup report to a partner for which you didn't print all the invoices" but it does not make sense because the invoice has been printed. For a follow-up report to be sent, the invoices must have the field `message_main_attachment_id` defined (see [code](https://github.com/odoo/enterprise/blob/476d862aba396c54c7a47950e02af7aed008a2db/account_followup/models/account_followup_report.py#L311-L313)). There are two ways for this field to be set: - When sending the invoice, `_message_set_main_attachment_id` is called, select one attachment and mark it as main one https://github.com/odoo/odoo/blob/437b49860b46b5abb8f55ced349fece984968998/addons/mail/models/mail_thread.py#L1918-L1924 - When opening the invoice, if the sreen is large enough, a pdf viewer is opened next to the invoice. This pdf viewer will call `register_as_main_attachment`, the latter marks the `ir_attachment` as main one: https://github.com/odoo/odoo/blob/e6a41b118a94c5b101d127f6b70fc54958e9346b/addons/mail/models/ir_attachment.py#L17-L20 However, when the user only prints an invoice, nothing will set the `message_main_attachment_id` field. Thus, this fix will call `register_as_main_attachment` when a pdf is generated and will mark it as main attachment. OPW-2427247 closes odoo/odoo#65320 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Feb 13, 2021
-
-
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#66122 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Feb 16, 2021
-
-
Nicolas Lempereur authored
The mail signature of an user did not inline the CSS like the body of a message, so for example icons seemed to work but would not be seen (unless the mail reader had the same font-awesome system). With this change we inline the signature too. On edition there was also an issue since the original icon was saved as data-class which was stripped: so eg. when editing a mail.message with working icon, the icons would disappear. opw-2453912 closes odoo/odoo#66216 X-original-commit: 29347ceefa1f83a350a544a02d040e69f2906aaf Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Feb 15, 2021
-
-
Mohammed Shekha authored
before this commit: when there is a horizontal scroll in view say for example kanban view where there are too many columns and user scrolls horizontally and go to form view by clicking on any record and then come back to kanban view horizontal scroll is not preserved and user is moved to scroll position 0 this is due to commit: https://github.com/odoo/odoo/commit/19eacf7d23c9413de4430a3422b5ed74b37ef242 after this commit: scrolling horizontally and then go to form view and come back to previous view will preserve scroll position, we also consider case for kanban view where there are too many columns and user click on 'Add Column' user will be scrolled to new column element. task-2418275 closes odoo/odoo#66215 X-original-commit: 171036aefe21799f7a791cc3cd73a7d249aa0b00 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
bit-odoo authored
Before this commit: If a next activity is "triggered", the discard button is not visible. After this commit: Even if a next activity is "triggered", the discard button will visible. Task-2459645 closes odoo/odoo#66211 X-original-commit: 33ec55d8 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Nicolas Lempereur authored
In some location, a long unbreakable word would cause following columns to be hidden (depending on size of unbreakable word, font, font size, ...). For example, this happened in the cart summary on payment page. With this changeset, if not possible otherwise, line break happen inside the word. opw-2451496 note: from 13.0 the shop product lists are inside .card so the h5 override (that is now h6) is not necessary. closes odoo/odoo#66191 X-original-commit: 91937764 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nicolas Lempereur authored
The company is used to compute currency of: - discount_fixed_amount - discount_max_amount - rule_minimum_amount If currently we don't set a company, we have an error when using the company. opw-2458950 closes odoo/odoo#66210 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Raphael Collet authored
This guarantees the cache consistency of the many2many field values. closes odoo/odoo#66173 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
- Jan 21, 2021
-
-
Bruno Zanotti (ADHOC) authored
Fix pre-printed report so that invoice date remains in same position as if not pre-printed closes odoo/odoo#63592 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
- Feb 15, 2021
-
-
Benjamin Vray authored
Before this commit, the preview of the dragged snippet didn't work when moving a dragged snippet from a drop zone to an other drop zone when there was no space between those drop zones. It is because, in this case, the over event of the second drop zone is triggered before the out event of the first drop zone. task-2312878 closes odoo/odoo#66148 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Feb 12, 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#66032 Co-author: nboulif <bon@odoo.com> Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
- Feb 15, 2021
-
-
Lucas Perais (lpe) authored
Have grouped list with reference a m2o or a reference field Select some records, edit them Before this commit: the names of the reference fields and m2o disappeared That was because the saveRecords function did not take into account a grouped list manual forward port of #65999 After this commit: it works as expected closes odoo/odoo#66043 Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
Lucas Perais (lpe) authored
Have a list with multi_edit enabled Have a widget boolean_toggle displayed on some field Select some records to be in multi edit mode Before this commit, the record on which the boolean toggle button was clicked was written and then the multi edit feature was triggered and wrote on all the records The first write is unnecessary and counter intuitive After this commit, only the write with all the multi edited records is done
-
Lucas Perais (lpe) authored
follows #59830
-
- Feb 14, 2021
-
-
Odoo Translation Bot authored
-
- Feb 12, 2021
-
-
Nicolas Lempereur authored
In a4d170ad there were some improvment to not show event totally empty on the day calendar view because of different style (font + padding). The lower part of the text was still a little cut, this commit try to improve this for week and day view mode by removing 5 additional pixels. opw-2422700 closes odoo/odoo#66078 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Mohammed Shekha authored
with this commit, we fixes UI glitch on image widget when image is too small, when hovering over too small image Edit and Delete icon will ne displayed but it is displayed with glitch, so to avoid that glitch we added min-width to icons div. task-2376452 closes odoo/odoo#66056 X-original-commit: 7aaad848 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Nicolas Lempereur authored
The route for customer rating force the customer language. If website is installed, this overrides the normal language so if current website language is spanish and customer is english, either: - we will have a page with two languages mixed with language selector set on spanish but showing mostly english - or if english is not installed, we get an error With this changeset, if website is intalled we just let it handle language (previous language used, or if not browser language, ...). Not necessary in 12.0 since we did not use frontend_layout (e9be0bb1). opw-2449678 closes odoo/odoo#66055 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Wolfgang Taferner authored
closes odoo/odoo#66039 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Mohammed Shekha authored
In a list view that allows the multi edition, select several records, edit a field, and 'click' on Discard. In the confirm dialog, click on 'Cancel'. The row is still in edition and the changes are still there. However, before this commit, clicking on 'Save' did nothing. The reason is that the 'Save' button is fake. Typically, clicking on it triggers a 'field_changed' event, thus saving the selected records. In this above scenario, the changes have already been notified, so nothing happens when the user clicks on 'Save'. This commit fixes the issue by storing the last 'field_changed' event, and re-triggering it when necessary. This isn't the cleaner way to handle that scenario, but it is the simpler, so we go for it in stable. In master, it would be nice to rework the multi edition feature with this scenario in mind. task-2376233 closes odoo/odoo#62652 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Feb 11, 2021
-
-
Jeremy Kersten authored
task-2458109 closes odoo/odoo#66017 X-original-commit: 550043b6c36cf657e6cee229676a95ee6482e421 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com> Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Feb 10, 2021
-
-
Goffin Simon authored
Steps to reproduce the bug: - Install manufacturing app - Create a product A - Create a Bill of Materials for product A - Archive Product A (Only the final product not any of the components) - Print BOM or Print BOM Structure & Cost Bug: A traceback was raised opw:2447514 closes odoo/odoo#65856 X-original-commit: 80d4fb9f Related: odoo/enterprise#16258 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Feb 11, 2021
-
-
Mohammed Shekha authored
scenario: open customer form by clicking new customer button and select image and again click on image which will open file explore, now click cancel button in file explorer which means we do not want to change image, it will throw traceback. traceback should not be thrown if image is not selected from file explorer which will be fixed with this commit. task-2412485 closes odoo/odoo#65978 X-original-commit: 9993d651 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
- Feb 10, 2021
-
-
Munaf Khan authored
Right now, if someone changes the `crm.pls_start_date` system parameter to something that is not valid, opening a settings gives you traceback. This commit improves the behavior by making sure that the compute field on settings page `predictive_lead_scoring_start_date` always contains a valid date. For doing so, if the system parameter is not a valid date(or not set or deleted), we set the above field to the date 8 days prior to current date, and thus, when saving the settings, the system parameter is again set with a valid date. closes odoo/odoo#65111 Taskid: 2448248 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Feb 11, 2021
-
-
Romain Derie authored
Before this commit, only whitelisted fields would be updated on cow views during a module update. A field would be whitelisted if he had the same value than the original view, see it as a heuristic to not write on modified fields. But `inherit_id` is not that simple, even if the cow view has a different value than its original view, it doesn't mean it was modified by the user, it is just because of the cow mechanism that assigned a copied view as inherit_id, which is just a copy ofthe original one. We can thus consider `inherit_id` as unchanged and whitelist it if the `key` is the same. In practice, it means that cow'd views did not receive the `inherit_id` updates as in commit https://github.com/odoo/odoo/commit/c8577568a1e39f6692889b3e21652fa3b8df06b2#diff-823e5db841dca1798ff1300e243059a4e1c93343598d2be5a1d1dcd1d2d0c273R537 where `portal.my_account_link` had its `inherit_id` changed from `portal.frontend_layout` to `portal.user_dropdow`, see https://github.com/odoo/upgrade/pull/2059 : Considering a module update changing `inherit_id` of D from A to B, the following use cases are expected. Without this fix, D' never move: CASE 1 A A' B A A' B | | => / \ D D' D D' CASE 2 A A' B B' A A' B B' | | => | | D D' D D' CASE 3 A B A B / \ => / \ D D' D D' CASE 4 A B B' A B B' / \ => | | D D' D D' closes odoo/odoo#65840 Opw: 2422773 Opw: 2422727 Opw: 2422770 Opw: 2423406 Opw: 2423859 X-original-commit: 2951ed681aa5e31563e501de691716806ddb46bd Signed-off-by:
Christophe Simonis <chs@odoo.com> Signed-off-by:
Romain Derie <rdeodoo@users.noreply.github.com>
-
- Feb 10, 2021
-
-
nie authored
Steps: - Go to Settings > Users & Companies > Companies - Create a new company (1) - Install a payment acquirer and Website - Go to Website > Configuration > Settings: - Select "My Website 2" - Assign it to company (1) - Add a custom domain - Save - Switch to company (1) - Go to Invoicing - Create a new Invoice: - Add a product line - Post it - Click Action > Generate a Payment Link Bug: The base domain is used instead of the domain of the website linked to the invoicing company. Explanation: The app only uses the URL on which the user has logged in to generate a payment link. If the user has multiple companies, this can confuse customers if they land on another domain than the one they are used to. This commit makes the app use the domain of the website of the record linked to the payment if it has one. opw:2440251 closes odoo/odoo#65589 Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
Adrien Widart authored
When buying a subcontracted product, if the inventory valuation of the product category is automated, the product delivery does not create a new journal entry, i.e. the automated inventory valuation is not done. To reproduce the error: (Need account_accountant,purchase) 1. In Settings, enable "Subcontracting" 2. Create a product category PC - Parent: All - Inventory Valuation: Automated 3. Create a product P - Must be storable - In category PC - Set a positive cost 4. Add a BoM to P - Type: Subcontracting 5. Create a RfQ - Vendor: BoM's subcontractor - Product: P 6. Confirm & Receive Products 7. Go to Accounting > Accounting > Miscellaneous > Journal Entries Error: There isn't any journal entry about the new product. This is an error because the inventory valuation for this product is automated, so there should be a line with the P-product and the cost set on step 3. When validating the delivery, the server checks the stock move lines considered as incoming: https://github.com/odoo/odoo/blob/5098cb25accce91347760cbd2f6427c07265fa00/addons/stock_account/models/stock_move.py#L61-L65 Problem is that `_should_be_valued` for subcontractor's location returns `True`, therefore the stock move line will not be added. => The `mrp_subcontracting` module needs to add a condition: A location can be valued if it is not subcontractor's location. OPW-2446298 closes odoo/odoo#65696 Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
Adrien Widart authored
When changing a contract's state to "Expired", if the contract has an end date, the latter is not updated. As a result, contracts' reporting contains some error. To reproduce the error: 1. Create an employee E 2. Create a contract C - Employee: E - Start date: in the past - End Date: in the future (! at least after the current month) 3. Set contract's state to "Expired" 4. Go to Employee > Reporting > Contracts 5. On pivot view, change the rows: - Total must be split into "Date > Month" - Current month must be split into "Employee" Error: on current month, "# Departure Employee" of E-employee is 0. It should be 1. This value's computation is based on `contract.date_end`, but when changing the state to "Expired", the variable will not be updated if it already has a value. So "# Departure Employee" will be equal to 1 for the month of end date defined on step 2, instead of current month. Note: The fix result can not be directly tested. The end date must be done for the departure to be effective (`contract.date_end` < 'today'). Since this fix updates `contract.date_end` to 'today', "# Departure Employee" will not count this contract until the following day. OPW-2445504 closes odoo/odoo#65863 Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
Aaron Bohy authored
Before this commit, calling do_hide/do_show/do_toggle on a widget that had been destroyed before being rendered crashed (because this.$el was undefined). Obviously, calling those methods in this situation is useless, but with asynchronous code, it might happen that you call them in an handler, and they have been destroyed meanwhile. This commit checks if this.$el is set before accessing it to avoid the crash. closes odoo/odoo#65885 X-original-commit: 320c29f5 Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com>
-
Aaron Bohy authored
Before this commit, occurences of 'null', 'true' and 'false' strings as autocomplete values in the search view were replaced respectively by None, True and False. Fixes #65743 closes odoo/odoo#65779 Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com>
-
- Feb 08, 2021
-
-
david authored
Up to v11 it was possible to search by purchase vendor reference when we're using the auto-complete function in a vendor bill. With the refactor of this functionality, this useful feature was lost. closes odoo/odoo#65722 X-original-commit: 93365193 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Feb 10, 2021
-
-
nie authored
Steps: - Install studio, website_form - Go to Settings > Users & Companies > Users - Click the Studio icon - On the top bar, click Website - Click New Form - In edition mode, click the first label - Select Customize > Add an Existing Field Bug: Traceback here: https://github.com/odoo/odoo/blob/3ff00944fe6a439bd5d7bddb846206d3d6cac3a0/addons/website_form/models/models.py#L73 KeyError: 'readonly' Explanation: Dynamic selection fields don't declare a 'readonly' attribute: https://github.com/odoo/odoo/blob/3ff00944fe6a439bd5d7bddb846206d3d6cac3a0/odoo/addons/base/models/res_users.py#L1275-L1282 opw:2449356 closes odoo/odoo#65860 X-original-commit: 70d8ffbb Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider a user U with a related partner P - Log with an internal user IU without Admnistration/Settings and Employee Officer access rights - Create an employee E with address_home_id = P and save Bug: An access right was raised because the mobile of P was written on P and the error was raised at https://github.com/odoo/odoo/blob/13.0/odoo/addons/base/models/res_partner.py#L531 Due to this bug, only internal user with Admnistration/Settings access rights can create an employee linked to a contact of an internal user. opw:2445953 closes odoo/odoo#65848 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Feb 09, 2021
-
-
Csaba Tóth authored
closes odoo/odoo#65796 X-original-commit: 054f3a53 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
nie authored
Steps: - Install mrp - Go to Manufacturing > Master Data > Bills of Materials - Create a BoM - Components: - Add a component - Save - Click the component - Close the modal window - Click the component once more Bug: Traceback here: https://github.com/odoo/odoo/blob/55a6642a9621fa9683895d5d45a015bb04c3017b/addons/web/static/src/js/views/basic/basic_view.js#L147 Error: can't convert undefined to object Explanation: As seen on the line just above: https://github.com/odoo/odoo/blob/55a6642a9621fa9683895d5d45a015bb04c3017b/addons/web/static/src/js/views/basic/basic_view.js#L146 `fieldsInfo` might not have the view we are looking for. opw:2452142 closes odoo/odoo#65737 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Feb 08, 2021
-
-
Adrien Horgnies authored
The function `_get_possible_combinations` generates possibles combinations for the product template attribute values (ptav) of each product template attribute line (ptal) of a given product template. It used to iterate over them using a cartesian product. A combination can be invalid if it contains two incompatibles ptav. The problem is that it used to filter out invalid combinations after generating them. It's a problem because there can be a lot of invalid combinations to filter out before finding a valid combination. Even before the first valid combination if the first ptav of the two first ptal are incompatible. The solution brought by this commit is to reject the invalid combinations while building them rather than after. It does so by using a cartesian product implementation with early rejection. The algorithm tests each ptav when incorporating it in a partial combination and if it's incompatible, it goes to the next partial combination and thus skips all combinations starting with the invalid partial combination. The client that reported the issue has a product template with about 25 ptal with an average of 9 ptav. The ptav of the first ptal was incompatible with the first ptav of second ptal. It had to build and filter out 5.76*10^15 ptav before finding the first valid ptav. If we generate 10^6 ptav by second (it's much less) user would get first ptav after 182 years. Now it's instantaneous. opw-2335936 closes odoo/odoo#65723 X-original-commit: 2e5634fa Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Christophe Monniez authored
In a previous fix [0], the call to exif_transpose was kept to allow rotation of images format different than `JPEG`. After a small test, it appeared that the call would crash if the image in another format had the same `LensInfo` tag. So it's safer to not call this method at all. With this commit, the rotation tag is retrieved disregarding the file format by using the `getexif` method if available, falling back to the private method for Pillow < 6 support. As a bonus, a test is also added with a small embedded `JPEG` image, crafted with an `Orientation` exif tag and, for reference, the `LensInfo`tag that caused so much trouble. [0] b83c48d5 closes odoo/odoo#65653 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
yhu-odoo authored
In "Inventory Valuation", when click "Inventory at Date" then "confirm". Record for consumable products will be shown in the report. Previously fix in #62622 which disabled svl for consumable products, then rolled back in #63386 due to mrp need to create svl for consumables to analyse cost. In this commit, we add a domian filter to not show consumables in "Inventory Valuation" Task 2449211 PR #65726 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Nicolas Lempereur authored
Because of context: {'search_default_account_id': [active_id]} refreshing on the tax audit action could cause an error because in normal use case we have active_id that is never an account.account id (but for example an account.tax.report.line). There doesn't seem to be any use case where that context is useful since it was introduced in 2017 (81089042), this action is always used with an overriden context. So this commit is removing it. opw-2388448 closes odoo/odoo#65754 X-original-commit: f7998c04813c65ba0b8ba046c052332ede2ba1cb Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Feb 05, 2021
-
-
Samuel Degueldre authored
Previously, the many2one widget from the web_editor used jQuery's '.html()' method when inserting a record name into the page. The record name was not HTML-escaped before this, which may have unexpect result and break the layout. This commit fixes that by using the '.text()' method instead. This bug only affects pages containing a many2one (contact excluded) at the time of selection and not after the selection. e.g. on the /event page, changing the category of an existing event via the website editor closes odoo/odoo#65639 X-original-commit: 53aff7f0 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-