Merge lp:~openerp-dev/openobject-server/trunk-review-charfield-size-jar into lp:openobject-server
- trunk-review-charfield-size-jar
- Merge into trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-server/trunk-review-charfield-size-jar |
Merge into: | lp:openobject-server |
Diff against target: |
1175 lines (+177/-176) 33 files modified
openerp/addons/base/ir/ir_actions.py (+35/-35) openerp/addons/base/ir/ir_attachment.py (+7/-7) openerp/addons/base/ir/ir_config_parameter.py (+1/-1) openerp/addons/base/ir/ir_cron.py (+4/-4) openerp/addons/base/ir/ir_default.py (+5/-5) openerp/addons/base/ir/ir_exports.py (+3/-3) openerp/addons/base/ir/ir_filters.py (+1/-1) openerp/addons/base/ir/ir_logging.py (+1/-1) openerp/addons/base/ir/ir_mail_server.py (+3/-3) openerp/addons/base/ir/ir_model.py (+5/-5) openerp/addons/base/ir/ir_rule.py (+1/-1) openerp/addons/base/ir/ir_sequence.py (+5/-5) openerp/addons/base/ir/ir_translation.py (+2/-2) openerp/addons/base/ir/ir_ui_menu.py (+4/-4) openerp/addons/base/ir/ir_ui_view.py (+1/-1) openerp/addons/base/ir/ir_values.py (+4/-4) openerp/addons/base/module/module.py (+16/-16) openerp/addons/base/module/wizard/base_export_language.py (+2/-2) openerp/addons/base/module/wizard/base_import_language.py (+2/-2) openerp/addons/base/module/wizard/base_language_install.py (+1/-1) openerp/addons/base/module/wizard/base_module_import.py (+2/-2) openerp/addons/base/module/wizard/base_module_update.py (+1/-1) openerp/addons/base/res/ir_property.py (+4/-3) openerp/addons/base/res/res_bank.py (+12/-12) openerp/addons/base/res/res_company.py (+6/-6) openerp/addons/base/res/res_country.py (+2/-2) openerp/addons/base/res/res_currency.py (+4/-4) openerp/addons/base/res/res_lang.py (+7/-7) openerp/addons/base/res/res_partner.py (+19/-19) openerp/addons/base/res/res_request.py (+2/-2) openerp/addons/base/res/res_users.py (+1/-1) openerp/addons/base/workflow/workflow.py (+13/-13) openerp/addons/test_uninstall/models.py (+1/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/trunk-review-charfield-size-jar |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+217870@code.launchpad.net |
Commit message
Description of the change
Hello,
Task: Review Size on char fields
* In lot of char fields, there is a useless size attribute.
* remove useless size attribute in lot of char fields.
Thank You.
- 5200. By Antony Lesuisse (OpenERP)
-
[MERGE] forward port of branch saas-4 up to <email address hidden>
- 5201. By Antony Lesuisse (OpenERP)
-
[IMP] cleanups, move tests, remove deprecated model instantiation
- 5202. By Antony Lesuisse (OpenERP)
-
[IMP] ir_qweb improve css minify
- 5203. By Antony Lesuisse (OpenERP)
-
[FIX] ir_qweb set js assets to async
- 5204. By Antony Lesuisse (OpenERP)
-
[FIX] ir_qweb revert async script attribute
- 5205. By Fabien Meghazi (OpenERP)
-
[TRY] defer
- 5206. By Fabien Meghazi (OpenERP)
-
[REV] defer
- 5207. By Fabien Meghazi (OpenERP)
-
[ADD] Support for ir.attachments in assets bundles
- 5208. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5209. By Fabien Meghazi (OpenERP)
-
[ADD] modules global rendering variable
This is temporary
- 5210. By Fabien Meghazi (OpenERP)
-
[FIX] runbot color
- 5211. By Olivier Dony (Odoo)
-
[MERGE] I18N: make fr_CA one of the default installation languages, courtesy of Maxime Chambreuil (SavoirFaireLinux)
- 5212. By Fabien Meghazi (OpenERP)
-
[FIX] configuration file dbfilter's option has no effect
- 5213. By Fabien Meghazi (OpenERP)
-
[IMP] monodb selects first database if only one match. Even if db-filter was not provided
- 5214. By Fabien Meghazi (OpenERP)
-
[IMP] assets bundle: allow to filter on type of assets
- 5215. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 5216. By Jitendra Prajapati(OpenERP)
-
[MERGE] [IMP] Misc view improvements using better name_get / name_search.
- 5217. By Fabien (Open ERP)
-
[IMP] Adding fields
- 5218. By Martin Trigaux (OpenERP)
-
Forward-port of latest saas-4, up to revision 5211 (revid <email address hidden>)
- 5219. By Jaydeep Barot(OpenERP)
-
[IMP] resize of selection field and remove size in char field
Unmerged revisions
- 5219. By Jaydeep Barot(OpenERP)
-
[IMP] resize of selection field and remove size in char field
Preview Diff
1 | === modified file 'openerp/addons/base/ir/ir_actions.py' |
2 | --- openerp/addons/base/ir/ir_actions.py 2014-05-09 09:49:20 +0000 |
3 | +++ openerp/addons/base/ir/ir_actions.py 2014-05-12 13:38:11 +0000 |
4 | @@ -46,9 +46,9 @@ |
5 | _table = 'ir_actions' |
6 | _order = 'name' |
7 | _columns = { |
8 | - 'name': fields.char('Name', size=64, required=True), |
9 | - 'type': fields.char('Action Type', required=True, size=32), |
10 | - 'usage': fields.char('Action Usage', size=32), |
11 | + 'name': fields.char('Name', required=True), |
12 | + 'type': fields.char('Action Type', required=True), |
13 | + 'usage': fields.char('Action Usage'), |
14 | 'help': fields.text('Action description', |
15 | help='Optional help text for the users with a description of the target view, such as its usage and purpose.', |
16 | translate=True), |
17 | @@ -141,8 +141,8 @@ |
18 | _sequence = 'ir_actions_id_seq' |
19 | _order = 'name' |
20 | _columns = { |
21 | - 'type': fields.char('Action Type', size=32, required=True), |
22 | - 'name': fields.char('Name', size=64, required=True, translate=True), |
23 | + 'type': fields.char('Action Type', required=True), |
24 | + 'name': fields.char('Name', required=True, translate=True), |
25 | |
26 | 'model': fields.char('Model', required=True), |
27 | 'report_type': fields.selection([('qweb-pdf', 'PDF'), |
28 | @@ -151,17 +151,17 @@ |
29 | ('pdf', 'RML pdf (deprecated)'), |
30 | ('sxw', 'RML sxw (deprecated)'), |
31 | ('webkit', 'Webkit (deprecated)'), |
32 | - ], 'Report Type', required=True, help="HTML will open the report directly in your browser, PDF will use wkhtmltopdf to render the HTML into a PDF file and let you download it, Controller allows you to define the url of a custom controller outputting any kind of report."), |
33 | + ], 'Report Type', size=10, required=True, help="HTML will open the report directly in your browser, PDF will use wkhtmltopdf to render the HTML into a PDF file and let you download it, Controller allows you to define the url of a custom controller outputting any kind of report."), |
34 | 'report_name': fields.char('Template Name', required=True, help="For QWeb reports, name of the template used in the rendering. The method 'render_html' of the model 'report.template_name' will be called (if any) to give the html. For RML reports, this is the LocalService name."), |
35 | 'groups_id': fields.many2many('res.groups', 'res_groups_report_rel', 'uid', 'gid', 'Groups'), |
36 | |
37 | # options |
38 | 'multi': fields.boolean('On Multiple Doc.', help="If set to true, the action will not be displayed on the right toolbar of a form view."), |
39 | 'attachment_use': fields.boolean('Reload from Attachment', help='If you check this, then the second time the user prints with same attachment name, it returns the previous report.'), |
40 | - 'attachment': fields.char('Save as Attachment Prefix', size=128, help='This is the filename of the attachment used to store the printing result. Keep empty to not save the printed reports. You can use a python expression with the object and time variables.'), |
41 | + 'attachment': fields.char('Save as Attachment Prefix', help='This is the filename of the attachment used to store the printing result. Keep empty to not save the printed reports. You can use a python expression with the object and time variables.'), |
42 | |
43 | # Deprecated rml stuff |
44 | - 'usage': fields.char('Action Usage', size=32), |
45 | + 'usage': fields.char('Action Usage'), |
46 | 'header': fields.boolean('Add RML Header', help="Add or not the corporate RML header"), |
47 | 'parser': fields.char('Parser Class'), |
48 | 'auto': fields.boolean('Custom Python Parser'), |
49 | @@ -250,24 +250,24 @@ |
50 | return res |
51 | |
52 | _columns = { |
53 | - 'name': fields.char('Action Name', size=64, translate=True), |
54 | - 'type': fields.char('Action Type', size=32, required=True), |
55 | + 'name': fields.char('Action Name', translate=True), |
56 | + 'type': fields.char('Action Type', required=True), |
57 | 'view_id': fields.many2one('ir.ui.view', 'View Ref.', ondelete='cascade'), |
58 | 'domain': fields.char('Domain Value', |
59 | help="Optional domain filtering of the destination data, as a Python expression"), |
60 | 'context': fields.char('Context Value', required=True, |
61 | help="Context dictionary as Python expression, empty by default (Default: {})"), |
62 | 'res_id': fields.integer('Record ID', help="Database ID of record to open in form view, when ``view_mode`` is set to 'form' only"), |
63 | - 'res_model': fields.char('Destination Model', size=64, required=True, |
64 | + 'res_model': fields.char('Destination Model', required=True, |
65 | help="Model name of the object to open in the view window"), |
66 | - 'src_model': fields.char('Source Model', size=64, |
67 | + 'src_model': fields.char('Source Model', |
68 | help="Optional model name of the objects on which this action should be visible"), |
69 | - 'target': fields.selection([('current','Current Window'),('new','New Window'),('inline','Inline Edit'),('inlineview','Inline View')], 'Target Window'), |
70 | - 'view_mode': fields.char('View Mode', size=250, required=True, |
71 | + 'target': fields.selection([('current','Current Window'),('new','New Window'),('inline','Inline Edit'),('inlineview','Inline View')], 'Target Window', size=10), |
72 | + 'view_mode': fields.char('View Mode', required=True, |
73 | help="Comma-separated list of allowed view modes, such as 'form', 'tree', 'calendar', etc. (Default: tree,form)"), |
74 | - 'view_type': fields.selection((('tree','Tree'),('form','Form')), string='View Type', required=True, |
75 | + 'view_type': fields.selection((('tree','Tree'),('form','Form')), string='View Type', size=4, required=True, |
76 | help="View type: Tree type to use for the tree view, set to 'tree' for a hierarchical tree view, or 'form' for a regular list view"), |
77 | - 'usage': fields.char('Action Usage', size=32, |
78 | + 'usage': fields.char('Action Usage', |
79 | help="Used to filter menu and home actions from the user form."), |
80 | 'view_ids': fields.one2many('ir.actions.act_window.view', 'act_window_id', 'Views'), |
81 | 'views': fields.function(_views_get_fnc, type='binary', string='Views', |
82 | @@ -356,7 +356,7 @@ |
83 | _columns = { |
84 | 'sequence': fields.integer('Sequence'), |
85 | 'view_id': fields.many2one('ir.ui.view', 'View'), |
86 | - 'view_mode': fields.selection(VIEW_TYPES, string='View Type', required=True), |
87 | + 'view_mode': fields.selection(VIEW_TYPES, string='View Type', size=8, required=True), |
88 | 'act_window_id': fields.many2one('ir.actions.act_window', 'Action', ondelete='cascade'), |
89 | 'multi': fields.boolean('On Multiple Doc.', |
90 | help="If set to true, the action will not be displayed on the right toolbar of a form view."), |
91 | @@ -387,13 +387,13 @@ |
92 | _sequence = 'ir_actions_id_seq' |
93 | _order = 'name' |
94 | _columns = { |
95 | - 'name': fields.char('Action Name', size=64, translate=True), |
96 | - 'type': fields.char('Action Type', size=32, required=True), |
97 | + 'name': fields.char('Action Name', translate=True), |
98 | + 'type': fields.char('Action Type', required=True), |
99 | 'url': fields.text('Action URL',required=True), |
100 | 'target': fields.selection(( |
101 | ('new', 'New Window'), |
102 | ('self', 'This Window')), |
103 | - 'Action Target', required=True |
104 | + 'Action Target', size=4, required=True |
105 | ) |
106 | } |
107 | _defaults = { |
108 | @@ -451,14 +451,14 @@ |
109 | return self._get_states(cr, uid, context) |
110 | |
111 | _columns = { |
112 | - 'name': fields.char('Action Name', required=True, size=64, translate=True), |
113 | + 'name': fields.char('Action Name', required=True, translate=True), |
114 | 'condition': fields.char('Condition', |
115 | help="Condition verified before executing the server action. If it " |
116 | "is not verified, the action will not be executed. The condition is " |
117 | "a Python expression, like 'object.list_price > 5000'. A void " |
118 | "condition is considered as always True. Help about python expression " |
119 | "is given in the help tab."), |
120 | - 'state': fields.selection(_get_states_wrapper, 'Action To Do', required=True, |
121 | + 'state': fields.selection(_get_states_wrapper, 'Action To Do', size=13, required=True, |
122 | help="Type of server action. The following values are available:\n" |
123 | "- 'Execute Python Code': a block of python code that will be executed\n" |
124 | "- 'Trigger a Workflow Signal': send a signal to a workflow\n" |
125 | @@ -467,8 +467,8 @@ |
126 | "- 'Write on a Record': update the values of a record\n" |
127 | "- 'Execute several actions': define an action that triggers several other server actions\n" |
128 | "- 'Send Email': automatically send an email (available in email_template)"), |
129 | - 'usage': fields.char('Action Usage', size=32), |
130 | - 'type': fields.char('Action Type', size=32, required=True), |
131 | + 'usage': fields.char('Action Usage'), |
132 | + 'type': fields.char('Action Type', required=True), |
133 | # Generic |
134 | 'sequence': fields.integer('Sequence', |
135 | help="When dealing with multiple actions, the execution order is " |
136 | @@ -487,7 +487,7 @@ |
137 | # Workflow signal |
138 | 'use_relational_model': fields.selection([('base', 'Use the base model of the action'), |
139 | ('relational', 'Use a relation field on the base model')], |
140 | - string='Target Model', required=True), |
141 | + string='Target Model', size=10, required=True), |
142 | 'wkf_transition_id': fields.many2one('workflow.transition', string='Signal to Trigger', |
143 | help="Select the workflow signal to trigger."), |
144 | 'wkf_model_id': fields.many2one('ir.model', 'Target Model', |
145 | @@ -506,7 +506,7 @@ |
146 | ('new_other', 'Create a new record in another model'), |
147 | ('copy_current', 'Copy the current record'), |
148 | ('copy_other', 'Choose and copy a record in the database')], |
149 | - string="Creation Policy", required=True, |
150 | + string="Creation Policy", size=12, required=True, |
151 | help=""), |
152 | 'crud_model_id': fields.many2one('ir.model', 'Target Model', |
153 | oldname='srcmodel_id', |
154 | @@ -525,7 +525,7 @@ |
155 | 'use_write': fields.selection([('current', 'Update the current record'), |
156 | ('expression', 'Update a record linked to the current record using python'), |
157 | ('other', 'Choose and Update a record in the database')], |
158 | - string='Update Policy', required=True, |
159 | + string='Update Policy', size=10, required=True, |
160 | help=""), |
161 | 'write_expression': fields.char('Expression', |
162 | oldname='write_id', |
163 | @@ -1020,7 +1020,7 @@ |
164 | 'type': fields.selection([ |
165 | ('value', 'Value'), |
166 | ('equation', 'Python expression') |
167 | - ], 'Evaluation Type', required=True, change_default=True), |
168 | + ], 'Evaluation Type', size=8, required=True, change_default=True), |
169 | } |
170 | _defaults = { |
171 | 'type': 'value', |
172 | @@ -1041,9 +1041,9 @@ |
173 | 'action_id': fields.many2one( |
174 | 'ir.actions.actions', 'Action', select=True, required=True), |
175 | 'sequence': fields.integer('Sequence'), |
176 | - 'state': fields.selection(TODO_STATES, string='Status', required=True), |
177 | - 'name': fields.char('Name', size=64), |
178 | - 'type': fields.selection(TODO_TYPES, 'Type', required=True, |
179 | + 'state': fields.selection(TODO_STATES, string='Status', size=4, required=True), |
180 | + 'name': fields.char('Name'), |
181 | + 'type': fields.selection(TODO_TYPES, 'Type', size=9, required=True, |
182 | help="""Manual: Launched manually. |
183 | Automatic: Runs whenever the system is reconfigured. |
184 | Launch Manually Once: after having been launched manually, it sets automatically to Done."""), |
185 | @@ -1160,14 +1160,14 @@ |
186 | self.write(cr, uid, id, {'params_store': field_value}, context=context) |
187 | |
188 | _columns = { |
189 | - 'name': fields.char('Action Name', required=True, size=64, translate=True), |
190 | - 'tag': fields.char('Client action tag', size=64, required=True, |
191 | + 'name': fields.char('Action Name', required=True, translate=True), |
192 | + 'tag': fields.char('Client action tag', required=True, |
193 | help="An arbitrary string, interpreted by the client" |
194 | " according to its own needs and wishes. There " |
195 | "is no central tag repository across clients."), |
196 | - 'res_model': fields.char('Destination Model', size=64, |
197 | + 'res_model': fields.char('Destination Model', |
198 | help="Optional model, mostly used for needactions."), |
199 | - 'context': fields.char('Context Value', size=250, required=True, |
200 | + 'context': fields.char('Context Value', required=True, |
201 | help="Context dictionary as Python expression, empty by default (Default: {})"), |
202 | 'params': fields.function(_get_params, fnct_inv=_set_params, |
203 | type='binary', |
204 | |
205 | === modified file 'openerp/addons/base/ir/ir_attachment.py' |
206 | --- openerp/addons/base/ir/ir_attachment.py 2014-04-10 15:20:39 +0000 |
207 | +++ openerp/addons/base/ir/ir_attachment.py 2014-05-12 13:38:11 +0000 |
208 | @@ -60,7 +60,7 @@ |
209 | if res_name: |
210 | field = self._columns.get('res_name',False) |
211 | if field and len(res_name) > field.size: |
212 | - res_name = res_name[:field.size-3] + '...' |
213 | + res_name = res_name[:30] + '...' |
214 | data[attachment.id] = res_name |
215 | else: |
216 | data[attachment.id] = False |
217 | @@ -182,21 +182,21 @@ |
218 | |
219 | _name = 'ir.attachment' |
220 | _columns = { |
221 | - 'name': fields.char('Attachment Name',size=256, required=True), |
222 | - 'datas_fname': fields.char('File Name',size=256), |
223 | + 'name': fields.char('Attachment Name', required=True), |
224 | + 'datas_fname': fields.char('File Name'), |
225 | 'description': fields.text('Description'), |
226 | - 'res_name': fields.function(_name_get_resname, type='char', size=128, string='Resource Name', store=True), |
227 | - 'res_model': fields.char('Resource Model',size=64, readonly=True, help="The database object this attachment will be attached to"), |
228 | + 'res_name': fields.function(_name_get_resname, type='char', string='Resource Name', store=True), |
229 | + 'res_model': fields.char('Resource Model', readonly=True, help="The database object this attachment will be attached to"), |
230 | 'res_id': fields.integer('Resource ID', readonly=True, help="The record id this is attached to"), |
231 | 'create_date': fields.datetime('Date Created', readonly=True), |
232 | 'create_uid': fields.many2one('res.users', 'Owner', readonly=True), |
233 | 'company_id': fields.many2one('res.company', 'Company', change_default=True), |
234 | 'type': fields.selection( [ ('url','URL'), ('binary','Binary'), ], |
235 | - 'Type', help="Binary File or URL", required=True, change_default=True), |
236 | + 'Type', size=6, help="Binary File or URL", required=True, change_default=True), |
237 | 'url': fields.char('Url', size=1024), |
238 | # al: We keep shitty field names for backward compatibility with document |
239 | 'datas': fields.function(_data_get, fnct_inv=_data_set, string='File Content', type="binary", nodrop=True), |
240 | - 'store_fname': fields.char('Stored Filename', size=256), |
241 | + 'store_fname': fields.char('Stored Filename'), |
242 | 'db_datas': fields.binary('Database Data'), |
243 | 'file_size': fields.integer('File Size'), |
244 | } |
245 | |
246 | === modified file 'openerp/addons/base/ir/ir_config_parameter.py' |
247 | --- openerp/addons/base/ir/ir_config_parameter.py 2014-05-06 08:39:31 +0000 |
248 | +++ openerp/addons/base/ir/ir_config_parameter.py 2014-05-12 13:38:11 +0000 |
249 | @@ -45,7 +45,7 @@ |
250 | _rec_name = 'key' |
251 | |
252 | _columns = { |
253 | - 'key': fields.char('Key', size=256, required=True, select=1), |
254 | + 'key': fields.char('Key', required=True, select=1), |
255 | 'value': fields.text('Value', required=True), |
256 | } |
257 | |
258 | |
259 | === modified file 'openerp/addons/base/ir/ir_cron.py' |
260 | --- openerp/addons/base/ir/ir_cron.py 2014-02-28 16:15:24 +0000 |
261 | +++ openerp/addons/base/ir/ir_cron.py 2014-05-12 13:38:11 +0000 |
262 | @@ -61,17 +61,17 @@ |
263 | _name = "ir.cron" |
264 | _order = 'name' |
265 | _columns = { |
266 | - 'name': fields.char('Name', size=60, required=True), |
267 | + 'name': fields.char('Name', required=True), |
268 | 'user_id': fields.many2one('res.users', 'User', required=True), |
269 | 'active': fields.boolean('Active'), |
270 | 'interval_number': fields.integer('Interval Number',help="Repeat every x."), |
271 | 'interval_type': fields.selection( [('minutes', 'Minutes'), |
272 | - ('hours', 'Hours'), ('work_days','Work Days'), ('days', 'Days'),('weeks', 'Weeks'), ('months', 'Months')], 'Interval Unit'), |
273 | + ('hours', 'Hours'), ('work_days','Work Days'), ('days', 'Days'),('weeks', 'Weeks'), ('months', 'Months')], 'Interval Unit', size=9), |
274 | 'numbercall': fields.integer('Number of Calls', help='How many times the method is called,\na negative number indicates no limit.'), |
275 | 'doall' : fields.boolean('Repeat Missed', help="Specify if missed occurrences should be executed when the server restarts."), |
276 | 'nextcall' : fields.datetime('Next Execution Date', required=True, help="Next planned execution date for this job."), |
277 | - 'model': fields.char('Object', size=64, help="Model name on which the method to be called is located, e.g. 'res.partner'."), |
278 | - 'function': fields.char('Method', size=64, help="Name of the method to be called when this job is processed."), |
279 | + 'model': fields.char('Object', help="Model name on which the method to be called is located, e.g. 'res.partner'."), |
280 | + 'function': fields.char('Method', help="Name of the method to be called when this job is processed."), |
281 | 'args': fields.text('Arguments', help="Arguments to be passed to the method, e.g. (uid,)."), |
282 | 'priority': fields.integer('Priority', help='The priority of the job, as an integer: 0 means higher priority, 10 means lower priority.') |
283 | } |
284 | |
285 | === modified file 'openerp/addons/base/ir/ir_default.py' |
286 | --- openerp/addons/base/ir/ir_default.py 2014-05-01 18:42:17 +0000 |
287 | +++ openerp/addons/base/ir/ir_default.py 2014-05-12 13:38:11 +0000 |
288 | @@ -24,12 +24,12 @@ |
289 | class ir_default(osv.osv): |
290 | _name = 'ir.default' |
291 | _columns = { |
292 | - 'field_tbl': fields.char('Object',size=64), |
293 | - 'field_name': fields.char('Object Field',size=64), |
294 | - 'value': fields.char('Default Value',size=64), |
295 | + 'field_tbl': fields.char('Object'), |
296 | + 'field_name': fields.char('Object Field'), |
297 | + 'value': fields.char('Default Value'), |
298 | 'uid': fields.many2one('res.users', 'Users'), |
299 | - 'page': fields.char('View',size=64), |
300 | - 'ref_table': fields.char('Table Ref.',size=64), |
301 | + 'page': fields.char('View'), |
302 | + 'ref_table': fields.char('Table Ref.'), |
303 | 'ref_id': fields.integer('ID Ref.',size=64), |
304 | 'company_id': fields.many2one('res.company','Company') |
305 | } |
306 | |
307 | === modified file 'openerp/addons/base/ir/ir_exports.py' |
308 | --- openerp/addons/base/ir/ir_exports.py 2014-05-01 18:42:17 +0000 |
309 | +++ openerp/addons/base/ir/ir_exports.py 2014-05-12 13:38:11 +0000 |
310 | @@ -26,8 +26,8 @@ |
311 | _name = "ir.exports" |
312 | _order = 'name' |
313 | _columns = { |
314 | - 'name': fields.char('Export Name', size=128), |
315 | - 'resource': fields.char('Resource', size=128, select=True), |
316 | + 'name': fields.char('Export Name'), |
317 | + 'resource': fields.char('Resource', select=True), |
318 | 'export_fields': fields.one2many('ir.exports.line', 'export_id', |
319 | 'Export ID'), |
320 | } |
321 | @@ -37,7 +37,7 @@ |
322 | _name = 'ir.exports.line' |
323 | _order = 'id' |
324 | _columns = { |
325 | - 'name': fields.char('Field Name', size=64), |
326 | + 'name': fields.char('Field Name'), |
327 | 'export_id': fields.many2one('ir.exports', 'Export', select=True, ondelete='cascade'), |
328 | } |
329 | |
330 | |
331 | === modified file 'openerp/addons/base/ir/ir_filters.py' |
332 | --- openerp/addons/base/ir/ir_filters.py 2014-05-01 18:42:17 +0000 |
333 | +++ openerp/addons/base/ir/ir_filters.py 2014-05-12 13:38:11 +0000 |
334 | @@ -126,7 +126,7 @@ |
335 | (lower(name), model_id, COALESCE(user_id,-1))""") |
336 | |
337 | _columns = { |
338 | - 'name': fields.char('Filter Name', size=64, translate=True, required=True), |
339 | + 'name': fields.char('Filter Name', translate=True, required=True), |
340 | 'user_id': fields.many2one('res.users', 'User', ondelete='cascade', |
341 | help="The user this filter is private to. When left empty the filter is public " |
342 | "and available to all users."), |
343 | |
344 | === modified file 'openerp/addons/base/ir/ir_logging.py' |
345 | --- openerp/addons/base/ir/ir_logging.py 2014-03-17 00:08:51 +0000 |
346 | +++ openerp/addons/base/ir/ir_logging.py 2014-05-12 13:38:11 +0000 |
347 | @@ -35,7 +35,7 @@ |
348 | 'create_date': fields.datetime('Create Date', readonly=True), |
349 | 'create_uid': fields.integer('Uid', readonly=True), # Integer not m2o is intentionnal |
350 | 'name': fields.char('Name', required=True), |
351 | - 'type': fields.selection(EXCEPTIONS_TYPE, string='Type', required=True, select=True), |
352 | + 'type': fields.selection(EXCEPTIONS_TYPE, string='Type', size=6, required=True, select=True), |
353 | 'dbname': fields.char('Database Name'), |
354 | 'level': fields.char('Level'), |
355 | 'message': fields.text('Message', required=True), |
356 | |
357 | === modified file 'openerp/addons/base/ir/ir_mail_server.py' |
358 | --- openerp/addons/base/ir/ir_mail_server.py 2013-11-23 11:30:53 +0000 |
359 | +++ openerp/addons/base/ir/ir_mail_server.py 2014-05-12 13:38:11 +0000 |
360 | @@ -167,15 +167,15 @@ |
361 | _name = "ir.mail_server" |
362 | |
363 | _columns = { |
364 | - 'name': fields.char('Description', size=64, required=True, select=True), |
365 | - 'smtp_host': fields.char('SMTP Server', size=128, required=True, help="Hostname or IP of SMTP server"), |
366 | + 'name': fields.char('Description', required=True, select=True), |
367 | + 'smtp_host': fields.char('SMTP Server', required=True, help="Hostname or IP of SMTP server"), |
368 | 'smtp_port': fields.integer('SMTP Port', size=5, required=True, help="SMTP Port. Usually 465 for SSL, and 25 or 587 for other cases."), |
369 | 'smtp_user': fields.char('Username', size=64, help="Optional username for SMTP authentication"), |
370 | 'smtp_pass': fields.char('Password', size=64, help="Optional password for SMTP authentication"), |
371 | 'smtp_encryption': fields.selection([('none','None'), |
372 | ('starttls','TLS (STARTTLS)'), |
373 | ('ssl','SSL/TLS')], |
374 | - string='Connection Security', required=True, |
375 | + string='Connection Security', size=8, required=True, |
376 | help="Choose the connection encryption scheme:\n" |
377 | "- None: SMTP sessions are done in cleartext.\n" |
378 | "- TLS (STARTTLS): TLS encryption is requested at start of SMTP session (Recommended)\n" |
379 | |
380 | === modified file 'openerp/addons/base/ir/ir_model.py' |
381 | --- openerp/addons/base/ir/ir_model.py 2014-05-06 12:16:27 +0000 |
382 | +++ openerp/addons/base/ir/ir_model.py 2014-05-12 13:38:11 +0000 |
383 | @@ -100,7 +100,7 @@ |
384 | 'model': fields.char('Model', required=True, select=1), |
385 | 'info': fields.text('Information'), |
386 | 'field_id': fields.one2many('ir.model.fields', 'model_id', 'Fields', required=True), |
387 | - 'state': fields.selection([('manual','Custom Object'),('base','Base Object')],'Type',readonly=True), |
388 | + 'state': fields.selection([('manual','Custom Object'),('base','Base Object')], 'Type', size=6, readonly=True), |
389 | 'access_ids': fields.one2many('ir.model.access', 'model_id', 'Access'), |
390 | 'osv_memory': fields.function(_is_osv_memory, string='Transient Model', type='boolean', |
391 | fnct_search=_search_osv_memory, |
392 | @@ -240,11 +240,11 @@ |
393 | "For example: [('blue','Blue'),('yellow','Yellow')]"), |
394 | 'required': fields.boolean('Required'), |
395 | 'readonly': fields.boolean('Readonly'), |
396 | - 'select_level': fields.selection([('0','Not Searchable'),('1','Always Searchable'),('2','Advanced Search (deprecated)')],'Searchable', required=True), |
397 | + 'select_level': fields.selection([('0','Not Searchable'),('1','Always Searchable'),('2','Advanced Search (deprecated)')],'Searchable', size=1, required=True), |
398 | 'translate': fields.boolean('Translatable', help="Whether values for this field can be translated (enables the translation mechanism for that field)"), |
399 | 'size': fields.integer('Size'), |
400 | - 'state': fields.selection([('manual','Custom Field'),('base','Base Field')],'Type', required=True, readonly=True, select=1), |
401 | - 'on_delete': fields.selection([('cascade','Cascade'),('set null','Set NULL')], 'On Delete', help='On delete property for many2one fields'), |
402 | + 'state': fields.selection([('manual','Custom Field'),('base','Base Field')],'Type', size=6, required=True, readonly=True, select=1), |
403 | + 'on_delete': fields.selection([('cascade','Cascade'),('set null','Set NULL')], 'On Delete', size=8, help='On delete property for many2one fields'), |
404 | 'domain': fields.char('Domain', help="The optional domain to restrict possible values for relationship fields, " |
405 | "specified as a Python expression defining a list of triplets. " |
406 | "For example: [('color','=','red')]"), |
407 | @@ -1183,7 +1183,7 @@ |
408 | _name = 'wizard.ir.model.menu.create' |
409 | _columns = { |
410 | 'menu_id': fields.many2one('ir.ui.menu', 'Parent Menu', required=True), |
411 | - 'name': fields.char('Menu Name', size=64, required=True), |
412 | + 'name': fields.char('Menu Name', required=True), |
413 | } |
414 | |
415 | def menu_create(self, cr, uid, ids, context=None): |
416 | |
417 | === modified file 'openerp/addons/base/ir/ir_rule.py' |
418 | --- openerp/addons/base/ir/ir_rule.py 2014-05-01 18:42:17 +0000 |
419 | +++ openerp/addons/base/ir/ir_rule.py 2014-05-12 13:38:11 +0000 |
420 | @@ -72,7 +72,7 @@ |
421 | return not any(rule.model_id.model == self._name for rule in self.browse(cr, uid, ids, context)) |
422 | |
423 | _columns = { |
424 | - 'name': fields.char('Name', size=128, select=1), |
425 | + 'name': fields.char('Name', select=1), |
426 | 'active': fields.boolean('Active', help="If you uncheck the active field, it will disable the record rule without deleting it (if you delete a native record rule, it may be re-created when you reload the module."), |
427 | 'model_id': fields.many2one('ir.model', 'Object',select=1, required=True, ondelete="cascade"), |
428 | 'global': fields.function(_get_value, string='Global', type='boolean', store=True, help="If no group is specified the rule is global and applied to everyone"), |
429 | |
430 | === modified file 'openerp/addons/base/ir/ir_sequence.py' |
431 | --- openerp/addons/base/ir/ir_sequence.py 2013-08-23 09:56:35 +0000 |
432 | +++ openerp/addons/base/ir/ir_sequence.py 2014-05-12 13:38:11 +0000 |
433 | @@ -32,7 +32,7 @@ |
434 | _name = 'ir.sequence.type' |
435 | _order = 'name' |
436 | _columns = { |
437 | - 'name': openerp.osv.fields.char('Name', size=64, required=True), |
438 | + 'name': openerp.osv.fields.char('Name', required=True), |
439 | 'code': openerp.osv.fields.char('Code', size=32, required=True), |
440 | } |
441 | |
442 | @@ -83,17 +83,17 @@ |
443 | |
444 | |
445 | _columns = { |
446 | - 'name': openerp.osv.fields.char('Name', size=64, required=True), |
447 | + 'name': openerp.osv.fields.char('Name', required=True), |
448 | 'code': openerp.osv.fields.selection(_code_get, 'Sequence Type', size=64), |
449 | 'implementation': openerp.osv.fields.selection( # TODO update the view |
450 | [('standard', 'Standard'), ('no_gap', 'No gap')], |
451 | - 'Implementation', required=True, |
452 | + 'Implementation', size=8, required=True, |
453 | help="Two sequence object implementations are offered: Standard " |
454 | "and 'No gap'. The later is slower than the former but forbids any" |
455 | " gap in the sequence (while they are possible in the former)."), |
456 | 'active': openerp.osv.fields.boolean('Active'), |
457 | - 'prefix': openerp.osv.fields.char('Prefix', size=64, help="Prefix value of the record for the sequence"), |
458 | - 'suffix': openerp.osv.fields.char('Suffix', size=64, help="Suffix value of the record for the sequence"), |
459 | + 'prefix': openerp.osv.fields.char('Prefix', help="Prefix value of the record for the sequence"), |
460 | + 'suffix': openerp.osv.fields.char('Suffix', help="Suffix value of the record for the sequence"), |
461 | 'number_next': openerp.osv.fields.integer('Next Number', required=True, help="Next number of this sequence"), |
462 | 'number_next_actual': openerp.osv.fields.function(_get_number_next_actual, fnct_inv=_set_number_next_actual, type='integer', required=True, string='Next Number', help='Next number that will be used. This number can be incremented frequently so the displayed value might already be obsolete'), |
463 | 'number_increment': openerp.osv.fields.integer('Increment Number', required=True, help="The next number of the sequence will be incremented by this number"), |
464 | |
465 | === modified file 'openerp/addons/base/ir/ir_translation.py' |
466 | --- openerp/addons/base/ir/ir_translation.py 2014-01-22 15:13:27 +0000 |
467 | +++ openerp/addons/base/ir/ir_translation.py 2014-05-12 13:38:11 +0000 |
468 | @@ -197,7 +197,7 @@ |
469 | 'name': fields.char('Translated field', required=True), |
470 | 'res_id': fields.integer('Record ID', select=True), |
471 | 'lang': fields.selection(_get_language, string='Language'), |
472 | - 'type': fields.selection(TRANSLATION_TYPE, string='Type', select=True), |
473 | + 'type': fields.selection(TRANSLATION_TYPE, string='Type', size=14, select=True), |
474 | 'src': fields.text('Old source'), |
475 | 'source': fields.function(_get_src, fnct_inv=_set_src, type='text', string='Source'), |
476 | 'value': fields.text('Translation Value'), |
477 | @@ -207,7 +207,7 @@ |
478 | [('to_translate','To Translate'), |
479 | ('inprogress','Translation in Progress'), |
480 | ('translated','Translated')], |
481 | - string="Status", |
482 | + string="Status", size=12, |
483 | help="Automatically set to let administators find new terms that might need to be translated"), |
484 | |
485 | # aka gettext extracted-comments - we use them to flag openerp-web translation |
486 | |
487 | === modified file 'openerp/addons/base/ir/ir_ui_menu.py' |
488 | --- openerp/addons/base/ir/ir_ui_menu.py 2013-10-06 13:24:24 +0000 |
489 | +++ openerp/addons/base/ir/ir_ui_menu.py 2014-05-12 13:38:11 +0000 |
490 | @@ -335,7 +335,7 @@ |
491 | return res |
492 | |
493 | _columns = { |
494 | - 'name': fields.char('Menu', size=64, required=True, translate=True), |
495 | + 'name': fields.char('Menu', required=True, translate=True), |
496 | 'sequence': fields.integer('Sequence'), |
497 | 'child_id': fields.one2many('ir.ui.menu', 'parent_id', 'Child IDs'), |
498 | 'parent_id': fields.many2one('ir.ui.menu', 'Parent Menu', select=True, ondelete="restrict"), |
499 | @@ -348,8 +348,8 @@ |
500 | string='Full Path', type='char', size=128), |
501 | 'icon': fields.selection(tools.icons, 'Icon', size=64), |
502 | 'icon_pict': fields.function(_get_icon_pict, type='char', size=32), |
503 | - 'web_icon': fields.char('Web Icon File', size=128), |
504 | - 'web_icon_hover': fields.char('Web Icon File (hover)', size=128), |
505 | + 'web_icon': fields.char('Web Icon File'), |
506 | + 'web_icon_hover': fields.char('Web Icon File (hover)'), |
507 | 'web_icon_data': fields.function(_get_image_icon, string='Web Icon Image', type='binary', readonly=True, store=True, multi='icon'), |
508 | 'web_icon_hover_data': fields.function(_get_image_icon, string='Web Icon Image (hover)', type='binary', readonly=True, store=True, multi='icon'), |
509 | 'needaction_enabled': fields.function(_get_needaction_enabled, |
510 | @@ -358,7 +358,7 @@ |
511 | string='Target model uses the need action mechanism', |
512 | help='If the menu entry action is an act_window action, and if this action is related to a model that uses the need_action mechanism, this field is set to true. Otherwise, it is false.'), |
513 | 'action': fields.function(_action, fnct_inv=_action_inv, |
514 | - type='reference', string='Action', |
515 | + type='reference', string='Action', size=21, |
516 | selection=[ |
517 | ('ir.actions.report.xml', 'ir.actions.report.xml'), |
518 | ('ir.actions.act_window', 'ir.actions.act_window'), |
519 | |
520 | === modified file 'openerp/addons/base/ir/ir_ui_view.py' |
521 | --- openerp/addons/base/ir/ir_ui_view.py 2014-05-12 08:05:23 +0000 |
522 | +++ openerp/addons/base/ir/ir_ui_view.py 2014-05-12 13:38:11 +0000 |
523 | @@ -114,7 +114,7 @@ |
524 | ('gantt', 'Gantt'), |
525 | ('kanban', 'Kanban'), |
526 | ('search','Search'), |
527 | - ('qweb', 'QWeb')], string='View Type'), |
528 | + ('qweb', 'QWeb')], string='View Type', size=8), |
529 | 'arch': fields.text('View Architecture', required=True), |
530 | 'inherit_id': fields.many2one('ir.ui.view', 'Inherited View', ondelete='cascade', select=True), |
531 | 'inherit_children_ids': fields.one2many('ir.ui.view','inherit_id', 'Inherit Views'), |
532 | |
533 | === modified file 'openerp/addons/base/ir/ir_values.py' |
534 | --- openerp/addons/base/ir/ir_values.py 2014-02-13 11:09:37 +0000 |
535 | +++ openerp/addons/base/ir/ir_values.py 2014-05-12 13:38:11 +0000 |
536 | @@ -139,8 +139,8 @@ |
537 | } |
538 | |
539 | _columns = { |
540 | - 'name': fields.char('Name', size=128, required=True), |
541 | - 'model': fields.char('Model Name', size=128, select=True, required=True, |
542 | + 'name': fields.char('Name', required=True), |
543 | + 'model': fields.char('Model Name', select=True, required=True, |
544 | help="Model to which this entry applies"), |
545 | |
546 | # TODO: model_id and action_id should be read-write function fields |
547 | @@ -158,10 +158,10 @@ |
548 | type='text', |
549 | string='Default value or action reference'), |
550 | 'key': fields.selection([('action','Action'),('default','Default')], |
551 | - 'Type', size=128, select=True, required=True, |
552 | + 'Type', size=7, select=True, required=True, |
553 | help="- Action: an action attached to one slot of the given model\n" |
554 | "- Default: a default value for a model field"), |
555 | - 'key2' : fields.char('Qualifier', size=128, select=True, |
556 | + 'key2' : fields.char('Qualifier', select=True, |
557 | help="For actions, one of the possible action slots: \n" |
558 | " - client_action_multi\n" |
559 | " - client_print_multi\n" |
560 | |
561 | === modified file 'openerp/addons/base/module/module.py' |
562 | --- openerp/addons/base/module/module.py 2014-04-15 05:32:50 +0000 |
563 | +++ openerp/addons/base/module/module.py 2014-05-12 13:38:11 +0000 |
564 | @@ -97,7 +97,7 @@ |
565 | return result |
566 | |
567 | _columns = { |
568 | - 'name': fields.char("Name", size=128, required=True, translate=True, select=True), |
569 | + 'name': fields.char("Name", required=True, translate=True, select=True), |
570 | 'parent_id': fields.many2one('ir.module.category', 'Parent Application', select=True), |
571 | 'child_ids': fields.one2many('ir.module.category', 'parent_id', 'Child Applications'), |
572 | 'module_nr': fields.function(_module_nbr, string='Number of Modules', type='integer'), |
573 | @@ -105,7 +105,7 @@ |
574 | 'description': fields.text("Description", translate=True), |
575 | 'sequence': fields.integer('Sequence'), |
576 | 'visible': fields.boolean('Visible'), |
577 | - 'xml_id': fields.function(osv.osv.get_external_id, type='char', size=128, string="External ID"), |
578 | + 'xml_id': fields.function(osv.osv.get_external_id, type='char', string="External ID"), |
579 | } |
580 | _order = 'name' |
581 | |
582 | @@ -255,26 +255,26 @@ |
583 | return res |
584 | |
585 | _columns = { |
586 | - 'name': fields.char("Technical Name", size=128, readonly=True, required=True, select=True), |
587 | + 'name': fields.char("Technical Name", readonly=True, required=True, select=True), |
588 | 'category_id': fields.many2one('ir.module.category', 'Category', readonly=True, select=True), |
589 | - 'shortdesc': fields.char('Module Name', size=64, readonly=True, translate=True), |
590 | - 'summary': fields.char('Summary', size=64, readonly=True, translate=True), |
591 | + 'shortdesc': fields.char('Module Name', readonly=True, translate=True), |
592 | + 'summary': fields.char('Summary', readonly=True, translate=True), |
593 | 'description': fields.text("Description", readonly=True, translate=True), |
594 | 'description_html': fields.function(_get_desc, string='Description HTML', type='html', method=True, readonly=True), |
595 | - 'author': fields.char("Author", size=128, readonly=True), |
596 | - 'maintainer': fields.char('Maintainer', size=128, readonly=True), |
597 | + 'author': fields.char("Author", readonly=True), |
598 | + 'maintainer': fields.char('Maintainer', readonly=True), |
599 | 'contributors': fields.text('Contributors', readonly=True), |
600 | - 'website': fields.char("Website", size=256, readonly=True), |
601 | + 'website': fields.char("Website", readonly=True), |
602 | |
603 | # attention: Incorrect field names !! |
604 | # installed_version refers the latest version (the one on disk) |
605 | # latest_version refers the installed version (the one in database) |
606 | # published_version refers the version available on the repository |
607 | 'installed_version': fields.function(_get_latest_version, string='Latest Version', type='char'), |
608 | - 'latest_version': fields.char('Installed Version', size=64, readonly=True), |
609 | - 'published_version': fields.char('Published Version', size=64, readonly=True), |
610 | + 'latest_version': fields.char('Installed Version', readonly=True), |
611 | + 'published_version': fields.char('Published Version', readonly=True), |
612 | |
613 | - 'url': fields.char('URL', size=128, readonly=True), |
614 | + 'url': fields.char('URL', readonly=True), |
615 | 'sequence': fields.integer('Sequence'), |
616 | 'dependencies_id': fields.one2many('ir.module.module.dependency', 'module_id', 'Dependencies', readonly=True), |
617 | 'auto_install': fields.boolean('Automatic Installation', |
618 | @@ -288,7 +288,7 @@ |
619 | ('to upgrade', 'To be upgraded'), |
620 | ('to remove', 'To be removed'), |
621 | ('to install', 'To be installed') |
622 | - ], string='Status', readonly=True, select=True), |
623 | + ], string='Status', size=13, readonly=True, select=True), |
624 | 'demo': fields.boolean('Demo Data', readonly=True), |
625 | 'license': fields.selection([ |
626 | ('GPL-2', 'GPL Version 2'), |
627 | @@ -298,12 +298,12 @@ |
628 | ('AGPL-3', 'Affero GPL-3'), |
629 | ('Other OSI approved licence', 'Other OSI Approved Licence'), |
630 | ('Other proprietary', 'Other Proprietary') |
631 | - ], string='License', readonly=True), |
632 | + ], string='License', size=26, readonly=True), |
633 | 'menus_by_module': fields.function(_get_views, string='Menus', type='text', multi="meta", store=True), |
634 | 'reports_by_module': fields.function(_get_views, string='Reports', type='text', multi="meta", store=True), |
635 | 'views_by_module': fields.function(_get_views, string='Views', type='text', multi="meta", store=True), |
636 | 'application': fields.boolean('Application', readonly=True), |
637 | - 'icon': fields.char('Icon URL', size=128), |
638 | + 'icon': fields.char('Icon URL'), |
639 | 'icon_image': fields.function(_get_icon_image, string='Icon', type="binary"), |
640 | } |
641 | |
642 | @@ -774,7 +774,7 @@ |
643 | |
644 | _columns = { |
645 | # The dependency name |
646 | - 'name': fields.char('Name', size=128, select=True), |
647 | + 'name': fields.char('Name', select=True), |
648 | |
649 | # The module that depends on it |
650 | 'module_id': fields.many2one('ir.module.module', 'Module', select=True, ondelete='cascade'), |
651 | @@ -787,7 +787,7 @@ |
652 | ('to remove', 'To be removed'), |
653 | ('to install', 'To be installed'), |
654 | ('unknown', 'Unknown'), |
655 | - ], string='Status', readonly=True, select=True), |
656 | + ], string='Status', size=13, readonly=True, select=True), |
657 | } |
658 | |
659 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
660 | |
661 | === modified file 'openerp/addons/base/module/wizard/base_export_language.py' |
662 | --- openerp/addons/base/module/wizard/base_export_language.py 2012-12-10 15:27:23 +0000 |
663 | +++ openerp/addons/base/module/wizard/base_export_language.py 2014-05-12 13:38:11 +0000 |
664 | @@ -43,11 +43,11 @@ |
665 | 'lang': fields.selection(_get_languages, 'Language', required=True), |
666 | 'format': fields.selection([('csv','CSV File'), |
667 | ('po','PO File'), |
668 | - ('tgz', 'TGZ Archive')], 'File Format', required=True), |
669 | + ('tgz', 'TGZ Archive')], 'File Format', size=3, required=True), |
670 | 'modules': fields.many2many('ir.module.module', 'rel_modules_langexport', 'wiz_id', 'module_id', 'Modules To Export', domain=[('state','=','installed')]), |
671 | 'data': fields.binary('File', readonly=True), |
672 | 'state': fields.selection([('choose', 'choose'), # choose language |
673 | - ('get', 'get')]) # get the file |
674 | + ('get', 'get')], size=6) # get the file |
675 | } |
676 | _defaults = { |
677 | 'state': 'choose', |
678 | |
679 | === modified file 'openerp/addons/base/module/wizard/base_import_language.py' |
680 | --- openerp/addons/base/module/wizard/base_import_language.py 2012-12-10 15:27:23 +0000 |
681 | +++ openerp/addons/base/module/wizard/base_import_language.py 2014-05-12 13:38:11 +0000 |
682 | @@ -31,8 +31,8 @@ |
683 | _name = "base.language.import" |
684 | _description = "Language Import" |
685 | _columns = { |
686 | - 'name': fields.char('Language Name', size=64 , required=True), |
687 | - 'code': fields.char('ISO Code', size=5, help="ISO Language and Country code, e.g. en_US", required=True), |
688 | + 'name': fields.char('Language Name', required=True), |
689 | + 'code': fields.char('ISO Code', help="ISO Language and Country code, e.g. en_US", required=True), |
690 | 'data': fields.binary('File', required=True), |
691 | 'overwrite': fields.boolean('Overwrite Existing Terms', |
692 | help="If you enable this option, existing translations (including custom ones) " |
693 | |
694 | === modified file 'openerp/addons/base/module/wizard/base_language_install.py' |
695 | --- openerp/addons/base/module/wizard/base_language_install.py 2012-12-10 15:27:23 +0000 |
696 | +++ openerp/addons/base/module/wizard/base_language_install.py 2014-05-12 13:38:11 +0000 |
697 | @@ -31,7 +31,7 @@ |
698 | _columns = { |
699 | 'lang': fields.selection(tools.scan_languages(),'Language', required=True), |
700 | 'overwrite': fields.boolean('Overwrite Existing Terms', help="If you check this box, your customized translations will be overwritten and replaced by the official ones."), |
701 | - 'state':fields.selection([('init','init'),('done','done')], 'Status', readonly=True), |
702 | + 'state':fields.selection([('init','init'),('done','done')], 'Status', size=4, readonly=True), |
703 | } |
704 | _defaults = { |
705 | 'state': 'init', |
706 | |
707 | === modified file 'openerp/addons/base/module/wizard/base_module_import.py' |
708 | --- openerp/addons/base/module/wizard/base_module_import.py 2014-01-15 18:03:13 +0000 |
709 | +++ openerp/addons/base/module/wizard/base_module_import.py 2014-05-12 13:38:11 +0000 |
710 | @@ -36,8 +36,8 @@ |
711 | _columns = { |
712 | 'module_file': fields.binary('Module .ZIP file', required=True), |
713 | 'state':fields.selection([('init','init'),('done','done')], |
714 | - 'Status', readonly=True), |
715 | - 'module_name': fields.char('Module Name', size=128), |
716 | + 'Status', size=4, readonly=True), |
717 | + 'module_name': fields.char('Module Name'), |
718 | } |
719 | |
720 | _defaults = { |
721 | |
722 | === modified file 'openerp/addons/base/module/wizard/base_module_update.py' |
723 | --- openerp/addons/base/module/wizard/base_module_update.py 2012-12-10 15:27:23 +0000 |
724 | +++ openerp/addons/base/module/wizard/base_module_update.py 2014-05-12 13:38:11 +0000 |
725 | @@ -30,7 +30,7 @@ |
726 | _columns = { |
727 | 'update': fields.integer('Number of modules updated', readonly=True), |
728 | 'add': fields.integer('Number of modules added', readonly=True), |
729 | - 'state':fields.selection([('init','init'),('done','done')], 'Status', readonly=True), |
730 | + 'state':fields.selection([('init','init'),('done','done')], 'Status', size=4, readonly=True), |
731 | } |
732 | |
733 | _defaults = { |
734 | |
735 | === modified file 'openerp/addons/base/res/ir_property.py' |
736 | --- openerp/addons/base/res/ir_property.py 2014-05-06 08:41:38 +0000 |
737 | +++ openerp/addons/base/res/ir_property.py 2014-05-12 13:38:11 +0000 |
738 | @@ -33,9 +33,9 @@ |
739 | _name = 'ir.property' |
740 | |
741 | _columns = { |
742 | - 'name': fields.char('Name', size=128, select=1), |
743 | + 'name': fields.char('Name', select=1), |
744 | |
745 | - 'res_id': fields.char('Resource', size=128, help="If not set, acts as a default value for new resources", select=1), |
746 | + 'res_id': fields.char('Resource', help="If not set, acts as a default value for new resources", select=1), |
747 | 'company_id': fields.many2one('res.company', 'Company', select=1), |
748 | 'fields_id': fields.many2one('ir.model.fields', 'Field', ondelete='cascade', required=True, select=1), |
749 | |
750 | @@ -43,7 +43,7 @@ |
751 | 'value_integer' : fields.integer('Value'), |
752 | 'value_text' : fields.text('Value'), # will contain (char, text) |
753 | 'value_binary' : fields.binary('Value'), |
754 | - 'value_reference': fields.char('Value', size=128), |
755 | + 'value_reference': fields.char('Value'), |
756 | 'value_datetime' : fields.datetime('Value'), |
757 | |
758 | 'type' : fields.selection([('char', 'Char'), |
759 | @@ -58,6 +58,7 @@ |
760 | ('selection', 'Selection'), |
761 | ], |
762 | 'Type', |
763 | + size=9, |
764 | required=True, |
765 | select=1), |
766 | } |
767 | |
768 | === modified file 'openerp/addons/base/res/res_bank.py' |
769 | --- openerp/addons/base/res/res_bank.py 2014-05-01 18:42:17 +0000 |
770 | +++ openerp/addons/base/res/res_bank.py 2014-05-12 13:38:11 +0000 |
771 | @@ -27,11 +27,11 @@ |
772 | _name = 'res.bank' |
773 | _order = 'name' |
774 | _columns = { |
775 | - 'name': fields.char('Name', size=128, required=True), |
776 | - 'street': fields.char('Street', size=128), |
777 | - 'street2': fields.char('Street2', size=128), |
778 | - 'zip': fields.char('Zip', change_default=True, size=24), |
779 | - 'city': fields.char('City', size=128), |
780 | + 'name': fields.char('Name', required=True), |
781 | + 'street': fields.char('Street'), |
782 | + 'street2': fields.char('Street2'), |
783 | + 'zip': fields.char('Zip', size=128, change_default=True), |
784 | + 'city': fields.char('City'), |
785 | 'state': fields.many2one("res.country.state", 'Fed. State', |
786 | domain="[('country_id', '=', country)]"), |
787 | 'country': fields.many2one('res.country', 'Country'), |
788 | @@ -56,7 +56,7 @@ |
789 | _name = 'res.partner.bank.type' |
790 | _order = 'name' |
791 | _columns = { |
792 | - 'name': fields.char('Name', size=64, required=True, translate=True), |
793 | + 'name': fields.char('Name', required=True, translate=True), |
794 | 'code': fields.char('Code', size=64, required=True), |
795 | 'field_ids': fields.one2many('res.partner.bank.type.field', 'bank_type_id', 'Type Fields'), |
796 | 'format_layout': fields.text('Format Layout', translate=True) |
797 | @@ -70,7 +70,7 @@ |
798 | _name = 'res.partner.bank.type.field' |
799 | _order = 'name' |
800 | _columns = { |
801 | - 'name': fields.char('Field Name', size=64, required=True, translate=True), |
802 | + 'name': fields.char('Field Name', required=True, translate=True), |
803 | 'bank_type_id': fields.many2one('res.partner.bank.type', 'Bank Type', required=True, ondelete='cascade'), |
804 | 'required': fields.boolean('Required'), |
805 | 'readonly': fields.boolean('Readonly'), |
806 | @@ -113,15 +113,15 @@ |
807 | return value |
808 | |
809 | _columns = { |
810 | - 'name': fields.char('Bank Account', size=64), # to be removed in v6.2 ? |
811 | + 'name': fields.char('Bank Account'), # to be removed in v6.2 ? |
812 | 'acc_number': fields.char('Account Number', size=64, required=True), |
813 | 'bank': fields.many2one('res.bank', 'Bank'), |
814 | 'bank_bic': fields.char('Bank Identifier Code', size=16), |
815 | - 'bank_name': fields.char('Bank Name', size=32), |
816 | - 'owner_name': fields.char('Account Owner Name', size=128), |
817 | - 'street': fields.char('Street', size=128), |
818 | + 'bank_name': fields.char('Bank Name'), |
819 | + 'owner_name': fields.char('Account Owner Name'), |
820 | + 'street': fields.char('Street'), |
821 | 'zip': fields.char('Zip', change_default=True, size=24), |
822 | - 'city': fields.char('City', size=128), |
823 | + 'city': fields.char('City'), |
824 | 'country_id': fields.many2one('res.country', 'Country', |
825 | change_default=True), |
826 | 'state_id': fields.many2one("res.country.state", 'Fed. State', |
827 | |
828 | === modified file 'openerp/addons/base/res/res_company.py' |
829 | --- openerp/addons/base/res/res_company.py 2014-03-11 13:38:50 +0000 |
830 | +++ openerp/addons/base/res/res_company.py 2014-05-12 13:38:11 +0000 |
831 | @@ -38,14 +38,14 @@ |
832 | |
833 | _columns = { |
834 | 'sequence': fields.integer('Sequence'), |
835 | - 'name': fields.char('Name', size=256, required=True, help='Name it to easily find a record'), |
836 | + 'name': fields.char('Name', required=True, help='Name it to easily find a record'), |
837 | 'company_id': fields.many2one('res.company', 'Main Company', required=True, |
838 | help='Company where the user is connected'), |
839 | 'company_dest_id': fields.many2one('res.company', 'Default Company', required=True, |
840 | help='Company to store the current record'), |
841 | 'object_id': fields.many2one('ir.model', 'Object', required=True, |
842 | help='Object affected by this rule'), |
843 | - 'expression': fields.char('Expression', size=256, required=True, |
844 | + 'expression': fields.char('Expression', required=True, |
845 | help='Expression, must be True to match\nuse context.get or user (browse)'), |
846 | 'field_id': fields.many2one('ir.model.fields', 'Field', help='Select field property'), |
847 | } |
848 | @@ -118,7 +118,7 @@ |
849 | 'child_ids': fields.one2many('res.company', 'parent_id', 'Child Companies'), |
850 | 'partner_id': fields.many2one('res.partner', 'Partner', required=True), |
851 | 'rml_header': fields.text('RML Header', required=True), |
852 | - 'rml_header1': fields.char('Company Tagline', size=200, help="Appears by default on the top right corner of your printed documents (report header)."), |
853 | + 'rml_header1': fields.char('Company Tagline', help="Appears by default on the top right corner of your printed documents (report header)."), |
854 | 'rml_header2': fields.text('RML Internal Header', required=True), |
855 | 'rml_header3': fields.text('RML Internal Header for Landscape Reports', required=True), |
856 | 'rml_footer': fields.text('Report Footer', help="Footer text displayed at the bottom of all reports."), |
857 | @@ -134,7 +134,7 @@ |
858 | 'currency_id': fields.many2one('res.currency', 'Currency', required=True), |
859 | 'currency_ids': fields.one2many('res.currency', 'company_id', 'Currency'), |
860 | 'user_ids': fields.many2many('res.users', 'res_company_users_rel', 'cid', 'user_id', 'Accepted Users'), |
861 | - 'account_no':fields.char('Account No.', size=64), |
862 | + 'account_no':fields.char('Account No.'), |
863 | 'street': fields.function(_get_address_data, fnct_inv=_set_address_data, size=128, type='char', string="Street", multi='address'), |
864 | 'street2': fields.function(_get_address_data, fnct_inv=_set_address_data, size=128, type='char', string="Street2", multi='address'), |
865 | 'zip': fields.function(_get_address_data, fnct_inv=_set_address_data, size=24, type='char', string="Zip", multi='address'), |
866 | @@ -147,8 +147,8 @@ |
867 | 'fax': fields.function(_get_address_data, fnct_inv=_set_address_data, size=64, type='char', string="Fax", multi='address'), |
868 | 'website': fields.related('partner_id', 'website', string="Website", type="char", size=64), |
869 | 'vat': fields.related('partner_id', 'vat', string="Tax ID", type="char", size=32), |
870 | - 'company_registry': fields.char('Company Registry', size=64), |
871 | - 'rml_paper_format': fields.selection([('a4', 'A4'), ('us_letter', 'US Letter')], "Paper Format", required=True, oldname='paper_format'), |
872 | + 'company_registry': fields.char('Company Registry'), |
873 | + 'rml_paper_format': fields.selection([('a4', 'A4'), ('us_letter', 'US Letter')], "Paper Format", size=9, required=True, oldname='paper_format'), |
874 | } |
875 | _sql_constraints = [ |
876 | ('name_uniq', 'unique (name)', 'The company name must be unique !') |
877 | |
878 | === modified file 'openerp/addons/base/res/res_country.py' |
879 | --- openerp/addons/base/res/res_country.py 2014-02-25 09:13:58 +0000 |
880 | +++ openerp/addons/base/res/res_country.py 2014-05-12 13:38:11 +0000 |
881 | @@ -43,7 +43,7 @@ |
882 | _name = 'res.country' |
883 | _description = 'Country' |
884 | _columns = { |
885 | - 'name': fields.char('Country Name', size=64, |
886 | + 'name': fields.char('Country Name', |
887 | help='The full name of the country.', required=True, translate=True), |
888 | 'code': fields.char('Country Code', size=2, |
889 | help='The ISO country code in two chars.\n' |
890 | @@ -90,7 +90,7 @@ |
891 | _columns = { |
892 | 'country_id': fields.many2one('res.country', 'Country', |
893 | required=True), |
894 | - 'name': fields.char('State Name', size=64, required=True, |
895 | + 'name': fields.char('State Name', required=True, |
896 | help='Administrative divisions of a country. E.g. Fed. State, Departement, Canton'), |
897 | 'code': fields.char('State Code', size=3, |
898 | help='The state code in max. three chars.', required=True), |
899 | |
900 | === modified file 'openerp/addons/base/res/res_currency.py' |
901 | --- openerp/addons/base/res/res_currency.py 2014-05-01 18:42:17 +0000 |
902 | +++ openerp/addons/base/res/res_currency.py 2014-05-12 13:38:11 +0000 |
903 | @@ -66,8 +66,8 @@ |
904 | _description = "Currency" |
905 | _columns = { |
906 | # Note: 'code' column was removed as of v6.0, the 'name' should now hold the ISO code. |
907 | - 'name': fields.char('Currency', size=32, required=True, help="Currency Code (ISO 4217)"), |
908 | - 'symbol': fields.char('Symbol', size=4, help="Currency sign, to be used when printing amounts."), |
909 | + 'name': fields.char('Currency', required=True, help="Currency Code (ISO 4217)"), |
910 | + 'symbol': fields.char('Symbol', help="Currency sign, to be used when printing amounts."), |
911 | 'rate': fields.function(_current_rate, string='Current Rate', digits=(12,6), |
912 | help='The rate of the currency to the currency of rate 1.'), |
913 | |
914 | @@ -81,7 +81,7 @@ |
915 | 'company_id':fields.many2one('res.company', 'Company'), |
916 | 'date': fields.date('Date'), |
917 | 'base': fields.boolean('Base'), |
918 | - 'position': fields.selection([('after','After Amount'),('before','Before Amount')], 'Symbol Position', help="Determines where the currency symbol should be placed after or before the amount.") |
919 | + 'position': fields.selection([('after','After Amount'),('before','Before Amount')], 'Symbol Position', size=6, help="Determines where the currency symbol should be placed after or before the amount.") |
920 | } |
921 | _defaults = { |
922 | 'active': 1, |
923 | @@ -239,7 +239,7 @@ |
924 | _name = "res.currency.rate.type" |
925 | _description = "Currency Rate Type" |
926 | _columns = { |
927 | - 'name': fields.char('Name', size=64, required=True, translate=True), |
928 | + 'name': fields.char('Name', required=True, translate=True), |
929 | } |
930 | |
931 | class res_currency_rate(osv.osv): |
932 | |
933 | === modified file 'openerp/addons/base/res/res_lang.py' |
934 | --- openerp/addons/base/res/res_lang.py 2013-12-03 21:19:03 +0000 |
935 | +++ openerp/addons/base/res/res_lang.py 2014-05-12 13:38:11 +0000 |
936 | @@ -130,17 +130,17 @@ |
937 | return '%H:%M:%S' |
938 | |
939 | _columns = { |
940 | - 'name': fields.char('Name', size=64, required=True), |
941 | + 'name': fields.char('Name', required=True), |
942 | 'code': fields.char('Locale Code', size=16, required=True, help='This field is used to set/get locales for user'), |
943 | 'iso_code': fields.char('ISO code', size=16, required=False, help='This ISO code is the name of po files to use for translations'), |
944 | 'translatable': fields.boolean('Translatable'), |
945 | 'active': fields.boolean('Active'), |
946 | - 'direction': fields.selection([('ltr', 'Left-to-Right'), ('rtl', 'Right-to-Left')], 'Direction',required=True), |
947 | - 'date_format':fields.char('Date Format',size=64,required=True), |
948 | - 'time_format':fields.char('Time Format',size=64,required=True), |
949 | - 'grouping':fields.char('Separator Format',size=64,required=True,help="The Separator Format should be like [,n] where 0 < n :starting from Unit digit.-1 will end the separation. e.g. [3,2,-1] will represent 106500 to be 1,06,500;[1,2,-1] will represent it to be 106,50,0;[3] will represent it as 106,500. Provided ',' as the thousand separator in each case."), |
950 | - 'decimal_point':fields.char('Decimal Separator', size=64,required=True), |
951 | - 'thousands_sep':fields.char('Thousands Separator',size=64), |
952 | + 'direction': fields.selection([('ltr', 'Left-to-Right'), ('rtl', 'Right-to-Left')], 'Direction', size=3, required=True), |
953 | + 'date_format':fields.char('Date Format', required=True), |
954 | + 'time_format':fields.char('Time Format', required=True), |
955 | + 'grouping':fields.char('Separator Format', required=True,help="The Separator Format should be like [,n] where 0 < n :starting from Unit digit.-1 will end the separation. e.g. [3,2,-1] will represent 106500 to be 1,06,500;[1,2,-1] will represent it to be 106,50,0;[3] will represent it as 106,500. Provided ',' as the thousand separator in each case."), |
956 | + 'decimal_point':fields.char('Decimal Separator', required=True), |
957 | + 'thousands_sep':fields.char('Thousands Separator'), |
958 | } |
959 | _defaults = { |
960 | 'active': 1, |
961 | |
962 | === modified file 'openerp/addons/base/res/res_partner.py' |
963 | --- openerp/addons/base/res/res_partner.py 2014-04-17 14:55:22 +0000 |
964 | +++ openerp/addons/base/res/res_partner.py 2014-05-12 13:38:11 +0000 |
965 | @@ -123,7 +123,7 @@ |
966 | _description = 'Partner Tags' |
967 | _name = 'res.partner.category' |
968 | _columns = { |
969 | - 'name': fields.char('Category Name', required=True, size=64, translate=True), |
970 | + 'name': fields.char('Category Name', required=True, translate=True), |
971 | 'parent_id': fields.many2one('res.partner.category', 'Parent Category', select=True, ondelete='cascade'), |
972 | 'complete_name': fields.function(_name_get_fnc, type="char", string='Full Name'), |
973 | 'child_ids': fields.one2many('res.partner.category', 'parent_id', 'Child Categories'), |
974 | @@ -146,9 +146,9 @@ |
975 | _name = 'res.partner.title' |
976 | _order = 'name' |
977 | _columns = { |
978 | - 'name': fields.char('Title', required=True, size=46, translate=True), |
979 | - 'shortcut': fields.char('Abbreviation', size=16, translate=True), |
980 | - 'domain': fields.selection([('partner', 'Partner'), ('contact', 'Contact')], 'Domain', required=True, size=24) |
981 | + 'name': fields.char('Title', required=True, translate=True), |
982 | + 'shortcut': fields.char('Abbreviation', translate=True), |
983 | + 'domain': fields.selection([('partner', 'Partner'), ('contact', 'Contact')], 'Domain', size=7, required=True) |
984 | } |
985 | _defaults = { |
986 | 'domain': 'contact', |
987 | @@ -228,13 +228,13 @@ |
988 | |
989 | _order = "display_name" |
990 | _columns = { |
991 | - 'name': fields.char('Name', size=128, required=True, select=True), |
992 | + 'name': fields.char('Name', required=True, select=True), |
993 | 'display_name': fields.function(_display_name, type='char', string='Name', store=_display_name_store_triggers, select=True), |
994 | 'date': fields.date('Date', select=1), |
995 | 'title': fields.many2one('res.partner.title', 'Title'), |
996 | 'parent_id': fields.many2one('res.partner', 'Related Company', select=True), |
997 | 'child_ids': fields.one2many('res.partner', 'parent_id', 'Contacts', domain=[('active','=',True)]), # force "active_test" domain to bypass _search() override |
998 | - 'ref': fields.char('Contact Reference', size=64, select=1), |
999 | + 'ref': fields.char('Contact Reference', select=1), |
1000 | 'lang': fields.selection(_lang_get, 'Language', |
1001 | help="If the selected language is loaded in the system, all documents related to this contact will be printed in this language. If not, it will be English."), |
1002 | 'tz': fields.selection(_tz_get, 'Timezone', size=64, |
1003 | @@ -243,9 +243,9 @@ |
1004 | "that is otherwise used to pick and render date and time values: your computer's timezone."), |
1005 | 'tz_offset': fields.function(_get_tz_offset, type='char', size=5, string='Timezone offset', invisible=True), |
1006 | 'user_id': fields.many2one('res.users', 'Salesperson', help='The internal user that is in charge of communicating with this contact if any.'), |
1007 | - 'vat': fields.char('TIN', size=32, help="Tax Identification Number. Check the box if this contact is subjected to taxes. Used by the some of the legal statements."), |
1008 | + 'vat': fields.char('TIN', help="Tax Identification Number. Check the box if this contact is subjected to taxes. Used by the some of the legal statements."), |
1009 | 'bank_ids': fields.one2many('res.partner.bank', 'partner_id', 'Banks'), |
1010 | - 'website': fields.char('Website', size=64, help="Website of Partner or Company"), |
1011 | + 'website': fields.char('Website', help="Website of Partner or Company"), |
1012 | 'comment': fields.text('Notes'), |
1013 | 'category_id': fields.many2many('res.partner.category', id1='partner_id', id2='category_id', string='Tags'), |
1014 | 'credit_limit': fields.float(string='Credit Limit'), |
1015 | @@ -254,24 +254,24 @@ |
1016 | 'customer': fields.boolean('Customer', help="Check this box if this contact is a customer."), |
1017 | 'supplier': fields.boolean('Supplier', help="Check this box if this contact is a supplier. If it's not checked, purchase people will not see it when encoding a purchase order."), |
1018 | 'employee': fields.boolean('Employee', help="Check this box if this contact is an Employee."), |
1019 | - 'function': fields.char('Job Position', size=128), |
1020 | + 'function': fields.char('Job Position'), |
1021 | 'type': fields.selection([('default', 'Default'), ('invoice', 'Invoice'), |
1022 | ('delivery', 'Shipping'), ('contact', 'Contact'), |
1023 | - ('other', 'Other')], 'Address Type', |
1024 | + ('other', 'Other')], 'Address Type', size=8, |
1025 | help="Used to select automatically the right address according to the context in sales and purchases documents."), |
1026 | - 'street': fields.char('Street', size=128), |
1027 | - 'street2': fields.char('Street2', size=128), |
1028 | - 'zip': fields.char('Zip', change_default=True, size=24), |
1029 | - 'city': fields.char('City', size=128), |
1030 | + 'street': fields.char('Street'), |
1031 | + 'street2': fields.char('Street2'), |
1032 | + 'zip': fields.char('Zip', change_default=True), |
1033 | + 'city': fields.char('City'), |
1034 | 'state_id': fields.many2one("res.country.state", 'State', ondelete='restrict'), |
1035 | 'country_id': fields.many2one('res.country', 'Country', ondelete='restrict'), |
1036 | 'country': fields.related('country_id', type='many2one', relation='res.country', string='Country', |
1037 | deprecated="This field will be removed as of OpenERP 7.1, use country_id instead"), |
1038 | - 'email': fields.char('Email', size=240), |
1039 | - 'phone': fields.char('Phone', size=64), |
1040 | - 'fax': fields.char('Fax', size=64), |
1041 | - 'mobile': fields.char('Mobile', size=64), |
1042 | - 'birthdate': fields.char('Birthdate', size=64), |
1043 | + 'email': fields.char('Email'), |
1044 | + 'phone': fields.char('Phone'), |
1045 | + 'fax': fields.char('Fax'), |
1046 | + 'mobile': fields.char('Mobile'), |
1047 | + 'birthdate': fields.char('Birthdate'), |
1048 | 'is_company': fields.boolean('Is a Company', help="Check if the contact is a company, otherwise it is a person"), |
1049 | 'use_parent_address': fields.boolean('Use Company Address', help="Select this if you want to set company's address information for this contact"), |
1050 | # image: all image fields are base64 encoded and PIL-supported |
1051 | |
1052 | === modified file 'openerp/addons/base/res/res_request.py' |
1053 | --- openerp/addons/base/res/res_request.py 2013-10-06 11:47:04 +0000 |
1054 | +++ openerp/addons/base/res/res_request.py 2014-05-12 13:38:11 +0000 |
1055 | @@ -30,8 +30,8 @@ |
1056 | class res_request_link(osv.osv): |
1057 | _name = 'res.request.link' |
1058 | _columns = { |
1059 | - 'name': fields.char('Name', size=64, required=True, translate=True), |
1060 | - 'object': fields.char('Object', size=64, required=True), |
1061 | + 'name': fields.char('Name', required=True, translate=True), |
1062 | + 'object': fields.char('Object', required=True), |
1063 | 'priority': fields.integer('Priority'), |
1064 | } |
1065 | _defaults = { |
1066 | |
1067 | === modified file 'openerp/addons/base/res/res_users.py' |
1068 | --- openerp/addons/base/res/res_users.py 2014-05-12 08:05:23 +0000 |
1069 | +++ openerp/addons/base/res/res_users.py 2014-05-12 13:38:11 +0000 |
1070 | @@ -86,7 +86,7 @@ |
1071 | return where |
1072 | |
1073 | _columns = { |
1074 | - 'name': fields.char('Name', size=64, required=True, translate=True), |
1075 | + 'name': fields.char('Name', required=True, translate=True), |
1076 | 'users': fields.many2many('res.users', 'res_groups_users_rel', 'gid', 'uid', 'Users'), |
1077 | 'model_access': fields.one2many('ir.model.access', 'group_id', 'Access Controls'), |
1078 | 'rule_groups': fields.many2many('ir.rule', 'rule_group_rel', |
1079 | |
1080 | === modified file 'openerp/addons/base/workflow/workflow.py' |
1081 | --- openerp/addons/base/workflow/workflow.py 2014-05-09 09:49:20 +0000 |
1082 | +++ openerp/addons/base/workflow/workflow.py 2014-05-12 13:38:11 +0000 |
1083 | @@ -28,8 +28,8 @@ |
1084 | _table = "wkf" |
1085 | _order = "name" |
1086 | _columns = { |
1087 | - 'name': fields.char('Name', size=64, required=True), |
1088 | - 'osv': fields.char('Resource Object', size=64, required=True,select=True), |
1089 | + 'name': fields.char('Name', required=True), |
1090 | + 'osv': fields.char('Resource Object', required=True,select=True), |
1091 | 'on_create': fields.boolean('On Create', select=True), |
1092 | 'activities': fields.one2many('workflow.activity', 'wkf_id', 'Activities'), |
1093 | } |
1094 | @@ -71,17 +71,17 @@ |
1095 | _table = "wkf_activity" |
1096 | _order = "name" |
1097 | _columns = { |
1098 | - 'name': fields.char('Name', size=64, required=True), |
1099 | + 'name': fields.char('Name', required=True), |
1100 | 'wkf_id': fields.many2one('workflow', 'Workflow', required=True, select=True, ondelete='cascade'), |
1101 | 'split_mode': fields.selection([('XOR', 'Xor'), ('OR','Or'), ('AND','And')], 'Split Mode', size=3, required=True), |
1102 | 'join_mode': fields.selection([('XOR', 'Xor'), ('AND', 'And')], 'Join Mode', size=3, required=True), |
1103 | - 'kind': fields.selection([('dummy', 'Dummy'), ('function', 'Function'), ('subflow', 'Subflow'), ('stopall', 'Stop All')], 'Kind', size=64, required=True), |
1104 | + 'kind': fields.selection([('dummy', 'Dummy'), ('function', 'Function'), ('subflow', 'Subflow'), ('stopall', 'Stop All')], 'Kind', size=8, required=True), |
1105 | 'action': fields.text('Python Action'), |
1106 | 'action_id': fields.many2one('ir.actions.server', 'Server Action', ondelete='set null'), |
1107 | 'flow_start': fields.boolean('Flow Start'), |
1108 | 'flow_stop': fields.boolean('Flow Stop'), |
1109 | 'subflow_id': fields.many2one('workflow', 'Subflow'), |
1110 | - 'signal_send': fields.char('Signal (subflow.*)', size=32), |
1111 | + 'signal_send': fields.char('Signal (subflow.*)'), |
1112 | 'out_transitions': fields.one2many('workflow.transition', 'act_from', 'Outgoing Transitions'), |
1113 | 'in_transitions': fields.one2many('workflow.transition', 'act_to', 'Incoming Transitions'), |
1114 | } |
1115 | @@ -105,14 +105,14 @@ |
1116 | _name = "workflow.transition" |
1117 | _rec_name = 'signal' |
1118 | _columns = { |
1119 | - 'trigger_model': fields.char('Trigger Object', size=128), |
1120 | - 'trigger_expr_id': fields.char('Trigger Expression', size=128), |
1121 | - 'signal': fields.char('Signal (Button Name)', size=64, |
1122 | + 'trigger_model': fields.char('Trigger Object'), |
1123 | + 'trigger_expr_id': fields.char('Trigger Expression'), |
1124 | + 'signal': fields.char('Signal (Button Name)', |
1125 | help="When the operation of transition comes from a button pressed in the client form, "\ |
1126 | "signal tests the name of the pressed button. If signal is NULL, no button is necessary to validate this transition."), |
1127 | 'group_id': fields.many2one('res.groups', 'Group Required', |
1128 | help="The group that a user must have to be authorized to validate this transition."), |
1129 | - 'condition': fields.char('Condition', required=True, size=128, |
1130 | + 'condition': fields.char('Condition', required=True, |
1131 | help="Expression to be satisfied if we want the transition done."), |
1132 | 'act_from': fields.many2one('workflow.activity', 'Source Activity', required=True, select=True, ondelete='cascade', |
1133 | help="Source activity. When this activity is over, the condition is tested to determine if we can start the ACT_TO activity."), |
1134 | @@ -147,8 +147,8 @@ |
1135 | 'uid': fields.integer('User'), # FIXME no constraint?? |
1136 | 'wkf_id': fields.many2one('workflow', 'Workflow', ondelete='cascade', select=True), |
1137 | 'res_id': fields.integer('Resource ID'), |
1138 | - 'res_type': fields.char('Resource Object', size=64), |
1139 | - 'state': fields.char('Status', size=32), |
1140 | + 'res_type': fields.char('Resource Object'), |
1141 | + 'state': fields.char('Status'), |
1142 | 'transition_ids': fields.many2many('workflow.transition', 'wkf_witm_trans', 'inst_id', 'trans_id'), |
1143 | } |
1144 | def _auto_init(self, cr, context=None): |
1145 | @@ -172,7 +172,7 @@ |
1146 | 'wkf_id': fields.related('act_id','wkf_id', type='many2one', relation='workflow', string='Workflow'), |
1147 | 'subflow_id': fields.many2one('workflow.instance', 'Subflow', ondelete="cascade", select=True), |
1148 | 'inst_id': fields.many2one('workflow.instance', 'Instance', required=True, ondelete="cascade", select=True), |
1149 | - 'state': fields.char('Status', size=64, select=True), |
1150 | + 'state': fields.char('Status', select=True), |
1151 | } |
1152 | wkf_workitem() |
1153 | |
1154 | @@ -182,7 +182,7 @@ |
1155 | _log_access = False |
1156 | _columns = { |
1157 | 'res_id': fields.integer('Resource ID', size=128), |
1158 | - 'model': fields.char('Object', size=128), |
1159 | + 'model': fields.char('Object'), |
1160 | 'instance_id': fields.many2one('workflow.instance', 'Destination Instance', ondelete="cascade"), |
1161 | 'workitem_id': fields.many2one('workflow.workitem', 'Workitem', required=True, ondelete="cascade"), |
1162 | } |
1163 | |
1164 | === modified file 'openerp/addons/test_uninstall/models.py' |
1165 | --- openerp/addons/test_uninstall/models.py 2012-06-01 15:45:44 +0000 |
1166 | +++ openerp/addons/test_uninstall/models.py 2014-05-12 13:38:11 +0000 |
1167 | @@ -11,7 +11,7 @@ |
1168 | _name = 'test_uninstall.model' |
1169 | |
1170 | _columns = { |
1171 | - 'name': fields.char('Name', size=64), |
1172 | + 'name': fields.char('Name'), |
1173 | 'ref': fields.many2one('res.users', string='User'), |
1174 | 'rel': fields.many2many('res.users', string='Users'), |
1175 | } |