- Jun 14, 2018
-
-
celm1990 authored
This sets the field country_enforce_cities readonly in order to skip inverse field's write on contact creation. Was PR #24686. Courtesy of Carlos Lopez
-
- Jun 13, 2018
-
-
Christophe Simonis authored
-
Goffin Simon authored
Inspired from 12b11c1e Fixes #25214 opw:1849965
-
Jairo Llopis authored
The lower-level widget itself supports passing options to the underlying datepicker library. However this is not exposed to higher-level view declaration. With this patch, one can declare a field in a view such as: ```xml <field name="datefield" options='{"daysOfWeekDisabled": [0, 6]}'/> ``` That option would land in the widget and disable those weekdays. Documentation has been updated accordingly. Closes #25044.
-
Christophe Simonis authored
-
Thomas Binsfeld authored
Closes #19961.
-
Christophe Simonis authored
-
Christophe Simonis authored
-
- Jun 12, 2018
-
-
Toufik Benjaa authored
- When receiving a S2S payment feedback from Ogone server, we call the method '_ogone_form_get_tx_from_data' which does a "pre-process" of the data to retrieve the payment.transaction linked to this payment. It also checks the hash signature of the data to be sure it comes from Ogone. Right after, we call "_ogone_s2s_validate" which make a HTTP call to ogone, to retrieve the data related to the transaction which were already sent by Ogone (maybe to be sure the data comes from Ogone?). So instead of calling "_ogone_s2s_validate" we now call "_ogone_s2s_validate_tree" which processes the data from Ogone. We are sure they come from Ogone, since they passed the hash signature when calling "_ogone_form_get_tx_from_data".
-
Andreas Perhab authored
Close connections of incompatible databases instead of closing all connections. Introduced in 61003675 Closes #24479 opw-1852793
-
Toufik Benjaa authored
- Each time we check if a session is valid we create a new cursor. This could lead to issues with db_maxconn that limits the number of connections to the postgresql server. In a perfect world, a worker should use a single connection to postgres to process the request. The only known side effect is that the cursor is created earlier in the execution of the code. - This commit fixes issues with the longpolling raising Psycopg2.PoolError exceptions on databases with a lot of clients.
-
Toufik Benjaa authored
- Searches made on tickets using the portal aren't kept when changing page. This commit makes sure the search is kept. OPW-1857033
-
Jairo Llopis authored
Creation date is a datetime field. However code is giving a date value. as create date is a magic field with a default value there is actually no need to override it. Closes #22447.
-
Jairo Llopis authored
[There's a chance mail statistics disappear](https://github.com/odoo/odoo/blob/b3b8a471cc3e02488dcc0da991fd1d828978220d/addons/mass_mailing/models/mass_mailing.py#L519), which is probably not a very good decision, but there it is. Then, `add_click()` produces a 500 error when a user clicks on the mass mailing if the email comes from an old attempt. Fix is to check the statistic record effectively exists before linking it. Closes #22447.
-
Subodh Dahal authored
Fixed the xpath expression for inserting snippet into Structure tab Closes #22971
-
Subodh Dahal authored
Done at #22971
-
Christophe Simonis authored
Oversight of previous forward-port
-
Christophe Simonis authored
-
Yannick Tivisse authored
Since https://github.com/odoo/odoo/commit/f93c4f4262e0a7102e34c6ed8f2b8f51eef45062 the feature is not setting the recipients correctly when trying to send a mass mailing to all the event tracks speakers.
-
Stephane Le Cornec authored
Do not force to use the comptued one. Make an AND between both. Closes #22396
-
Nicolas Martinelli authored
In P3.6, the error message has changed.
-
Jeremy Kersten authored
This commit is related to #24761
-
Carlos Dauden authored
Before this commit, display a datetime field with the widget="date" was ignoring the timezone. This commit closes #24761
-
Jairo Llopis authored
Chatter suggests to include recipients on several objects, notably on registrations. When a registration is done through a public interface like website in website_event associated partner is the public user. In that case proposing to mail the public user does not make sense. It should propose the real email stored on the registration record. To fix that we filter the partner if it is linked to the pubic groups. The fix includes a sudo + context switch in a loop. As this method is called only on a recordset of one element this has no impact on real use case. Purpose is to keep the diff minimal. Closes #23187 .
-
Adrien Dieudonne authored
Before this commit some rpc was blocked and we didn't see lost connection notifications. Steps to reproduce: 1) Go to any form view 2) Force disconnected from the network -> The "Connection lost" notification appears 3) Get connection back -> The "Connection restored" notification appears 3) Close the connection again -> No notification appears and the user aren't notify that the internet connection is lost. Related commit: @47cf31b5 Note: It's now important to notify the user about connection loss because a recent improvement in mobile app replaces the 'retry screen' and let the webclient handle connection issues by itself. The single odoo mobile app is supposed to work with all databases from 10.0.
-
Andrea Stirpe authored
There was a difference in the tax codes Import Buiten EU (2), some had the tag '5B Voorbelasting' and other had the tag 'Voorbelasting BTW Bis'. Link all the codes to '5B Voorbelasting' instead. This is more consistent with the rest. Closes #23119
-
Nicolas Lempereur authored
With saas-11.2's 3fbd86bc some trigger towards other fields are improved but this caused an issue when a inherited field towards a custom computed field had no depends. When we created a computed field x_custo on res.partner, we have a inherited x_custo on res.users automatically created. Both these fields have a depends computed to `('',)`, this caused an error for the one on res.partner: but this was ignored with dd048ae7. Since saas-11.2's 3fbd86bc this also caused an error on the inherited field but since an inherited field is not "manual" the error was not ignored. Thus it was not possible to create custom field on a model inheriting of another model if the fields had no depends. opw-1854786 closes #25146 Co-authored-by:
Raphael Collet <rco@odoo.com>
-
Christophe Simonis authored
-
mpanarin authored
by moving child values to a separate method. This way, other modules can properly add or remove fields to the report without overriding it completely and breaking the inheritance
-
mehdi-ghezal authored
When updating the qty on a confirmed sale order line, we want the system to add new procurement qty for the cancelled procurements. That way you can leave the cancelled procurements for what they are.
-
rgarnau authored
-
rgarnau authored
As for consumables stock levels are not that important, it should be ok to scrap a consumable at all times, even if the stock becomes negative. Tests were added to check what happens with a consumable/stockable product if stays positive/goes negative.
-
Christophe Simonis authored
-
Yannick Tivisse authored
Purpose ======= Currently, if we remove the salesman on the lead, the sales team will be replace by either the sales team of the current user or the default sales team. That way, by removing the salesman, we loose information about the sales team, and that way we loose information about the origin of the lead. Specification ============= Don't overwrite the sales team when removing the salesman on the the lead.
-
Tony Gu authored
-
Tony Gu authored
Before this fix, we can create a Bom with both product_id and product_tmpl_id filled where the product_id is not a variant of the product_tmpl_id. This is unlogical and will be even trickier when the user is not able to see the variant field on the BOM. This fix puts the product_id back to False when the product_tmpl_id is changed.
-
Daniel Dico authored
Closes #25052
-
Luis González authored
Before this commit, if a SyntaxError or any other exception occurs in a qweb attribute, and the path to the node contains at least one namespaced tag, e.g.: <mynode:node xmlns:mynode="http://example.com/mynode"> <field t-att-value="'This is a TypeError' + []"/> </mynode:node> the following exception is raised, instead of the actual one: lxml.etree.XPathEvalError: Undefined namespace prefix After this commit, if the path to the failing node contains a namespaced tag, the node is not retrieved, to avoid the above exception, So this one will be raised: Error to render compiling AST TypeError: Can't convert 'list' object to str implicitly Template: module.template_name Path: /templates/mynode:node/field In addition, a test case was included, to ensure this works as expected Closes #24824 opw-1853232
-
Andreas Perhab authored
reference: https://github.com/PyCQA/pylint/issues/1349 pylint 1.6 and python 3.5 (and below) should work fine, so no need to force people to upgrade there.
-
Long Do authored
We are looping twice on docs. To have a minimal diff we just try to reuse existing variable but with loops correctly taken into account. Closes #25008 .
-