Merge lp:~therp-nl/openupgrade-server/7.0-move_the_docs into lp:openupgrade-server
- 7.0-move_the_docs
- Merge into 7.0
Status: | Merged |
---|---|
Merged at revision: | 4645 |
Proposed branch: | lp:~therp-nl/openupgrade-server/7.0-move_the_docs |
Merge into: | lp:openupgrade-server |
Diff against target: |
333 lines (+67/-46) 5 files modified
openerp/openupgrade/doc/source/API.rst (+25/-15) openerp/openupgrade/doc/source/conf.py (+3/-3) openerp/openupgrade/doc/source/index.rst (+2/-2) openerp/openupgrade/doc/source/modules61-70.rst (+20/-20) openerp/openupgrade/openupgrade.py (+17/-6) |
To merge this branch: | bzr merge lp:~therp-nl/openupgrade-server/7.0-move_the_docs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Holger Brunn (Therp) | Approve | ||
Sylvain LE GAL (GRAP) | code review, no test | Approve | |
Review via email: mp+208775@code.launchpad.net |
Commit message
[UPD] Move public location to https:/
[UPD] Update old references to 6.1
[IMP] Docstrings
[IMP] Load docstrings of 7.0 specific API
[UPD] Coverage 7.0
[IMP] Increase TOC depth so that coverages are directly linked from main
page
Description of the change
I'm proposing to move the docs to our own hosted https:/
Readthedocs.org is a nice service, but in order to use Autodoc you need to configure a virtualenv and it has only worked for a very short time before it breaks again. Due to the lack of debug info, the reason for that was always unclear. Apart from that, bzr support has now been broken for 7 months[1] and the docs have not been updated during that time. I feel a bit bad about that last reason as I could probably have a look into that and try to fix the Readthedocs code, but it would not fix the first problem.
Apart from that, some general improvements in the docs.
[1] https:/
Sylvain LE GAL (GRAP) (sylvain-legal) wrote : | # |
Holger Brunn (Therp) (hbrunn) : | # |
Preview Diff
1 | === modified file 'openerp/openupgrade/doc/source/API.rst' | |||
2 | --- openerp/openupgrade/doc/source/API.rst 2012-11-24 22:22:00 +0000 | |||
3 | +++ openerp/openupgrade/doc/source/API.rst 2014-02-28 11:33:24 +0000 | |||
4 | @@ -1,22 +1,32 @@ | |||
5 | 1 | OpenUpgrade API | 1 | OpenUpgrade API |
6 | 2 | +++++++++++++++ | 2 | +++++++++++++++ |
7 | 3 | 3 | ||
23 | 4 | You can use the following functions in your pre and post scripts. | 4 | In OpenUpgrade you can use the following functions in your pre and |
24 | 5 | 5 | post scripts. Use the following import from OpenUpgrade 6.1 on. | |
25 | 6 | Note that the path to the OpenUpgrade support library is different | 6 | |
26 | 7 | in OpenERP 6 and OpenERP 6.1. For migration scripts that cover a | 7 | .. code-block:: python |
27 | 8 | migration to OpenERP 6, please do support both paths using the | 8 | |
28 | 9 | following stanza. Doing so enables the user to use your migration | 9 | from openerp.openupgrade import openupgrade |
29 | 10 | script for migrating databases from OpenERP 5 to OpenERP 6.1 in one | 10 | |
30 | 11 | step, provided that a migration script to 6.1 exists as well. | 11 | In OpenUpgrade 5.0 and 6.0, the import is slightly different. |
31 | 12 | 12 | ||
32 | 13 | .. code-block:: python | 13 | .. code-block:: python |
33 | 14 | 14 | ||
34 | 15 | try: | 15 | from openupgrade import openupgrade |
35 | 16 | from openupgrade import openupgrade | 16 | |
36 | 17 | except ImportError: | 17 | General methods |
37 | 18 | from openerp.openupgrade import openupgrade | 18 | --------------- |
38 | 19 | 19 | ||
39 | 20 | .. automodule:: openupgrade | 20 | .. automodule:: openupgrade |
40 | 21 | :members: | 21 | :members: |
41 | 22 | 22 | ||
42 | 23 | Methods for OpenUpgrade 7.0 | ||
43 | 24 | --------------------------- | ||
44 | 25 | |||
45 | 26 | The following specific methods for 7.0 are available. These have been | ||
46 | 27 | developed to cover specific needs as per data model changes in that | ||
47 | 28 | release. | ||
48 | 29 | |||
49 | 30 | .. automodule:: openupgrade_70 | ||
50 | 31 | :members: | ||
51 | 32 | |||
52 | 23 | 33 | ||
53 | === modified file 'openerp/openupgrade/doc/source/conf.py' | |||
54 | --- openerp/openupgrade/doc/source/conf.py 2013-02-08 12:27:54 +0000 | |||
55 | +++ openerp/openupgrade/doc/source/conf.py 2014-02-28 11:33:24 +0000 | |||
56 | @@ -37,15 +37,15 @@ | |||
57 | 37 | 37 | ||
58 | 38 | # General substitutions. | 38 | # General substitutions. |
59 | 39 | project = 'OpenUpgrade' | 39 | project = 'OpenUpgrade' |
61 | 40 | copyright = '2012, The OpenUpgrade team' | 40 | copyright = '2012-2014, The OpenUpgrade team' |
62 | 41 | 41 | ||
63 | 42 | # The default replacements for |version| and |release|, also used in various | 42 | # The default replacements for |version| and |release|, also used in various |
64 | 43 | # other places throughout the built documents. | 43 | # other places throughout the built documents. |
65 | 44 | # | 44 | # |
66 | 45 | # The short X.Y version. | 45 | # The short X.Y version. |
68 | 46 | version = '6.1' | 46 | version = '7.0' |
69 | 47 | # The full version, including alpha/beta/rc tags. | 47 | # The full version, including alpha/beta/rc tags. |
71 | 48 | release = '6.1' | 48 | release = '7.0' |
72 | 49 | 49 | ||
73 | 50 | # There are two options for replacing |today|: either, you set today to some | 50 | # There are two options for replacing |today|: either, you set today to some |
74 | 51 | # non-false value, then it is used: | 51 | # non-false value, then it is used: |
75 | 52 | 52 | ||
76 | === modified file 'openerp/openupgrade/doc/source/index.rst' | |||
77 | --- openerp/openupgrade/doc/source/index.rst 2013-11-12 20:53:56 +0000 | |||
78 | +++ openerp/openupgrade/doc/source/index.rst 2014-02-28 11:33:24 +0000 | |||
79 | @@ -10,7 +10,7 @@ | |||
80 | 10 | Contents: | 10 | Contents: |
81 | 11 | 11 | ||
82 | 12 | .. toctree:: | 12 | .. toctree:: |
84 | 13 | :maxdepth: 2 | 13 | :maxdepth: 3 |
85 | 14 | 14 | ||
86 | 15 | intro.rst | 15 | intro.rst |
87 | 16 | community.rst | 16 | community.rst |
88 | @@ -19,7 +19,7 @@ | |||
89 | 19 | development.rst | 19 | development.rst |
90 | 20 | API.rst | 20 | API.rst |
91 | 21 | 21 | ||
93 | 22 | You should find the latest version of this documentation here: `<http://readthedocs.org/docs/openupgrade-server>`_ | 22 | You should find the latest version of this documentation here: `<https://doc.therp.nl/openupgrade>`_ |
94 | 23 | 23 | ||
95 | 24 | Indices and tables | 24 | Indices and tables |
96 | 25 | ================== | 25 | ================== |
97 | 26 | 26 | ||
98 | === modified file 'openerp/openupgrade/doc/source/modules61-70.rst' | |||
99 | --- openerp/openupgrade/doc/source/modules61-70.rst 2013-11-12 18:05:02 +0000 | |||
100 | +++ openerp/openupgrade/doc/source/modules61-70.rst 2014-02-28 11:33:24 +0000 | |||
101 | @@ -22,7 +22,7 @@ | |||
102 | 22 | +-----------------------------------+-----------------------------------+ | 22 | +-----------------------------------+-----------------------------------+ |
103 | 23 | |account_accountant | Nothing to do | | 23 | |account_accountant | Nothing to do | |
104 | 24 | +-----------------------------------+-----------------------------------+ | 24 | +-----------------------------------+-----------------------------------+ |
106 | 25 | |account_analytic_analysis | | | 25 | |account_analytic_analysis | Nothing to do | |
107 | 26 | +-----------------------------------+-----------------------------------+ | 26 | +-----------------------------------+-----------------------------------+ |
108 | 27 | |account_analytic_default | No change | | 27 | |account_analytic_default | No change | |
109 | 28 | +-----------------------------------+-----------------------------------+ | 28 | +-----------------------------------+-----------------------------------+ |
110 | @@ -32,7 +32,7 @@ | |||
111 | 32 | +-----------------------------------+-----------------------------------+ | 32 | +-----------------------------------+-----------------------------------+ |
112 | 33 | |account_asset | | | 33 | |account_asset | | |
113 | 34 | +-----------------------------------+-----------------------------------+ | 34 | +-----------------------------------+-----------------------------------+ |
115 | 35 | |account_bank_statement_extensions | | | 35 | |account_bank_statement_extensions | Nothing to do | |
116 | 36 | +-----------------------------------+-----------------------------------+ | 36 | +-----------------------------------+-----------------------------------+ |
117 | 37 | |account_budget | | | 37 | |account_budget | | |
118 | 38 | +-----------------------------------+-----------------------------------+ | 38 | +-----------------------------------+-----------------------------------+ |
119 | @@ -44,11 +44,11 @@ | |||
120 | 44 | +-----------------------------------+-----------------------------------+ | 44 | +-----------------------------------+-----------------------------------+ |
121 | 45 | |account_followup | | | 45 | |account_followup | | |
122 | 46 | +-----------------------------------+-----------------------------------+ | 46 | +-----------------------------------+-----------------------------------+ |
124 | 47 | |account_payment | | | 47 | |account_payment | Nothing to do | |
125 | 48 | +-----------------------------------+-----------------------------------+ | 48 | +-----------------------------------+-----------------------------------+ |
126 | 49 | |account_sequence | | | 49 | |account_sequence | | |
127 | 50 | +-----------------------------------+-----------------------------------+ | 50 | +-----------------------------------+-----------------------------------+ |
129 | 51 | |account_test | | | 51 | |account_test | Nothing to do | |
130 | 52 | +-----------------------------------+-----------------------------------+ | 52 | +-----------------------------------+-----------------------------------+ |
131 | 53 | |account_voucher | Nothing to do | | 53 | |account_voucher | Nothing to do | |
132 | 54 | +-----------------------------------+-----------------------------------+ | 54 | +-----------------------------------+-----------------------------------+ |
133 | @@ -66,7 +66,7 @@ | |||
134 | 66 | +-----------------------------------+-----------------------------------+ | 66 | +-----------------------------------+-----------------------------------+ |
135 | 67 | |auth_crypt | | | 67 | |auth_crypt | | |
136 | 68 | +-----------------------------------+-----------------------------------+ | 68 | +-----------------------------------+-----------------------------------+ |
138 | 69 | |auth_ldap | | | 69 | |auth_ldap | Nothing to do | |
139 | 70 | +-----------------------------------+-----------------------------------+ | 70 | +-----------------------------------+-----------------------------------+ |
140 | 71 | |auth_oauth | | | 71 | |auth_oauth | | |
141 | 72 | +-----------------------------------+-----------------------------------+ | 72 | +-----------------------------------+-----------------------------------+ |
142 | @@ -88,17 +88,17 @@ | |||
143 | 88 | +-----------------------------------+-----------------------------------+ | 88 | +-----------------------------------+-----------------------------------+ |
144 | 89 | |base_report_designer | No change | | 89 | |base_report_designer | No change | |
145 | 90 | +-----------------------------------+-----------------------------------+ | 90 | +-----------------------------------+-----------------------------------+ |
147 | 91 | |base_setup | | | 91 | |base_setup | Nothing to do | |
148 | 92 | +-----------------------------------+-----------------------------------+ | 92 | +-----------------------------------+-----------------------------------+ |
149 | 93 | |base_status | No change | | 93 | |base_status | No change | |
150 | 94 | +-----------------------------------+-----------------------------------+ | 94 | +-----------------------------------+-----------------------------------+ |
151 | 95 | |base_vat | No change | | 95 | |base_vat | No change | |
152 | 96 | +-----------------------------------+-----------------------------------+ | 96 | +-----------------------------------+-----------------------------------+ |
154 | 97 | |board | | | 97 | |board | Nothing to do | |
155 | 98 | +-----------------------------------+-----------------------------------+ | 98 | +-----------------------------------+-----------------------------------+ |
156 | 99 | |claim_from_delivery | | | 99 | |claim_from_delivery | | |
157 | 100 | +-----------------------------------+-----------------------------------+ | 100 | +-----------------------------------+-----------------------------------+ |
159 | 101 | |contacts | | | 101 | |contacts | Nothing to do | |
160 | 102 | +-----------------------------------+-----------------------------------+ | 102 | +-----------------------------------+-----------------------------------+ |
161 | 103 | |crm | work in progress | | 103 | |crm | work in progress | |
162 | 104 | +-----------------------------------+-----------------------------------+ | 104 | +-----------------------------------+-----------------------------------+ |
163 | @@ -124,7 +124,7 @@ | |||
164 | 124 | +-----------------------------------+-----------------------------------+ | 124 | +-----------------------------------+-----------------------------------+ |
165 | 125 | |document_webdav | No change | | 125 | |document_webdav | No change | |
166 | 126 | +-----------------------------------+-----------------------------------+ | 126 | +-----------------------------------+-----------------------------------+ |
168 | 127 | |edi | | | 127 | |edi | Nothing to do | |
169 | 128 | +-----------------------------------+-----------------------------------+ | 128 | +-----------------------------------+-----------------------------------+ |
170 | 129 | |email_template | Done | | 129 | |email_template | Done | |
171 | 130 | +-----------------------------------+-----------------------------------+ | 130 | +-----------------------------------+-----------------------------------+ |
172 | @@ -144,7 +144,7 @@ | |||
173 | 144 | +-----------------------------------+-----------------------------------+ | 144 | +-----------------------------------+-----------------------------------+ |
174 | 145 | |hr | Done | | 145 | |hr | Done | |
175 | 146 | +-----------------------------------+-----------------------------------+ | 146 | +-----------------------------------+-----------------------------------+ |
177 | 147 | |hr_attendance | | | 147 | |hr_attendance | Nothing to do | |
178 | 148 | +-----------------------------------+-----------------------------------+ | 148 | +-----------------------------------+-----------------------------------+ |
179 | 149 | |hr_contract | No change | | 149 | |hr_contract | No change | |
180 | 150 | +-----------------------------------+-----------------------------------+ | 150 | +-----------------------------------+-----------------------------------+ |
181 | @@ -160,11 +160,11 @@ | |||
182 | 160 | +-----------------------------------+-----------------------------------+ | 160 | +-----------------------------------+-----------------------------------+ |
183 | 161 | |hr_recruitment | | | 161 | |hr_recruitment | | |
184 | 162 | +-----------------------------------+-----------------------------------+ | 162 | +-----------------------------------+-----------------------------------+ |
186 | 163 | |hr_timesheet | | | 163 | |hr_timesheet | Nothing to do | |
187 | 164 | +-----------------------------------+-----------------------------------+ | 164 | +-----------------------------------+-----------------------------------+ |
188 | 165 | |hr_timesheet_invoice | | | 165 | |hr_timesheet_invoice | | |
189 | 166 | +-----------------------------------+-----------------------------------+ | 166 | +-----------------------------------+-----------------------------------+ |
191 | 167 | |hr_timesheet_sheet | | | 167 | |hr_timesheet_sheet | Nothing to do | |
192 | 168 | +-----------------------------------+-----------------------------------+ | 168 | +-----------------------------------+-----------------------------------+ |
193 | 169 | |idea | | | 169 | |idea | | |
194 | 170 | +-----------------------------------+-----------------------------------+ | 170 | +-----------------------------------+-----------------------------------+ |
195 | @@ -236,7 +236,7 @@ | |||
196 | 236 | +-----------------------------------+-----------------------------------+ | 236 | +-----------------------------------+-----------------------------------+ |
197 | 237 | |l10n_mx | | | 237 | |l10n_mx | | |
198 | 238 | +-----------------------------------+-----------------------------------+ | 238 | +-----------------------------------+-----------------------------------+ |
200 | 239 | |l10n_nl | | | 239 | |l10n_nl | Nothing to do | |
201 | 240 | +-----------------------------------+-----------------------------------+ | 240 | +-----------------------------------+-----------------------------------+ |
202 | 241 | |l10n_pa | | | 241 | |l10n_pa | | |
203 | 242 | +-----------------------------------+-----------------------------------+ | 242 | +-----------------------------------+-----------------------------------+ |
204 | @@ -268,7 +268,7 @@ | |||
205 | 268 | +-----------------------------------+-----------------------------------+ | 268 | +-----------------------------------+-----------------------------------+ |
206 | 269 | |mail | Done | | 269 | |mail | Done | |
207 | 270 | +-----------------------------------+-----------------------------------+ | 270 | +-----------------------------------+-----------------------------------+ |
209 | 271 | |marketing | | | 271 | |marketing | Nothing to do | |
210 | 272 | +-----------------------------------+-----------------------------------+ | 272 | +-----------------------------------+-----------------------------------+ |
211 | 273 | |marketing_campaign | | | 273 | |marketing_campaign | | |
212 | 274 | +-----------------------------------+-----------------------------------+ | 274 | +-----------------------------------+-----------------------------------+ |
213 | @@ -276,7 +276,7 @@ | |||
214 | 276 | +-----------------------------------+-----------------------------------+ | 276 | +-----------------------------------+-----------------------------------+ |
215 | 277 | |membership | | | 277 | |membership | | |
216 | 278 | +-----------------------------------+-----------------------------------+ | 278 | +-----------------------------------+-----------------------------------+ |
218 | 279 | |mrp | work in progress | | 279 | |mrp | Done | |
219 | 280 | +-----------------------------------+-----------------------------------+ | 280 | +-----------------------------------+-----------------------------------+ |
220 | 281 | |mrp_byproduct | | | 281 | |mrp_byproduct | | |
221 | 282 | +-----------------------------------+-----------------------------------+ | 282 | +-----------------------------------+-----------------------------------+ |
222 | @@ -352,7 +352,7 @@ | |||
223 | 352 | +-----------------------------------+-----------------------------------+ | 352 | +-----------------------------------+-----------------------------------+ |
224 | 353 | |project_timesheet | | | 353 | |project_timesheet | | |
225 | 354 | +-----------------------------------+-----------------------------------+ | 354 | +-----------------------------------+-----------------------------------+ |
227 | 355 | |purchase | work in progress | | 355 | |purchase | Done | |
228 | 356 | +-----------------------------------+-----------------------------------+ | 356 | +-----------------------------------+-----------------------------------+ |
229 | 357 | |purchase_analytic_plans | | | 357 | |purchase_analytic_plans | | |
230 | 358 | +-----------------------------------+-----------------------------------+ | 358 | +-----------------------------------+-----------------------------------+ |
231 | @@ -366,7 +366,7 @@ | |||
232 | 366 | +-----------------------------------+-----------------------------------+ | 366 | +-----------------------------------+-----------------------------------+ |
233 | 367 | |resource | No change | | 367 | |resource | No change | |
234 | 368 | +-----------------------------------+-----------------------------------+ | 368 | +-----------------------------------+-----------------------------------+ |
236 | 369 | |sale | work in progress | | 369 | |sale | Done | |
237 | 370 | +-----------------------------------+-----------------------------------+ | 370 | +-----------------------------------+-----------------------------------+ |
238 | 371 | |sale_analytic_plans | | | 371 | |sale_analytic_plans | | |
239 | 372 | +-----------------------------------+-----------------------------------+ | 372 | +-----------------------------------+-----------------------------------+ |
240 | @@ -376,11 +376,11 @@ | |||
241 | 376 | +-----------------------------------+-----------------------------------+ | 376 | +-----------------------------------+-----------------------------------+ |
242 | 377 | |sale_margin | | | 377 | |sale_margin | | |
243 | 378 | +-----------------------------------+-----------------------------------+ | 378 | +-----------------------------------+-----------------------------------+ |
245 | 379 | |sale_mrp | | | 379 | |sale_mrp | No change | |
246 | 380 | +-----------------------------------+-----------------------------------+ | 380 | +-----------------------------------+-----------------------------------+ |
247 | 381 | |sale_order_dates | No change | | 381 | |sale_order_dates | No change | |
248 | 382 | +-----------------------------------+-----------------------------------+ | 382 | +-----------------------------------+-----------------------------------+ |
250 | 383 | |sale_stock | | | 383 | |sale_stock | Done | |
251 | 384 | +-----------------------------------+-----------------------------------+ | 384 | +-----------------------------------+-----------------------------------+ |
252 | 385 | |share | | | 385 | |share | | |
253 | 386 | +-----------------------------------+-----------------------------------+ | 386 | +-----------------------------------+-----------------------------------+ |
254 | @@ -402,7 +402,7 @@ | |||
255 | 402 | +-----------------------------------+-----------------------------------+ | 402 | +-----------------------------------+-----------------------------------+ |
256 | 403 | |web_analytics | No change | | 403 | |web_analytics | No change | |
257 | 404 | +-----------------------------------+-----------------------------------+ | 404 | +-----------------------------------+-----------------------------------+ |
259 | 405 | |web_linkedin | | | 405 | |web_linkedin | Nothing to do (new in 7.0) | |
260 | 406 | +-----------------------------------+-----------------------------------+ | 406 | +-----------------------------------+-----------------------------------+ |
261 | 407 | |web_shortcuts | No change | | 407 | |web_shortcuts | No change | |
262 | 408 | +-----------------------------------+-----------------------------------+ | 408 | +-----------------------------------+-----------------------------------+ |
263 | 409 | 409 | ||
264 | === modified file 'openerp/openupgrade/openupgrade.py' | |||
265 | --- openerp/openupgrade/openupgrade.py 2013-10-28 21:25:32 +0000 | |||
266 | +++ openerp/openupgrade/openupgrade.py 2014-02-28 11:33:24 +0000 | |||
267 | @@ -37,18 +37,20 @@ | |||
268 | 37 | 'load_data', | 37 | 'load_data', |
269 | 38 | 'rename_columns', | 38 | 'rename_columns', |
270 | 39 | 'rename_tables', | 39 | 'rename_tables', |
271 | 40 | 'rename_models', | ||
272 | 41 | 'rename_xmlids', | ||
273 | 40 | 'drop_columns', | 42 | 'drop_columns', |
274 | 41 | 'table_exists', | ||
275 | 42 | 'column_exists', | ||
276 | 43 | 'logged_query', | ||
277 | 44 | 'delete_model_workflow', | 43 | 'delete_model_workflow', |
278 | 44 | 'warn_possible_dataloss', | ||
279 | 45 | 'set_defaults', | 45 | 'set_defaults', |
280 | 46 | 'logged_query', | ||
281 | 47 | 'column_exists', | ||
282 | 48 | 'table_exists', | ||
283 | 46 | 'update_module_names', | 49 | 'update_module_names', |
284 | 47 | 'add_ir_model_fields', | 50 | 'add_ir_model_fields', |
285 | 48 | 'rename_models', | ||
286 | 49 | 'rename_xmlids', | ||
287 | 50 | 'get_legacy_name', | 51 | 'get_legacy_name', |
288 | 51 | 'm2o_to_m2m', | 52 | 'm2o_to_m2m', |
289 | 53 | 'message', | ||
290 | 52 | ] | 54 | ] |
291 | 53 | 55 | ||
292 | 54 | def load_data(cr, module_name, filename, idref=None, mode='init'): | 56 | def load_data(cr, module_name, filename, idref=None, mode='init'): |
293 | @@ -219,6 +221,8 @@ | |||
294 | 219 | 'table' : name of the table where the field is. | 221 | 'table' : name of the table where the field is. |
295 | 220 | 'field' : name of the field that are moving. | 222 | 'field' : name of the field that are moving. |
296 | 221 | 'new_module' : name of the new module | 223 | 'new_module' : name of the new module |
297 | 224 | |||
298 | 225 | .. versionadded:: 7.0 | ||
299 | 222 | """ | 226 | """ |
300 | 223 | module_obj = pool.get('ir.module.module') | 227 | module_obj = pool.get('ir.module.module') |
301 | 224 | for field in fields: | 228 | for field in fields: |
302 | @@ -316,6 +320,9 @@ | |||
303 | 316 | write_value(ids, field, value) | 320 | write_value(ids, field, value) |
304 | 317 | 321 | ||
305 | 318 | def logged_query(cr, query, args=None): | 322 | def logged_query(cr, query, args=None): |
306 | 323 | """ | ||
307 | 324 | Logs query and affected rows at level DEBUG | ||
308 | 325 | """ | ||
309 | 319 | if args is None: | 326 | if args is None: |
310 | 320 | args = [] | 327 | args = [] |
311 | 321 | res = cr.execute(query, args) | 328 | res = cr.execute(query, args) |
312 | @@ -392,6 +399,8 @@ | |||
313 | 392 | :param table: The source table | 399 | :param table: The source table |
314 | 393 | :param field: The field name of the target model | 400 | :param field: The field name of the target model |
315 | 394 | :param source_field: the many2one column on the source table. | 401 | :param source_field: the many2one column on the source table. |
316 | 402 | |||
317 | 403 | .. versionadded:: 7.0 | ||
318 | 395 | """ | 404 | """ |
319 | 396 | cr.execute('SELECT id, %(field)s ' | 405 | cr.execute('SELECT id, %(field)s ' |
320 | 397 | 'FROM %(table)s ' | 406 | 'FROM %(table)s ' |
321 | @@ -409,9 +418,11 @@ | |||
322 | 409 | To be extended with logging to a table for reporting purposes. | 418 | To be extended with logging to a table for reporting purposes. |
323 | 410 | 419 | ||
324 | 411 | :param module: the module name that the message concerns | 420 | :param module: the module name that the message concerns |
326 | 412 | :param table: the model that this message concerns (may be False, | 421 | :param table: the model that this message concerns (may be False, \ |
327 | 413 | but preferably not if 'column' is defined) | 422 | but preferably not if 'column' is defined) |
328 | 414 | :param column: the column that this message concerns (may be False) | 423 | :param column: the column that this message concerns (may be False) |
329 | 424 | |||
330 | 425 | .. versionadded:: 7.0 | ||
331 | 415 | """ | 426 | """ |
332 | 416 | argslist = list(args or []) | 427 | argslist = list(args or []) |
333 | 417 | prefix = ': ' | 428 | prefix = ': ' |
Thanks !
LGTM.
Regards.