diff options
| author | Raphael Collet <rco@openerp.com> | 2014-04-09 11:56:59 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2014-04-09 11:56:59 +0200 |
| commit | 89f5844b2ab3756b2934e2f03c7286c05b442fa4 (patch) | |
| tree | 242418f45bffd1fb7bca5323a7c6178bfebcd716 /addons/document/document.py | |
| parent | 560166d5a14306180a247d2012a06b5ba362f20d (diff) | |
[IMP] document, edi, procurement: use method Registry.cursor() (formerly get_cursor)
bzr revid: rco@openerp.com-20140409095659-sxcgsdbsxvfrzwg4
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index 85c6f71ec4d..9008f32cd20 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -2005,7 +2005,7 @@ class nodefd_content(StringIO, node_descriptor): par = self._get_parent() uid = par.context.uid - cr = openerp.registry(par.context.dbname).get_cursor() + cr = openerp.registry(par.context.dbname).cursor() try: if self.mode in ('w', 'w+', 'r+'): data = self.getvalue() @@ -2058,7 +2058,7 @@ class nodefd_static(StringIO, node_descriptor): par = self._get_parent() # uid = par.context.uid - cr = openerp.registry(par.context.dbname).get_cursor() + cr = openerp.registry(par.context.dbname).cursor() try: if self.mode in ('w', 'w+', 'r+'): data = self.getvalue() |
