Commit Graph

6781 Commits

Author SHA1 Message Date
Olivier Dony 0f01df42ea [MERGE] Forward-port saas-5 up to f15cbd6 2014-06-12 18:59:15 +02:00
Olivier Dony f15cbd6520 [MERGE] Forward-port saas-4 bugfixes up to ad4c6ca 2014-06-12 18:54:36 +02:00
ged-odoo 74168c4e9d Merge pull request #272 from odoo-dev/master-inline-searchview-ged
[MERGP] Inline Searchview

This task split the searchview in two parts: SearchView and SearchViewDrawer. The drawer is displayed inside the main view and the searchview stays in place.  It also changes the scrolling behavior of the web client: the main view area can scroll without affecting the UI (so the various menus stays in place)

Because of this, other large changes have been made:

the drawer has been redesigned,
the Custom Filter widget has been split in two (Custom Report and SaveCurrentFilter),
the main view is now scrollable, so the UI stays in place and only the view can change
The text 'Group By...' has been changed into 'Group By' (most addons had to be modified)
bootstrap classes are used when it makes sense (for example, badge)
the left menu is also scrollable (separately from the main view)

It is likely that some stupid bugs have been introduced.  Please don't hurt me.
2014-06-12 16:27:11 +02:00
Fabien Meghazi 64b78b34d6 Merge pull request #505 from odoo-dev/master-form-views-default-version-fme
[IMP] Form views default version is now 7.0
2014-06-12 15:27:24 +02:00
Fabien Meghazi 87378aac26 Convert form views @version="6.1" 2014-06-12 13:55:40 +02:00
Géry Debongnie 0bcf81f11f Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-06-12 10:44:32 +02:00
Fabien Meghazi b76c4e248c Add form@version in rng 2014-06-12 10:17:36 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Fabien Meghazi 619ee620f7 [ADD] Pseudo `clone` mode for <templates> using primary="True"
When @primary="True" is present on <template> tag, we'll set
the t-name to the full canonical xmlid of current template (@id)
Providing a "kind of" clone mode for templates.
2014-06-11 17:03:02 +02:00
Géry Debongnie fe209f9e7a [MERGE] merge from master 2014-06-11 15:53:45 +02:00
antonylesuisse df78e58df2 Merge pull request #424 from odoo-dev/master-inithooks-chs
[ADD] module install/uninstall hooks.
2014-06-11 14:58:25 +02:00
Fabien Meghazi 1ac928af05 Set old form views as explicit @version="6.1" 2014-06-11 14:04:02 +02:00
Fabien Meghazi ba3ce4753b Set form views default @version="7.0" 2014-06-11 14:03:20 +02:00
sve-odoo 6ed133d86d [IMP] Add filters in ir.model.fields search view.
Add "Custom" and "Base" filters in ir.model.fields search view.
2014-06-11 11:16:17 +02:00
Christophe Simonis 7bee9447c4 [MERGE] forward port of branch saas-3 up to 3c7a54a 2014-06-11 11:06:04 +02:00
Christophe Simonis 3c7a54a76c [MERGE] forward port of branch 7.0 up to 100eba8 2014-06-11 10:58:43 +02:00
Jeremy Kersten 100eba8eaf [FIX] fields.py - avoid dict comprehension inside a dict comprehension 2014-06-11 10:30:00 +02:00
Géry Debongnie af58bc5914 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-06-11 10:10:58 +02:00
Fabien Meghazi 6981af0221 Merge pull request #462 from odoo-dev/master-odoo-deploy-force-fme
Added --force to odoo deploy
2014-06-11 10:04:03 +02:00
Fabien Meghazi c1e6e70870 Added --force to odoo deploy
Will force --init mode even if module is already installed
2014-06-11 09:55:17 +02:00
Thibault Delavallée 222e26628a [FIX] crm, crm_partner_assign, res_partner, mail, project: removed deprecated fields, deprecated methods + references to it; also removed deprecated tags on things that are not deprecated anymore. Everything is under control. 2014-06-11 08:44:40 +02:00
Olivier Dony 6b85d80f23 [FIX] Wrap werkzeug.utils.escape() to accomodate signature change in 0.9
We always want to escape quotes (") as part of the process of
generating HTML output. This option (quote=True) turned into
an implicit flag with a DeprecationWarning in werkzeug 0.9.0
It is likely to disappear in a future release of werkzeug too.
A wrapper avoids this warning without loss of compatibility
2014-06-10 18:46:40 +02:00
Fabien Meghazi 1d0424a3cb Merge pull request #457 from odoo-dev/master-odoo-cmd-fixes-fme
[IMP] `odoo.py start`: Always create missing db
2014-06-10 16:52:32 +02:00
Christophe Simonis eedb831c0d [FIX] logging PostgreSQLHandler: mute sql_db logger to avoid logging loop if db connection or query failed 2014-06-10 16:11:11 +02:00
Fabien Meghazi b278d7ff5d Merge pull request #356 from xmo-odoo/scaffold-kwargs
[IMP] add kwargs to scaffolded controller
2014-06-10 15:44:30 +02:00
Fabien Meghazi 97a5c043b5 Always create missing db when using `odoo start` 2014-06-10 15:00:20 +02:00
Christophe Simonis ccdae747a0 [MERGE] forward port of branch saas-5 up to a7c2125 2014-06-10 13:19:55 +02:00
Christophe Simonis a7c2125735 [MERGE] forward port of branch saas-4 up to 6b8e972 2014-06-10 13:15:46 +02:00
Christophe Simonis 6b8e9727e5 [MERGE] forward port of branch saas-3 up to 4601d85 2014-06-10 12:29:47 +02:00
Christophe Simonis 4601d85944 [MERGE] forward port of branch 7.0 up to 6fdb783 2014-06-10 11:49:14 +02:00
Géry Debongnie 8202561511 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-06-10 11:43:17 +02:00
Christophe Simonis 6eacf91671 [FIX] logging PostgreSQLHandler: do not insert {create,write}_uid
As logs can be stored in any database, we can't insert create_uid and write_uid as it
refer to the current database not the logging one, where FK may not match
2014-06-10 11:15:52 +02:00
Christophe Simonis 4105b5f028 [ADD] module install/uninstall hooks.
Since 4ec71c74d1, migration scripts
are not executed at module install anymore.
As this behavior was missused as "init" scripts (see [1]), this
commit re-add this possiblity via hooks.

There are 3 hooks that can be declared in the manifest file:
 - pre_init_hook: called before module installation
 - post_init_hook: called after module installation
 - uninstall_hook: called before module uninstallation

Like the "post_load" manifest option, the values for these hooks
must be a string containing the name of a method available at the
module root.
The signatures of these functions are:
 - (cr) for pre_init_hook
 - (cr, registry) for post_init_hook and uninstall_hook

[1] https://bugs.launchpad.net/openobject-server/+bug/1314680
2014-06-07 00:41:29 +02:00
xmo-odoo 24141a64b7 Merge pull request #338 from savoirfairelinux/scaffold-pep8
[FIX] pep8 errors generated by odoo.py scaffold
2014-06-06 11:52:41 +02:00
xmo-odoo e583fccf44 Merge pull request #353 from xmo-odoo/unrestrict-view-write
[IMP] views: don't prevent always -> disabled writes
2014-06-06 11:48:09 +02:00
Christophe Simonis 517162ce14 [FIX] orm: do not recompute m2o stored function field at read.
The get() method of m2o function fields is used for 2 different things:
 - call the function defining the m2o
 - get the name_get representation of the value

Until this pathc, only the first case was handled, resulting to a useless
recomputation of the field when reading it.
2014-06-06 10:53:42 +02:00
Sandy Carter 666ea5f98a [FIX] pep8 errors generated by odoo.py scaffold
Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>
2014-06-06 09:03:10 +02:00
Oliver Laurent 306d5c89a0 [FIX] orm: do not resize unlimited char fields 2014-06-05 19:05:36 +02:00
Laurent Mignon 6788edcdd0 [FIX] ir_cron: use the same search criteria as when listing job to excecyte when acquiring the ock on the job before its execution to prevent running already executed job
Backport of fix made in trunk
2014-06-05 18:59:03 +02:00
Augustin Cisterne-Kaas 1dfa3946b5 [IMP] Db filter %h
Db filter %h skips www subdomain.
2014-06-05 16:09:04 +02:00
Xavier Morel e5560a2785 [REM] test for removed 'feature' of refusing always -> disabled writes on views 2014-06-05 16:08:42 +02:00
Martin Trigaux 426993e06d uninstall: avoid errors during uninstall
When uninstalling a module, remove the ir.model.constraint after removing the non-model records and before fields and model definition.
Without this fix, some constraint would be removed too early allowing to have broken relations and data left from removed module.
2014-06-05 12:52:11 +02:00
Xavier Morel 08b1107413 [IMP] add kwargs to scaffolded controller so ?debug does not blow up by default 2014-06-05 12:32:12 +02:00
Xavier Morel b973e27da5 [IMP] views: don't prevent always -> disabled writes in views, is confusing and not very useful 2014-06-05 12:22:37 +02:00
Olivier Dony d1b0d2586b [FIX] ir.qweb: rendering non-string attributes could cause unicode errors (Issue #282)
This occurs because werkzeug.utils.escape() auto-casts
non-basestring values to unicode, while we expect to be
working with bytestrings only.
So when evaluating attribute values, make sure we always
return bytestring values, never int, bool or unicode.
2014-06-05 10:11:23 +02:00
Fabien Meghazi 27af219b5e Change scaffolding's controller template 2014-06-04 01:27:59 +02:00
Fabien Meghazi a52a426de3 Do not check SSL certificate by default
(requested by al)
2014-06-04 00:58:32 +02:00
Fabien Meghazi 8a4511277c Fix error on url scheme for odoo deploy 2014-06-04 00:58:23 +02:00
Fabien Meghazi c5129fcfe5 Add __init__.py when createing module. Also add templates.xml in
manifest
2014-06-04 00:58:05 +02:00
Christophe Simonis a5908c5812 [MERGE] forward port of branch saas-5 up to b1c0bc0 2014-06-03 20:02:00 +02:00