- Jul 01, 2019
-
-
Martin Trigaux authored
The terms were already exported but it was not in the configuration file Courtesy of Erwin Van der Ploeg closes odoo/odoo#34467 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jun 28, 2019
-
-
Nicolas Martinelli authored
- Create 2 rates: 2019-05-01: 1.0 2019-06-01: 0.5 - Set-up a product A in AVCO - Create a PO for A on 2019-05-15 - Receive the product after 2019-06-01 The AML are created with a rate of 0.5, but the product cost is updated with the rate of 1.0. This is because the stock move date is used when it is still assigned, and not done yet. As described in: https://github.com/odoo/odoo/blob/2f789b6863407e63f90b3a2d4cc3be09815f7002/addons/stock/models/stock_move.py#L36 The date is the scheduled date until the move is done, then it is the date of the actual move processing. We change the date to today's date, since it is the value used to update the move date: https://github.com/odoo/odoo/blob/2f789b6863407e63f90b3a2d4cc3be09815f7002/addons/stock/models/stock_move.py#L1143 opw-2006368 Note: the test has been slightly refactored to avoid an inconsistency between `fields.Date.context_today` and `fields.Datetime.now`. Now, they both return the same day. Moreover, the date is updated before each action. closes odoo/odoo#34444 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Jun 30, 2019
-
-
Odoo Translation Bot authored
-
- Jun 28, 2019
-
-
Julien Castiaux authored
Configure two companies, add a bunch of attachments to each company so at least one has more attachments than the default 80 search limit. List the attachments of that company, only the 7à-ish firsts are displayed and the pager is disabled. The `_search` method is override in `ir.attachment` to filter the original record set. If the original record set had reached the limit, the filter may only return a subset whose length is lower than the limit, this trick the different JS views making them think there are no more records to return and disable the pager. The fix has been to recursively re-search until the subset length is equal to the limit. opw-2025940 closes #34287 closes odoo/odoo#34450 Signed-off-by:
Julien Castiaux <Julien00859@users.noreply.github.com>
-
Jeremy Kersten authored
Before this commit, all url of channel were using `web.base.url` instead of the current website domain. Fixes #32348 The override of `get_base_url` method should not be forward ported after saas-12.4 as since saas-12.5 it is now a model method (f727cd26). closes odoo/odoo#34421 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
Antoine Prieels authored
Two different problems on the box and resulted in the crash of the Odoo instance running on the IoT Box: When `usblp` had troubles communicating with a printer, a NoDeviceError was raised. The `printer` variable was still set from the last time the loop was processed, so we tried to close it, resulting in an error. The code handling generic execptions was broken. closes odoo/odoo#34437 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
- Jun 27, 2019
-
-
Joren Van Onder authored
This popup shows in the rare situation where somebody has 2 payment methods that use Mercury. It allows them to choose which one to use when swiping a card. It would show the amount due in the title of the popup however this isn't correct when a "pending swipe" payment line has been added. Fix it by removing this amount, it's clear what will be paid from the information on the payment screen. Also use this opportunity to make it translatable. opw-2006596 closes odoo/odoo#34398 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Jun 25, 2019
-
-
Joren Van Onder authored
Card readers act as barcode scanners, they produce barcodes in a certain format (see pos_mercury.barcode_rule_credit). Update the label of the option to reflect this. opw-2006596
-
- Jun 27, 2019
-
-
Christophe Simonis authored
-
Nicolas Martinelli authored
In case of failure at token creation, raise a proper UserError instead of a generic traceback. opw-2025723 closes odoo/odoo#34420 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
- Enable general discounts for POS - Create a POS session - Add a product - Create a general discount of 10% - Change the customer The discount is reset to the product price. When changing the customer, the prices are reset: https://github.com/odoo/odoo/blob/3b1699e02d4483913159681bf7e10839e6493244/addons/point_of_sale/static/src/js/screens.js#L1251 In the case of a global discount, the price is therefore reset to the product price in: https://github.com/odoo/odoo/blob/3b1699e02d4483913159681bf7e10839e6493244/addons/point_of_sale/static/src/js/models.js#L2304 To avoid this, we set the price as manually set. Conceptually, this is indeed the case since we manually chose the percentage, therefore the price. opw-2009761 closes odoo/odoo#34416 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
Avoid crash at currency conversion when no company is set on the SO opw-2009044 closes odoo/odoo#34408 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Priyanka Kakadiya authored
It's currently possible for binary downloads to be missing an extension entirely. Generate an extension from the mimetype and use that. Also ensure the existing extension (if any) matches the mimetype. Warning: this may require adding new mimetype/extensions pairs to the local mimetype database similar to f413d155. Also fix missing or incorrect filenames on records without a filename field: in some Odoo versions the client would send a filename of "null", resulting in a download of e.g. "null.pdf" instead of the attachment or inferred name. Task 2025716 closes odoo/odoo#34299 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Jun 26, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
- Make a SO with a product that have a carriage return in its description - Export FEC report The CSV contains new lines and is not correctly formatted. opw-2026861 closes odoo/odoo#34385 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
Backport of: a3519638 fe9e7d47 opw-2026861
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
- Install stock module - Activate multi-company and variants - Create a second company - Create a product with 2 variants - Create a picking with the product for both companies - Add an attribute on the product with 2 values - Save An AccessError is raised on `stock.move`. It arises because the field `product_qty` on `stock.move` must be recomputed but is on a record in a different company. The `try` / `except` clause doesn't protect against the recomputation. Indeed, what happens is: - try to unlink in batch => AccessError due to recomputation - try to unlink individually => AccessError due to recomputation - try to write individually => the field couldn't be recomputed before (flagged as dirty), so try again to recompute => AccessError We perform the operation as sudo, and take care of checking the access rights beforehand. opw-2009450 closes odoo/odoo#34369 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Jun 25, 2019
-
-
Bohdan Lisnenko authored
closes odoo/odoo#33858 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com> closes odoo/odoo#34363 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
-
- Jun 24, 2019
-
-
Goffin Simon authored
When registering a payment against multiple vendor bills and change the memo, the memo must be populated to all the payments. This behavior has been introduced with the following commit in stable 11.0: c04065ab opw:2024652 closes odoo/odoo#34322 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Jorge Pinna Puissant authored
Backport from 12.0 to 11.0 (commit: 3cbdfe88) - Have two crm teams with the same team leader, and without team members (team1, team2 as instance). - Create a new lead, add as Salesperson the team leader, and as Sales team the second previously created team (team2). - Save the new lead. Before this commit, when we save the lead, the sales team will change, to set the default sales team for the chosen Salesperson, in this case team1. opw-2005924 closes odoo/odoo#33898 closes odoo/odoo#34327 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Jun 23, 2019
-
-
Odoo Translation Bot authored
-
- Jun 20, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
A special folder named `0.0.0` can contain scripts that are run on upgrade of any version. They are useful to make some sanity checks or other verifications to ensure database consistency. The first version of this patch used the more eye-catching `any` for the migration folder, but it was problematic for upgrading from an older version that doesn't contain this patch. Using a version "number" containing two dots is required to avoid it being prefixed with the server version (see `convert_version` method) and resulting in a version like `10.0.any`. Such version would have been executed, even without this patch, when upgrading from an older major server version (9.0.1.0 < 10.0.any). closes odoo/odoo#34268 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
Nicolas Martinelli authored
- Create 2 included taxes: 21 % and 6 % - Create a product A with 21 % as default tax - Create a fiscal position to map the tax 21 % to tax 6 % - Allow the fiscal position in the POS - Add product in a POS order - Apply the fiscal position The subtotal is not recomputed correctly. On the other hand, if the fiscal is first set then the product added, there is no problem. This is because the `fix_tax_included_price` is only called by `add_product` and not when changing the fiscal position. opw-2020755 closes odoo/odoo#34260 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Jun 19, 2019
-
-
Xavier Morel authored
DROP CONSTRAINT (even with IF EXISTS is specified) acquires an ACCESS EXCLUSIVE lock on the table, preventing e.g. inserts in an other transaction, so ir_logging would systematically deadlock if configured to the same database and a warning would be triggered during install or update (if that ran ir.logging's init). 1. hand-roll the "IF EXISTS" bit, to avoid taking an ACCESS EXCLUSIVE lock on the table if the problematic constraint does not exist and thus doesn't need to be dropped (which by now should be the vast majority of cases). Replacing DROP CONSTRAINT with DISABLE TRIGGER does not fix the issue as *that* acquires SHARE ROW EXCLUSIVE. While that's less constraitning than ACCESS EXCLUSIVE, it still conflicts with an insert's ROW_EXCLUSIVE. 2. add a timeout to the logging INSERT anyway, the deadlock is still an issue if we're updating a database which does have the problematic constraint, and we want to preclude the possible eventual introduction of new deadlocks in the future. closes odoo/odoo#34243 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Christophe Simonis authored
-
Olivier Colson authored
[FIX] account: make cash basis taxes work in case several account move lines are reconciled within the same account.move Such move lines can be created by POS, when closing a session. Because of commit https://github.com/odoo/odoo/commit/d3453f7d152d486cb5df01b4e40dbde57f59b49e , the cash basis entries are now created *after* reconciling everything (and not during reconciliation anymore). This causes multiple lines of the move created for the sessions to be reconciled together in case a refund was made (partial or not). Solves ticket 2008085 closes odoo/odoo#34237 Signed-off-by:
Cedric Snauwaert (csn) <csn@openerp.com>
-
Julien Castiaux authored
There is no guaranty that both the request body and the response body will contain JSON data. This fix corrects the logging by printing the raw text in case of json decode error. opw-2006561 opw-2024242 closes odoo/odoo#34221 Signed-off-by:
Julien Castiaux <Julien00859@users.noreply.github.com>
-
- Jun 27, 2019
-
-
Goffin Simon authored
The tags set for TVA déductible (achat) 5,5% TTC were for "TVA collectée" opw:2026360 closes odoo/odoo#34410 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-