diff options
| author | Antonin Bourguignon <abo@openerp.com> | 2012-10-02 14:06:34 +0200 |
|---|---|---|
| committer | Antonin Bourguignon <abo@openerp.com> | 2012-10-02 14:06:34 +0200 |
| commit | c28dfb19e19ea9dde6de2ae5fb20cfec3860744e (patch) | |
| tree | 4fdff0732f33426af59c7792b8e727458afe913c /addons/document/document.py | |
| parent | 79b2a0f6c6017d984b15160b8be806ecf7131b3e (diff) | |
| parent | 2b2288a3bd29c096cc5eb70c4d966cfd32bffc45 (diff) | |
[MERGE] trunk-unmutable-defaults-abo: fix the last few methods that still have mutable defaults
also improve code style (methods signatures and whitespaces)
contribution of Lionel Sausin from Numerigraphe
bzr revid: abo@openerp.com-20121002120634-ms2ins653tktqfnt
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index cb30e5f93c9..3ae783f49e7 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -149,7 +149,7 @@ class document_file(osv.osv): _sql_constraints = [ # filename_uniq is not possible in pure SQL ] - def _check_duplication(self, cr, uid, vals, ids=[], op='create'): + def _check_duplication(self, cr, uid, vals, ids=None, op='create'): name = vals.get('name', False) parent_id = vals.get('parent_id', False) res_model = vals.get('res_model', False) |
