- Oct 20, 2020
-
-
Antoine Prieels authored
We used to patch http.py using a diff. This was really not practical because every time the file was modified, the diff had to be recreated. We now override the specific methods directly. closes odoo/odoo#60366 X-original-commit: a6012f03 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com> Signed-off-by:
Antoine Prieëls <aprieels@users.noreply.github.com>
-
qsm-odoo authored
For some strange reason, the footer slideout effect was not working on Firefox anymore. The height of the footer is not understood by Firefox sticky implementation which it seems to not understand because of the combination of 3 items: the footer is the last :visible element in the `#wrapwrap`, the `#wrapwrap` uses flex layout and the `#wrapwrap` is the element with a scrollbar. As neither of the last two items can be changed, this commit fixes the problem by adding a pixel div element in the DOM after the footer on page load, if the slideout effect is enabled. This is obviously not ideal but solves the problem while waiting for another solution. Part of https://github.com/odoo/odoo/pull/60271 task-2312878 closes odoo/odoo#60361 X-original-commit: c8fc4a11 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
qsm-odoo authored
E.g. the scrolltop button option has a checkbox followed by a select on the same row and the checkbox was partly cut because of it. Part of https://github.com/odoo/odoo/pull/60271 task-2312878 X-original-commit: 70570c69
-
Benjamin Vray authored
Before this commit, line height on items in a select was not applied if the items were in a we-title tag (this is the case when using the string attribute on we-button instead of text content). Part of https://github.com/odoo/odoo/pull/60271 task-2312878 X-original-commit: d184004c
-
Thibault Delavallée authored
closes odoo/odoo#60362 X-original-commit: aa287dc0 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Nasreddin (bon) authored
Issue - Install "eCommerce" and "Inventoy" - Activate "Fedex" delivery connector in settings - Publish "Free Delivery" and "Fedex US" delivery method - Put the "FedEx" one above the "Free Delivery" - Go to shop and add an item to cart - Set an adress with no ZIP code and checkout - Select a payment methode and pay Order is generated without selecting a delivery method Same behavior happend when using only "Fedex" as delivery method. Cause The flow make the `payment.payment_form` trigger start after `website_sale_delivery.checkout` JS module. In 'start' function of `payment.payment_form`, the `disabled` attribut is removed from button if no checkbox_cgv is present and therefore break the `disabling` managemet since `disabledReasons` payButton data are not sync anymore. Solution Remove 'disabled' attribut only if has `disabledReasons` data on payButton (checkbox_cgv feature alter `disabledReasons`). opw-2355407 opw-2357605 closes odoo/odoo#60359 X-original-commit: 04e589e8 Signed-off-by:
bon-odoo <nboulif@users.noreply.github.com>
-
nie authored
Steps to reproduce the bug: - Activate Margins in Sales > Settings - Go to the pivot view of quotations - In Measures, click Margin (%) Bug: Margin percentages are aggregated by computing the sum of the margin sub-percentages instead of using the data of the aggregated row (i.e. agg. margin / agg. total). Explanation: This is one of the flaws of the pivot view. The best way to solve this would be to create a custom aggregation in PostgreSQL. This commit is just hiding the measure for now. opw:2349896 closes odoo/odoo#60354 X-original-commit: 1e3fc6894b13d51a3f6327653afbf8d5a316a21d Signed-off-by:
backspac <backspac@users.noreply.github.com>
-
Achraf (abz) authored
Issue - Install 'Dashboard' - Try to add something to the dashboard via 'Add to my dashboard' - Enter custom name - Click on 'Add' Cause The name of the action was taken instead the input content Solution Take the input content opw-2363000 closes odoo/odoo#60352 X-original-commit: 933ef22e Signed-off-by:
Anh Thao PHAM <kitan191@users.noreply.github.com>
-
Anh Thao Pham (pta) authored
In a POS session, in a language that does not use dot (.) as decimal separator (i.e. French), when adding a Product, it can happen that the decimal part of the price is not converted correctly after applying "field_utils.parse.float". (i.e. 2.69 becomes 269) The issue happens in "set_unit_price" function. To prevent this to happen, "field_utils.parse.float" will only be applied if the price given as parameter is not a number. opw-2357848 closes odoo/odoo#60344 X-original-commit: 7687732a Signed-off-by:
Anh Thao PHAM <kitan191@users.noreply.github.com>
-
Jorge Pinna Puissant authored
closes #59683 closes odoo/odoo#60343 X-original-commit: 1c0db7b2 Related: odoo/enterprise#14229 Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com>
-
Herbert Riess authored
Current behavior: call to _file_read() within "for attach in self:" loop references self rather than attach Expected behavior: execute _file_read() individually for every record in self (via "for attach in self:" loop) This is not an issue in standard where _file_read is an api.model method but in case of overwrite (e.g. issue reported at odoo/odoo#60016 has implemented an AWS integration) it makes sense closes odoo/odoo#60342 X-original-commit: 160043a4 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Laurent Mignon authored
Before this change the rollback hooks were never called since rollback() was never explicitely called by the framework. At the end of a transaction, if no error occurs the famework call commit() on the odoo cursor. In all cases, the transaction ends with a call to close(). Into the implementation of _close() rollback() is called on the underlying connection to ensure that not committed changes are rollbacked. That's the reason why despite the fact that rollback() was not called on the Odoo cursor, changes are not committed into the db in case of exception. To keep the same behaviour and avoid to have to explicitely call rollback() on the odoo cursor to trigger the execution of registered rollback hooks, these hooks are now processed in _close(). Since the list of registered hooks is emptied if commit() is called, we are sure that rollback hooks are only executed in case of rollback. OPW #2294911 closes odoo/odoo#60339 X-original-commit: dce9a05f3a5d37fab711c8ca3c5444941f98e814 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com> Co-authored-by:
Raphael Collet <rco@odoo.com>
-
Sébastien Geelen (sge) authored
closes odoo/odoo#60322 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
qsm-odoo authored
The button text colors were forced to the default link color while that color should only be forced for links which are not buttons. Note: this fix will not impact existing mail templates thanks to transcoding. That's why it is possible to fix safely in stable versions. Part of https://github.com/odoo/odoo/pull/60308 opw-2360756 closes odoo/odoo#60308 X-original-commit: 3d8c6eca5ffa657485bdf4bec84c07b4f978a71d Related: odoo/enterprise#14217 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
qsm-odoo authored
Primary and link buttons are "hacked" by mailing themes scss. We thus have to fix their preview if possible (as they are previewed as standard bootstrap while they actually have a different look depending on the mailing theme). Note: this commit is obviously a big hack which calls for lots of improvements in master. FIXME: this only partially work due to the new editor, it has to be fixed as soon as the master becomes stable again... Part of https://github.com/odoo/odoo/pull/60308 opw-2360756 X-original-commit: 7bd7bc25
-
- Oct 19, 2020
-
-
Priyanka Kakadiya authored
This commit enables eLearning users to share the channel linked to certification they cleared directly from the result page. Notes: 1 - We already have the option to share a certificate from the user info page or from the slide page, and the same mechanism has been utilised here. 2 - With a recent commit[1], top padding was added to the modal opened on website front-end to prevent modal overlapping the navbar. But it caused a side effect on survey result page, where navbar is hidden. So we remove this top padding on modal for the survey result page. [1] - https://github.com/odoo/odoo/commit/6ef622772f7d0172553aca6dbce9eb71855460d7 taskId - 2337696 closes odoo/odoo#58104 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Oct 20, 2020
-
-
Olivier Laurent authored
If you want to prevent pad creation without the API key, you configure the etherpad server with the 'editOnly' parameter set to 'true'. In this case (copy/pasting the settings.json): * users may edit pads but not create new ones * pad creation is only via the API But if you secure your etherpad server like this, you won't be able to create pads in odoo in certain circonstances. This use case does not work (using 'pad_project'): * secure your etherpad server ("editOnly": true) * open the Project app and choose a project * open an already existing task (or create one) * from this task, click on the "Create" button to create a new task * the 'description' field displays: "You do not have permission to access this pad" * if you save, you'll get a traceback: "ValueError: padID does not exist" The same issue arise if you create a task from the list (not kanban) view. If you create a task directly from the kanban view, there is no problem because there is an 'object_id' in the context dict. closes odoo/odoo#60333 X-original-commit: 8ffc00fb Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Olivier Laurent authored
X-original-commit: 69c551f6
-
yhu-odoo authored
Allow multi_edit on replenish report. Task 2363495 closes odoo/odoo#60319 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Oct 19, 2020
-
-
Benjamin Vray authored
Before this commit, top and bottom padding were not the same in the items snippet. We also removed horizontal paddings on the section to keep the snippet columns aligned with other snippets. task-2312878 closes odoo/odoo#60307 X-original-commit: 22a9a3de Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Oct 20, 2020
-
-
Nicolas Martinelli authored
The widget is intended for informative fields only, i.e. the fields do not need to be editable. It is not the case for the date_deadline. closes odoo/odoo#60317 X-original-commit: a4559995 Related: odoo/enterprise#14223 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
The `remaining_days` widget is intended to be used for informative purpose, hence it should not be editable. opw-2362276 X-original-commit: 4c72b153
-
- Oct 19, 2020
-
-
Jeremy Kersten authored
This solves an issue with svg images from Isometric for example. The media dialog assigns width to its displayed images thanks to the flex-basis and flex-grow properties of their container, based on the aspect ratio of each image. This was done correctly for SVG images too. However, after assigning a nice space for a specific SVG image, the image itself was not made to fill that assigned space... it only worked if the natural width of the image was higher than the assigned space. This was of course more obvious with SVG files with no intrinsic width as they would simply not appear. closes odoo/odoo#60305 X-original-commit: 585aed8b Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
- Oct 20, 2020
-
-
Antoine Guenet authored
Changelog: [IMP] Resizer: prepare for use of Resizer in Odoo [FIX] FollowRange : constrain floating bar inside the visible viewport closes odoo/odoo#60267 Related: odoo/enterprise#14201 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
- Oct 19, 2020
-
-
Antoine Guenet authored
-
- Oct 20, 2020
-
-
jbw authored
There is no plausible case where "print QR-invoice" button is needed on Credit Note form view. closes odoo/odoo#60311 Task: 2351817 X-original-commit: c4ac11aa9bdcb690d9dffbd1759d68ba4398dbb5 Signed-off-by:
jbw-odoo <jbw-odoo@users.noreply.github.com> Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
- Oct 16, 2020
-
-
Sébastien Geelen (sge) authored
closes odoo/odoo#60169 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Gorash authored
Issue: Add dynamic carousel in the page, then change the footer template, then reply "Yes, I want to save & reload", then the page is broken because the new class and data attributes are not saved. closes odoo/odoo#60077 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Gorash authored
Issue: Dynamic carousel has a wrong mobile preview because the DOM must change when the screen size change.
-
- Oct 15, 2020
-
-
Gorash authored
-
- Oct 19, 2020
-
-
Randall Castro authored
closes odoo/odoo#60284 X-original-commit: 89daca4b Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Balvant Ramani authored
closes odoo/odoo#60283 X-original-commit: 5df06d8e Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Nicolas Galler authored
Behavior before the fix: - if you create a sales order for a customer invoice address (a child partner record), then create the invoice for that order, the partner_id is not consistent between the move_line (some get the child partner id, some get the commercial partner id = the parent partner id) - if you create the invoice directly from the accounting app for a child partner, the commercial partner id is used consistently for all move lines (the invoice itself keeps the child partner id) Behavior after the fix: - when an invoice is created from a sales order, the partner id is set using the commercial partner id, consistently for all lines (in this way the behavior is consistent with that of the accounting app) It is more appropriate to use the commercial_partner_id for this purpose as it is used pretty consistently in the account_move file opw-2347878 closes odoo/odoo#60302 X-original-commit: cd299518ae45f2732d47788869b013be16b814e8 Signed-off-by:
Jorge Pinna Puissant (jpp) <jpp@odoo.com> Signed-off-by:
Nicolas Galler <nicocrm@users.noreply.github.com>
-
Pierre Masereel authored
When you hava a fiscal position that that map one tax included into the price to another, the new amount is wrong. I we have a fiscal position that map a tax of 10% included to 20% included, and a product at 110$ having 10% included. When we map the tax from 10% to 20%, the new price is 100$ but should be 120$. This is because for now, the price is fixed to get the amount without tax, which perfectly works when destination tax is tax excluded. But when you call compute_all from a price with a tax included (20%) it keep the price and compute the tax amount out of this price. So to fix this issue, whent the origin tax and destination tax are included, we are computing the base amount (like before) and then we compute the new tax amount wihtout trying to find the tax amount out of the price. This will lead to have the same behavior between accounting and POS closes odoo/odoo#60312 X-original-commit: f8737b46 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
Josse Colpaert authored
This way the PCN874 report is already there. Existing databases will need to relink the taxes with the report however. closes odoo/odoo#60295 X-original-commit: 6963f58d1c23065eec440d5be23c93f73c24b3bd Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Priyanka Kakadiya authored
In mass mailing (_sms) when you set `Mailing Contact` as target model the `opt_out` field is added to the default domain. However as it is a computed field depending on a single mailing list given in context it should not be used that way. Moreover current implementation raises a warning as only some custom views can use this field accordingly. This commit removes `opt_out` field being set by default in mailing domain and also removes the UserError raised by the search function, thus avoiding unwanted warnings. Opt-out field is automatically taken into account when sending mass mailing on contacts (see ``_get_opt_out_list``) so removing it from domain is actually even better for coherency. Opt-out is not an option in sending process. Task Id-2300427 PR #57310 closes odoo/odoo#60262 X-original-commit: 5ccf5b51 Related: odoo/enterprise#14200 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Victor Feyens authored
Avoid filtering/checking the same condition multiple times on the same records... This allows to avoid n more fetch of all applicable coupon programs from the database (because _check_promo_code is called on each program in a loop). Also apply the date filter directly in SQL: * The computation of inherited fields (_inherits) by the orm is intrinsically slow. The fields rule_date_from and rule_date_to checked in the _filter_on_validity_dates python filter are inherited from sale.coupon.program.rule model. * Filtering recordsets in SQL is faster. closes odoo/odoo#60292 X-original-commit: 679ebc33 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Victor Feyens authored
* Use set instead of recordset to incrementally join records * avoid filtered and mapped calls when possible * use generators correctly sum([gen]) --> sum(gen) X-original-commit: d3daa379 Co-authored-by:
Loan Sens <lse@odoo.com>
-
Victor Feyens authored
_get_applicable_no_code_promo_programs always returns a subset of _get_applicable_programs ... We can thus avoid summing the results from the two methods, which triggered unnecessary operations and resulted in a recordset with useless duplicates... Furthermore, as _get_applicable_programs returned recordset is only used to compare to other recordsets (substraction or comparison), it doesn't need to be sorted by the model order. We can thus safely order the result by id instead, to reduce the query complexity. X-original-commit: 5d45322c
-
Victor Feyens authored
When coupon is installed, all cart (SO) updates on the e-commerce go through the _remove_invalid_lines method. It has been proved to be a performance bottleneck on big instances with a lot of coupon programs. To reduce the performance impact of this method, this commit reorganize it to avoid unnecessary operations as much as possible. X-original-commit: 447057cf Co-authored-by:
Loan Sens <lse@odoo.com>
-