* jQuery autocomplete requires complex hacks to work out and look select-ish * select2 is more straightforward to use for people expecting <select> as it's styled similarly to a (non-standard) select * select2 includes built-in support for groups, no need to hack it via interspersed fake options * select2 provides a nice [x] button to remove the current choice without having to e.g. manually remove the content of the input Why select2 instead of Chosen? Because Chosen isn't really setup to work from array data, it wants selects serialized in the DOM, and while the webkit bug I'd identified previously (see web client revid:xmo@openerp.com-20110922085812-3u1esk6czraskm01) seems fixed in the very latest webkits, it's still present in e.g. Safari 5.1 which I'm using. So there. And chosen's APIDoc is almost as bad as OpenERP's. bzr revid: xmo@openerp.com-20120906103516-h94e6hd76w41bmyx
40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
{
|
|
'name': 'Base import',
|
|
'description': """
|
|
New extensible file import for OpenERP
|
|
======================================
|
|
|
|
Re-implement openerp's file import system:
|
|
|
|
* Server side, the previous system forces most of the logic into the
|
|
client which duplicates the effort (between clients), makes the
|
|
import system much harder to use without a client (direct RPC or
|
|
other forms of automation) and makes knowledge about the
|
|
import/export system much harder to gather as it is spread over
|
|
3+ different projects.
|
|
|
|
* In a more extensible manner, so users and partners can build their
|
|
own front-end to import from other file formats (e.g. OpenDocument
|
|
files) which may be simpler to handle in their work flow or from
|
|
their data production sources.
|
|
|
|
* In a module, so that administrators and users of OpenERP who do not
|
|
need or want an online import can avoid it being available to users.
|
|
""",
|
|
'category': 'Uncategorized',
|
|
'website': 'http://www.openerp.com',
|
|
'author': 'OpenERP SA',
|
|
'depends': ['base'],
|
|
'installable': True,
|
|
'auto_install': False, # set to true and allow uninstall?
|
|
'css': [
|
|
'static/lib/select2/select2.css',
|
|
'static/src/css/import.css',
|
|
],
|
|
'js': [
|
|
'static/lib/select2/select2.js',
|
|
'static/src/js/import.js',
|
|
],
|
|
'qweb': ['static/src/xml/import.xml'],
|
|
}
|