- Sep 18, 2014
-
-
Fabien Meghazi authored
-
Denis Ledoux authored
To allow display the login date according to the timezone of the user
-
- Sep 17, 2014
-
-
Yannick Tivisse authored
-
- Sep 16, 2014
-
-
Fabien Meghazi authored
-
Fabien Meghazi authored
This should be done later properly without polluting convert.py
-
Goffin Simon authored
-
Goffin Simon authored
-
Martin Trigaux authored
When a module is updated, the sql constraints were checked against postgres pg_get_constraintdef() to see if they have diverged from the one defined in python code. However this check was failing as the syntax returned by pg_get_constraintdef() (e.g. "CHECK ((credit * debit) = 0::numeric)") differs from the one returned by `unify_cons_text` method (e.g. "check(debit*credit = 0")) so the constraints were always dropped and recomputed. This adds a definition column on ir.model.constraint (storing original defintion) to detect changes. The pg_constraint is still inspected to make sure we detect constraint without ir_model_constraint but with postgres constraint defined (e.g. name_uniq defined in base.sql). This changes also the date_update field when the definition changes.
-
- Sep 15, 2014
-
-
Christophe Simonis authored
[FIX] orm: correct read_group() on models with `_group_by_full` (introduced by previous forward-port) also add tests of `_group_by_full` functionality
-
- Sep 12, 2014
-
-
Daniel Reis authored
Showcase the feature by moving auth_ldap's description to README.rst (Manual rebase of PR #1759)
-
Sebastien Versaille authored
As a contact-specific information, it would be nice to display the title in the contact modal form.
-
- Sep 11, 2014
-
-
Raphael Collet authored
When computing a field on a recordset, a subset of the records may be missing or forbidden by access rules. In that case, evaluate the compute method record by record, and mark failed records as such in cache.
-
Raphael Collet authored
The method onchange() executes onchange methods in cascade. Suppose onchange() is called and a field F=1 in the form. If an onchange method set F=2, that value is put in the result variable. If another onchange method set it back to F=1, the binding F=2 must be removed from the result variable. Fixes #2309
-
- Sep 10, 2014
-
-
Martin Trigaux authored
When sending an email, both formats 'Name <email>' or '"Name" <email>' can be used for fields 'From', 'To' and others. If the name contains unicode characters, a regex only matching '"Name" <email>' was used to encode the name with RFC2047. That meant that the name was not encoded and eventually dropped, using only the email part. Instead of using a limited regex, use the parseaddr method from email library. Fixes lp:1272610, opw 607683
-
Yannick Tivisse authored
-
Raphael Collet authored
Cascading onchanges can be caused by a related field computed in cache. This causes a bug in sale order lines, were setting the uom field forces reading product fields, which are inherited from product templates. The inherited fields are computed as related fields, which marks the product record as dirty. This subsequently triggers an onchange on the product field, which resets the uom field!
-
Denis Ledoux authored
-
Raphael Collet authored
This fixes issue #2146. The inverse of a one2many field can be an inherited field (_inherits). In that case, we cannot read its value with a simple database query. Instead, we let the related field read it, but for performance considerations we disable the prefetching of other fields.
-
- Sep 09, 2014
-
-
Simon Lejeune authored
As the context was not transferred, it was never translated.
-
Denis Ledoux authored
-
Christophe Simonis authored
-
Christophe Simonis authored
name_get() must return a value for each ids and keep order of ids.
-
Raphael Collet authored
-
Xavier Morel authored
-
- Sep 08, 2014
-
-
Olivier Dony authored
-
Olivier Dony authored
Sometimes a cached bundled could be missing in the ir.attachment filestore (for example after copying a database for test purposes without duplicating the filestore as well). When this happens ir.attachment will return an empty file contents ; treat this as a cache miss. This means empty bundles would not be cached, which is not a big issue - there is little benefit in caching them, and they should not be common nor useful.
-
Olivier Dony authored
When deleting filesystem-backed attachements, the deletion on the file-system is not transactional. In the event of a transaction rollback, the file deletion would not be rolled back, which is a dangerous side-effect. This can happen for example when several transactions try to delete the same file(s) at the same time. The duplicate deletions might be detected by the database (being concurrent update errors), and rolled back at the point of the DELETE query, to be retried. If the files have already been deleted in the file system it before the rollback, it leaves the system in an inconsistent state, at least temporarily. One case where we have seen it is when web bundles are loaded by many web users at the same time, right after being updated (and thus invalidated). As they are currently cached as ir.attachment records, this often causes a corruption of the cache.
-
Olivier Dony authored
-
Xavier Morel authored
Avoids 2 rendering passes, and allows editing e.g. events detail page, which couldn't be done (due to groups=public in a mail component) fixes #1994
-
Denis Ledoux authored
if the model of an attachement no longer exists (the according module have been uninstalled, for instance), ignore the security check
-
- Sep 05, 2014
-
-
David Monjoie authored
-
David Monjoie authored
-
Fabien Meghazi authored
The feature was broken due to an incompatibility when forward porting 624f256f and a78e27fc
-
Denis Ledoux authored
Backport of 8.0 fix was not enough for 7.0, because it still fails for the legacy reference match (model+res_id), which is not used in 8.0
-
- Sep 04, 2014
-
-
Christophe Simonis authored
-
Raphael Collet authored
Add an attribute 'related_sudo' (True by default) for related fields. A related field is computed as superuser if related_sudo is True. Add explicit related fields 'name' and 'email' on 'res.users', as these should be readable by the public user with module website_forum.
-
Raphael Collet authored
Fix modules with code like "record.id in other.stuff_ids".
-
Raphael Collet authored
The test in test_ir_model creates a custom model. This causes a full reload of the registry, which recursively installs the required modules while 'base' is being tested. As a side effect, it commits stuff from the database, so that the effects of test_ir_model are actually not rolled back.
-
Quentin De Paoli authored
-
Raphael Collet authored
This fixes a bug which is usually triggered in module account_followup, but does not occur deterministically. Some recomputations of computed fields are apparently missing. Environment objects containing recomputations todos and kept alive by a WeakSet, are removed by the Python garbage collector before recomputation takes place. We fix the bug by moving the recomputation todos in a non-weakref'ed object.
-