- Mar 18, 2019
-
-
Romain Derie authored
Before this commit, ordering by `create_date DESC` and `write_date DESC` could lead to undeterministic order if multiple records had the exact same date. This is the case during tests as `crate_date` is set to transaction start time. (That's what NOW() in PSQL does) Now, we enforce that order to avoid randomness. Related to #31829 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
Romain Derie authored
This commit is following c78da8a8 that fixed website_links module. We had to merge it with a skipped test as there was an error only appearing with Docker (on runbot or on local with Docker). This commit fix that test error and some other remaining bugs not found during the first fix: 1. Fix the test error by adding a step to show recently used links. Indeed the bug was that newest links would return inconsistent order as both 2 links created during the steps have the same creation date. On runbot it would click on the wrong link, the one which has 0 clicks. Then JS would crash (see error bellow). 2. `websiteLinksCharts` JS animation class would execute all the `start` method code even if there was no `_totalClicks`. JS would then crash as `beginDate` would not be set correctly. Before the refactoring all that code would be skipped as surrounded by an if/else condition. 3. BS3 to BS4 broke the nav-tabs layout to switch between 'Newest, Most Clicked and Recently Used. `mt16` needed to be removed. Closes #31829
-
- Mar 17, 2019
-
-
Odoo Translation Bot authored
-
- Mar 14, 2019
-
-
Christophe Simonis authored
-
Nans Lefebvre authored
Create a record. Add an attachment, using the widget (aptly named 'add an attachment'). It is not set as message_main_attachment_id. If you add the message through 'log note', then it is. We add a hook to make sure that it is set as message_main_attachment_id when added through the widget. opw 1950403 closes odoo/odoo#31847 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
Nans Lefebvre authored
Create a record. Add an attachment set as message_main_attachment_id (e.g. through log note). Duplicate that record. The new record has the message_main_attachment_id of the old record, while it has no attachments. Since attachments security is linked to the record id, we shall not copy them. opw 1950403 closes odoo/odoo#31846 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nathan de Pryck authored
Before this commit, the fields qty_reserved and qty_done were displayed in the wizard with a precision of two digits (for each case). The problem is that the qty_to consume uses the precision accuracy defined in 'Product Unit of Measure'. It resulted that a quantity of 0.002 to consume was translated to a qty_done of 0.0. See opw-1949198 closes odoo/odoo#31822 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
Nicolas Martinelli authored
With the demo data: - Go to Sale > Products > Products, search for 'Customizable Desk' - Click on 'Configure Variants' - For variant 'Legs: Steel', add all attribute values for the 'Conference Chair' - Create a SO, add a line with 'Configure Product' - Select the 'Customizable Desk' with 'Legs: Steel', add Boom boom, traceback at template rendering at `first_possible_combination[variant_id_index] == value_id` This is because the `parent_combination` is not taken into account when evaluating `_is_add_to_cart_possible`. closes odoo/odoo#31496 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
With the demo data: - Go to Sale > Products > Products, search for 'Customizable Desk' - Click on 'Configure Variants' - For variant 'Legs: Steel', remove the attribute values for the 'Conference Chair' - Create a SO, add a line with 'Configure Product' - Select the 'Customizable Desk' with 'Legs: Steel', add The 'Conference Chair' is displayed in the 'Available Options', while it shouldn't. The methods `_get_own_attribute_exclusions` and `_get_parent_attribute_exclusions` compute the exclusions based on the attribute values. Since there is no values in our case, the exclusion is not taken into account. We add a specific case to search for exclusions without values. opw-1945460
-
- Mar 13, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
goran.kliska authored
closes odoo/odoo#31824 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Christophe Simonis authored
-
Christophe Monniez authored
Since #26134 the po files are compared with pot content when loading a translation. If a term is found multiple times in a po file, the terms that does not exists in the pot files are ignored. If the pot files does not exists, the unicity constraint leads to an error. Closes #31583 closes odoo/odoo#31823 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
tarteo authored
When importing bank statements, a rainbow man is shown but with no action button The active model is account.bank.statement.import in this context Before this commit, the rainbow man was staying with no possible action closes odoo/odoo#30723 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Nicolas Martinelli authored
- Activate: 'Order-Specific Routes' and 'Dropshipping' - Create a stockable product in AVCO + AUTO - Purchase the product at $10 and validate the receipt => One product @ $10 in stock - Sell the product via dropshipping - A PO is generated, change unit price to $20, validate - Validate the picking The product in stock has now a cost of $15, i.e. the dropship impacted the cost of the product. Now if the product in stock is sold, the product will go out at a cost of $15. This will lead to a wrong accounting valuation (0 product in stock with -$5 in stock). opw-1922289 opw-1935272 opw-1937672 closes odoo/odoo#31786 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Martin Geubelle authored
The widget handle was displayed on x2m fields in form views, even when the field was readonly, which makes no sense. It is now correctly hidden. Fixes #30580 opw-1937833 closes odoo/odoo#31743 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Mar 12, 2019
-
-
Nicolas Lempereur authored
When comparing product, there was already an exceptions that would not list the attributes if they were only "create_variant=False" type. But if we mix attribute create_variant False or not on a product, we could get an error. With this changeset, create_variant=False attribute are ignored also when mixed with create_variant=True attributes. opw-1946361 closes #31680 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Mar 11, 2019
-
-
Rémi Rahir authored
Sequel of cc54194e. The mentioned fix only worked when the user was public. The problem arises when calling the function `_get_fpos_by_region()` in `sudo` without specifying the company and this happens, for instance, in every `onchange_partner_*` function of a sale order. We propose to add the `force_company` key in the context of the sale order to ensure the right company when selecting the fiscal position. closes odoo/odoo#31751 Signed-off-by:
Rémi Rahir (rar) <rar@odoo.com>
-
XavierDo authored
We don't want to notify inactive followers, especially in the case of oddobot that was considered as a inactive partner in _notify_compute_recipients. The computed recipient data for odoobot are (pid:2 active:False pshare:True notif:None) It was considered as a partner and notified by email. This fix simply removes inactive partner from partner to notify. closes odoo/odoo#31734 Signed-off-by:
Toufik Benjaa (tbe) <tbe@odoo.com>
-
- Mar 12, 2019
-
-
Priyanka Kakadiya authored
Before this commit the flow of using wishlist with dynamic attributes was not tested, and it also wasn't tested when combinations were not possible. Those cases are now tested too. closes #29859 PR: #31752 task-1920065 Signed-off-by:
Sébastien Theys <seb-odoo@users.noreply.github.com>
-
Jorge Pinna Puissant authored
In the portal, when the client signature is asked (for a SO for example). Before this commit, the client could send the form without really signing the document. Now, a warning is shown if the form is not signed. opw-1943702 closes odoo/odoo#31768 Signed-off-by:
Sébastien Theys <seb-odoo@users.noreply.github.com> Co-authored-by:
Sébastien Theys <seb@odoo.com>
-
Nans Lefebvre authored
Suppose that a payment transaction cannot be reconciled for any reason. Then _cron_post_process_after_done will try to process it every 10 minutes until the end of time. Moreover, if the user takes some manual action before _cron_post_process_after_done, even if in principle it would have been able to go through, then it is likely to fail, e.g. on invoice_open. Meaning that a transaction that could have been processed will become an undead transaction. To avoid that situation we set an arbitrary retry_limit_date set to 2 days, which seems a reasonnable compromise. It gives some time for the transaction to go through, but not exaggeratedly so. opw 1945953 closes odoo/odoo#31791 Signed-off-by:
Toufik Benjaa (tbe) <tbe@odoo.com>
-
Martin Trigaux authored
This makes the assets to be recomputed everytime somebody with a different language load the page. closes odoo/odoo#31782 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
Sébastien Theys authored
When there is an optional product for which the quantity is set to 0 because there is no stock available, the cart update would raise because it tried to read the order line even though it was deleted above. Now we apply the logic only if the order_line actually exists. Part of task 1950712 closes odoo/odoo#31779 Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
-
Nicolas Martinelli authored
- Set company currency as VND and Enable the Multi-currency with USD - Create Pricelists for VND & USD, set them as 'Selectable' - Without being logged, go to eCommerce - Select the USD pricelist - Open a product page The price has zero decimals, while it should have 2. When the product page is opened, a RPC call is performed on `get_combination_info_website`: https://github.com/odoo/odoo/blob/7612f2c55cd4795b109a3b3dc3099f280ce99a7f/addons/sale/static/src/js/product_configurator_mixin.js#L71 When the response is received, the price is updated in: https://github.com/odoo/odoo/blob/7612f2c55cd4795b109a3b3dc3099f280ce99a7f/addons/sale/static/src/js/product_configurator_mixin.js#L472 However, `_priceToStr` uses the decimal precision of `product.currency_id.decimal_places`: https://github.com/odoo/odoo/blob/7612f2c55cd4795b109a3b3dc3099f280ce99a7f/addons/sale/static/src/js/product_configurator_mixin.js#L543 This is incorrect: it should be the currency of the website, not the curency of the product. opw-1947140 closes odoo/odoo#31770 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
RomainLibert authored
Closes: #31733 closes odoo/odoo#31773 Signed-off-by:
Romain Libert (rli) <rli@odoo.com>
-
- Mar 11, 2019
-
-
Johan Demaret Rivarola authored
Sequentially previewing and paying two sale orders was causing a redirection issue. Instead of being redirect to the SO preview (/my/orders/<:order_id>), the user was redirected to /payment/process. The issue was due to processed transactions not being removed from the session. opw-1948288 Closes #31741 Signed-off-by:
Toufik Benjaa (tbe) <tbe@odoo.com>
-
Yoshi Tashiro authored
- Fixes incorrect user type assignments on some accounts - Fixes incorrect account assignments on taxes - Adds a few accounts that Japanese companies would typically need - Changes some account codes to make the structure more consistent - Updates descriptions of some taxes to make them appear more natural on PDF reports closes odoo/odoo#30780 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 08, 2019
-
-
Jon Zaballa authored
Groups with more than 3 digits exist, but none of the accounts are "hanging" from them. For example, the group of accounts 1030 and 1034 is 103, even though 1030 and 1034 groups exist. The account structure should concur with the account group structure. closes odoo/odoo#28420 Signed-off-by:
Josse Colpaert <jco-odoo@users.noreply.github.com>
-
- Mar 13, 2019
-
-
Adrien Dieudonne authored
This reverts commit 1cdf2bda. $(':focus') seems not working depending on browser version but we don't know yet exactly why. opw-1948266 closes odoo/odoo#31807 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Mar 08, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
Since 8da3750c, logger does not need to be muted anymore. This reverts commits c3764265 and 1693a27f.
-
Lucas Perais (lpe) authored
Have a list view, apply a group_by and a filter with a sort parameter Click on one record to access the form view Have a x2m within it Before this commit, the x2m records were loaded with a context containing the keys orderedBy and group_by It seems harmless at first, but even conceptually those keys should not be here - they apply on a list of records, and not to individual ones - they may contain field names not existing in the x2m model Hence, when accessing another list view through an action button, the list will try to be orderedBy or group_by with the given context Which is plain wrong in the first place and may cause crashes After this commit, the context of a record datapoint (representing a single record) is stripped from the keys Read the opw for a concrete use case OPW 1943583 closes odoo/odoo#31706 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Mar 12, 2019
-
-
Nicolas Martinelli authored
- Create a fiscal position FP which maps the deposit product account to another account - Create a SO, use the fiscal position FP. - Create a downpayment The account is not mapped following the fiscal position. opw-1947069 closes odoo/odoo#31781 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 08, 2019
-
-
Christophe Simonis authored
-