- Jun 27, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
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
-
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
-
- Jun 20, 2019
-
-
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>
-
- Jun 18, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
- Jun 17, 2019
-
-
Yoshi Tashiro authored
As a convention, JPY currency symbol normally shows before the amount. closes odoo/odoo#34113 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jun 13, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Vannieuwerburgh authored
Stock.locations should be in no-update: Limit the impact of recompute fields during the upgrade of stock module. (especially method _compute_product_availability) Limit the impact on migration Method _compute_product_availability is triggered during an upgrade of module and during migrations. This may take a lot of time of big databases closes odoo/odoo#34074 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Jun 12, 2019
-
-
Julien Castiaux authored
In the Discuss app, using Chrome or IE11, try to send the same attachment to different channels. The first attachment is correctly detected but not the next ones. The problem is due to a browser inconsistency, on firefox selecting the same file in an `<input type=file>` triggers the `change` event. This is not the case on Chrome/IE, selecting the same file doesn't triggers an `onchange`. opw-2006647 closes odoo/odoo#34076 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Xavier-Do authored
Installing test_new_api without demo will fail since demo_user does not exists. This is a problem if we want to test migration with all modules installed. This simple fix solve the problem. closes odoo/odoo#34065 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
- Jun 07, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Nicolas Martinelli authored
Display extra information on error messages: - Access error based on ACLs: user, fields (if applies) - Access error based on record rules: user, ids - Missing error: model, operation, user, ids closes odoo/odoo#33945 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com> Co-authored-by:
jev-odoo <jev@odoo.com>
-
- Jun 06, 2019
-
-
Rishabh Jadia authored
Before this task, when creating the related field from the studio, it is by default stored. When we change the field name in 'ir.model.fields' using ORM's write method, it also renames the column in the table associated with the field's model. This is the expected behavior. But when someone tries to change the 'name' of a non stored field, the column is not available in the associated model, and so trying to rename the column results into traceback. This issue was probably there for a while but came into light with the task 1985710. More info can be found on the chatter of the task. This commit fixes the issue by adding an extra check before renaming the table column. The query will be executed only when the field is stored and thus exists in the table. closes odoo/odoo#33944 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
Nicolas Martinelli authored
Make SQL constraints errors more accurate. closes odoo/odoo#33934 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Mahendra Barad authored
The content of these fields can't be updated, there's no reason to even show them. Just remove them from the default / auto-generated view for client actions. Task 1772242 closes odoo/odoo#29179 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Jun 05, 2019
-
-
Nathan de Pryck authored
For each asset depreciation lines we verify that there are not linked to a move. This verification was done for each line separately. Moreover, during the creation of the journal entries, we were writing on the 'line_ids'. In this case, accessing the move of a line was invalidating the cache. This fix ensure that this operation is done out of the loop and the cache is then not invalidated at each step. See opw-2000305 closes odoo/odoo#33908 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Michele Zaccheddu authored
closes odoo/odoo#33880 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jun 04, 2019
-
-
Christophe Monniez authored
Since test_pylint was moved into the test_lint module in commit b27077bb, this could break Odoo instances where a module has test_pylint in its dependency. With this commit, the test_pylint module is coming back as an empty module. closes odoo/odoo#33871 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
luisiniguezh authored
closes odoo/odoo#33851 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jun 03, 2019
-
-
Nicolas Martinelli authored
- Activate Adyen - In the eCommerce, purchase an item - Change the delivery address - Pay with Adyen A internal error is raised. It is caused by `val.replace(...)` where `val` is `False` ( due to `shopperEmail`). We make the code more robust by fallbacking on the billing email, then on an empty string. opw-2002974 [1] https://docs.adyen.com/classic-integration/hosted-payment-pages/hpp-payment-response/payment-response-merchantsig-sha-256/ closes odoo/odoo#33840 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- May 30, 2019
-
-
Christophe Monniez authored
Because Odoo still supports Android Kitkat and Internet Explorer, ES5 is the highest ECMAScript allowed version. This commit adds a new test that parses each javascript file found in addons. The test fails if unsupported js code is found. As ES6 is allowed during tests, the files under a path that contains 'static/test' are just skipped. This test uses the es-check tool (https://www.npmjs.com/package/es-check ). If the es-check tool cannot be found, the test is simply skipped. Also the test_pylint module is renamed to a more generic name test_lint, that way, every linter test can find a shelter here. closes odoo/odoo#33724 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Jun 03, 2019
-
-
Priyanka Kakadiya authored
In a web editor, add some text, select the text, add a link and immediately discard the link modal. Traceback. The traceback is a execute `setEnd` on `Range`, that error is thrown because editable DIV doesn't save old range Odoo wrap code does some text node split in order to attach the link just on the selected text. If it correctly re-set the underlying structure, it does not update the $(editable) structure used to restore ranges. After this commit, editable div will use newly created range for the element for ex: -> content: test -> selected content "test" when click on link dialog: ec: test , eo: 4, sc: test, so: 0 selected content -> start 0, end 4 -> "test" like this after clicking on discard: ec: null text element, eo: 4, sc: null text element, so: 0 selected content -> ec and sc both are null, so it will throw an error while setting cursor position after applying fix when click on discard: ec: test, eo: 4, sc: test, so: 0 selected content -> start 0, end 4 -> "test" task - 1955863 closes odoo/odoo#33792 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- May 28, 2019
-
-
Christophe Simonis authored
-
Christophe Simonis authored
-
- May 27, 2019
-
-
Benoit Aimont authored
There was no way to inherit properly action_move_create method. opw:1974069 closes odoo/odoo#33488 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-