- Feb 15, 2016
-
-
Denis Ledoux authored
-
Denis Ledoux authored
-
Denis Ledoux authored
Use the same factor than the one used when computing the products to consume at confirm. Before, the quantity of products to consume was wrong when using a different unit of measure in the BOM than in the production order. e.g. - BoM defined as: - 1 dozen of milk - BoM lines: 1 cow - Production order: - 1 unit of milk - BoM: The above one At confirm, the quantity to consume is 0,083 cow (1 cow / 12, this is correct) But, when updating the quantity to 2.0, it updated the quantity of cow to 24.0, instead of 0,16. opw-669447
-
- Feb 14, 2016
-
-
Odoo Translation Bot authored
-
- Feb 12, 2016
-
-
Denis Ledoux authored
From saas-6, setting `0` as maximum available seats means there is an unlimited amount of tickts that can be sold, as stated in the help message of the field: ``` Define the number of available tickets. If you have too much registrations you will not BE able to sell tickets anymore. Set 0 to ignore this rule set as unlimited. ``` This domain is the same domain used than in the QWeb views of `website_event_sale`. opw-669355
-
- Feb 11, 2016
-
-
Jeremy Kersten authored
Join can fail if url contains non-ascii char Fix urls like: /page/波 /page/русский /page/%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9
-
- Feb 10, 2016
-
-
Christophe Simonis authored
-
- Feb 09, 2016
-
-
Joren Van Onder authored
The POSBox attempts to maintain whatever Wi-Fi connection it has as best it can. When it loses it's current Wi-Fi connection it will attempt to recreate it every 30 seconds. This works well, but a side-effect of this is that it'll also print a 'Could not connect to LAN' ticket every time it fails. If you where to leave the POSBox with Wi-Fi on for an extended period of time you could return to a lot of 'Could not connect to LAN' tickets. This makes it so that the 'Could not connect to LAN' ticket only gets printed once upon connection loss. Although it would be simpler to just not print this ticket at all when losing connection, it is very useful to know when the POSBox has lost connection. Otherwise when it loses connection it would stop working and noone would know why.
-
Denis Ledoux authored
When converting a new API call to an old API call, the context is expected to be found within the kwargs argument. If not, it is seen as a regular argument. See `get_context_split` in `openerp/api.py` As it was not the case in the overidden method `search` in `marketing_campaign.py`, if a module overriden the method `search` of `ir.actions.report.xml` using the new API, the context wasn't treated as such correctly, and it leaded to wrong number of arguments passed. I take the opportunity to pass all arguments that are passed as kwargs in the base `search` as kwargs as well, to be clean. opw-668471
-
Nicolas Lempereur authored
In ddac26cd `crm.crm_medium_website` was replaced by `utm.utm_medium_website`. There was one place where it was not reverberated so the medium_id was always unset in that instance (a crm.lead created from a website form). opw-668853 note: no need to forward port after saas-6 (code change)
-
Olivier Dony authored
See 4de3f4c4
-
Raphael Collet authored
Specifically, when one API implementation calls the other one, it has to call the method *from the same class*. Otherwise, overriding the method may result in an infinite recursion. Consider: class A(Model): _name = 'stuff' @api.v8 def foo(self): return 42 @api.v7 def foo(self, cr, uid, context=None): return self.browse(cr, uid, [], context).foo() class B(Model): _inherit = 'stuff' def foo(self, cr, uid, context=None): return super(B, self).foo(cr, uid, context=context) + 1 and now call: `env['stuff'].foo()`. This invokes `B.foo` (new-API), which calls `B.foo` (old-API), which calls `A.foo` (old-API), which calls `B.foo` (new-API) instead of `A.foo`! This issue would not be present if old-API `A.foo` was defined as: @api.v7 def foo(self, cr, uid, context=None): return A.foo(self.browse(cr, uid, [], context))
-
Laurent Mignon authored
When generating SQL queries, `column._symbol_c` must be used as placeholder as for the method 'set' of the column itself. Otherwise it is not possible to define specialized columns.
-
- Feb 08, 2016
-
-
Nicolas Lempereur authored
When rerouting from a lang path token to the given route (eg: /en_US/route_path to /route_path) it is better to keep request variable clean. opw-668563
-
Denis Ledoux authored
This is related to revision 80b373f1. The above revision leads to the inability to import new records without any `xml_id` set Technically speaking, this is because you cannot concatenate `False` with `'_'`, in `xml_id + '_'` opw-668962
-
Denis Ledoux authored
-
- Feb 07, 2016
-
-
Odoo Translation Bot authored
-
- Feb 05, 2016
-
-
Olivier Dony authored
-
- Feb 04, 2016
-
-
Cédric Snauwaert authored
The result of searching on a o2m field for a missing ID was the whole set of records which do not have any lines in the o2m fields. This is definitely not the desired behavior, and could lead to disatrous performance, because the returned set could be extremely large. One example of such behavior is for recomputing fields in the env cache in 8.0+. When a o2m line gets deleted, it triggers the recompute of any dependent fields. In order to locate the records to recompute, the ORM searches for the 'parent' records in the comodel table. When this operation is done by 2 users concurrently the o2m line may not exist anymore, and the bug is triggered: dependent fields are recomputed on a possibly very large set of records that did not need any recompute!
-
Antonio Espinosa authored
Apply the same behaviour as the unlink done on account.invoice.line. This should properly be implemented with a ondelete=cascade but this is not possible in stable version as it requires an update.
-
Raphael Collet authored
-
Raphael Collet authored
The recursion was based on an incorrect assumption: the cache of the target environment is initially empty. If another computation left some value there, the copying is incomplete, and that causes bugs in onchanges.
-
- Feb 03, 2016
-
-
Olivier Dony authored
-
Olivier Dony authored
-
Denis Leemann authored
The kanban CSS applies both a 90 degree rotation and a top-bottom rtl writing mode to folded kanban group titles. This was initially fine because browsers didn't support the (SVG) "tb-rl" value for writing-mode and the property was thus ignored. Firefox 43 (December 2015) and Chrome 48 (January 2016) added support for this value, and thus now end up with a 180 degree rotation on the title. Issue #7955 fixed it in 8.0 due to MSIE impact, this is essentially a backport to 7.0. close #10687
-
Martin Trigaux authored
This controller was very slow as not providing a pricelist computed the price of all products of all pricelists. Instead only fetch the prices for the useful products.
-
bima authored
Could incorrectly rename the stock.location.path objects, and in case the route has push_ids but no pull_ids would crash the method entirely. closes #10747
-
Olivier Dony authored
-
Olivier Dony authored
-
Olivier Dony authored
-
- Feb 02, 2016
-
-
Olivier Dony authored
-
Olivier Dony authored
-
Olivier Dony authored
Handling update/create of existing values is already handled by ir.values.set() itself.
-
Christophe Simonis authored
-
Xavier Morel authored
-
Xavier Morel authored
While the signature makes sense in an old API context (sort-of) it's very easy to misuse in a new API context as one'd expect `has_group` to use the subject (recordset), not the user in the environment, compounded by ``env.user`` being browsed as administrator, resulting in the "obvious" ``env.user.has_group(foo)`` checking if the administrator (rather than the current user) has the specified group. Adds a divergent v8 version of has_group which first checks if it's called on a non-empty recordset, and in that case use the recordset id, otherwise fallback on the context user (to handle new API conversions which used the "correct" call convention rather than the obvious one). fixes #9649
-
Christophe Simonis authored
-
Nicolas Martinelli authored
Both UoM and UoS quantity change should be propagated. Fixes #10623 opw-667805
-
Goffin Simon authored
When changing the quantity of a SO line, the product_id_change_with_wh must be triggered to check the availability of this product. opw:668236
-
- Feb 01, 2016
-
-
Raphael Collet authored
-