Commit Graph
3175 Commits
Author SHA1 Message Date
Christophe Simonis 6a942a9e96 [MERGE] forward port branch 10.0 up to 8a0151b4bc 2017-02-02 12:42:51 +01:00
Nicolas Martinelli b34917cd6d [FIX] base: field 'Type' readonly
The field 'Type' should always be readonly since:
- it must not be changed for standard models
- its value must be 'Custom Object' for a custom model

opw-706130
2017-02-01 14:53:35 +01:00
Martin Trigaux 610036756a [FIX] db: release connection after listing
When listing compatible and incompatible db (introduced at 96f703f), a
connection is created on each db to check the version of the base module.

After checking the version, release the connection from the ConnectionPool to
allow some operations like dropdb or rename.
2017-02-01 13:13:23 +01:00
Christophe Simonis 35db7e3779 Revert "[IMP] base: Admin and Public partners are customers"
No, they are not (by definition).

This reverts commit 3aafb6f8e3.
2017-02-01 11:43:25 +01:00
Jeremy Kersten 3d0cc2d6d2 [FIX] website_portal: allow non employee user to log in to the portal
Commit #3649b7f359b640635cbe0bc4f161884ba64c2318 remove sudo when loading the menu.

Add test to check that homepage portal can be loaded with user portal.
That's the first test using portal user, it don't really test the portal features,
but just that the loading of portal homeapge works...
2017-02-01 09:05:44 +01:00
George Daramouskas 96f703ff84 [ADD] web: warning on incompatible databases
If a database is not an Odoo database or is not the same version
Closes #15171
2017-01-31 18:17:55 +01:00
Carlos Alberto Cipriano Korovsky 7cb99ada2d [ADD] base: South America group
Closes #15284
2017-01-31 16:56:55 +01:00
Carlos Alberto Cipriano Korovsky d383436494 [IMP] base: translate country group name
Closes #15284
2017-01-31 16:56:24 +01:00
Christophe Simonis 59d1f9b564 [IMP] core: only mark updated fields as modified at model reflection
`model` field of `ir.model` may be used as related stored field.
Marking it as modified force recomputation of these, even no change
occurs (by definition).
2017-01-31 13:56:28 +01:00
Yannick Tivisse 3aafb6f8e3 [IMP] base: Admin and Public partners are customers
In order to be able to use the coupon mechanism with them. That's because a coupon can only be used for customers
2017-01-31 13:16:20 +01:00
Odoo Translation Bot 6a7c05112b [I18N] Update translation terms from Transifex 2017-01-29 04:30:19 +01:00
Olivier Dony 3ace806d39 [FIX] config: correctly bootstrap data_dir
Complements the patch in 8235f03f56
in order to properly bootstrap a writeable data_dir when it is
(partially) nonexistant.
Depending on the startup parameters the data_dir might otherwise
have ended up read-only, preventing the creation of its necessary
components (session store, file store). Only the `addons` directory
of the data_dir needs to be read-only by default.
2017-01-28 00:57:40 +01:00
Christophe Simonis ba8a1c7ec2 [MERGE] forward port branch saas-11 up to e86983112e 2017-01-27 18:20:28 +01:00
Olivier Dony 8d289c58b5 [I18N] base: update PO template for 8235f03
Courtesy of @mart-e!
2017-01-27 14:17:47 +01:00
Olivier Dony 8235f03f56 [FIX] module: allow disabling 1-click install
As discussed on issue #15225, it should be possible for system administrators
to disable the 1-click installation system.
The plan is to disable the feature by default, but make it relatively easy
to turn on when it is explicitly desired.

1. At the moment we cannot guarantee that all Apps published on the Odoo Apps
   Store are safe. And it is a security risk to let end-users deploy Python
   code on their Odoo servers without requiring any review/deployment by a
   competent system administrator.
   We will work on improving the validation process of the Store, but this
   will require time, and won't probably be a 100% safe process in any case.
2. The one-click install feature is however really useful to help
   non-technical users install Apps, as long as the feature has been
   explicitly allowed by the system administrator. This is a common feature
   in other software suites as well. So we'd like to keep it as an opt-in
   feature.
3. Administrators of multi-tenant servers, cloud hosting services, etc.
   understandably expect to be able to turn off the feature for
   security/control reasons.
4. By turning off the feature by default, but still exposing it in the UI,
   we keep it *discoverable* for users. The error message should be
   helpful to direct users to their sysadmins.
5. By using the permissions of the download folder as a flag for turning
   off the feature, we avoid introducing an extra server parameter.
   The folder is still created (read-only) by default, for the sole purpose
   of making it easier to locate.

Fixes #15225
2017-01-27 13:56:05 +01:00
Christophe Simonis dbbd7f1178 [MERGE] forward port branch saas-14 up to 7b2924253b 2017-01-25 16:36:28 +01:00
Christophe Simonis 7b2924253b [MERGE] forward port branch 10.0 up to 7427825790 2017-01-25 16:27:38 +01:00
Pedro M. Baeza 912dd83403 [FIX] base: update Spanish states
According official country source (BOE) some states changed their denomination
to allocate local language spelling.
https://www.boe.es/diario_boe/txt.php?id=BOE-A-2011-11606

As there's a lot of people that still uses the old one, the best solution is to
include both words in the name of the state, and thus user can search by any of
them.

"Melilla" code is also incorrect according used nomenclature but can not be
modified in stable version.
Futher commit can correct it with a migration script

Closes #15166
2017-01-24 10:28:59 +01:00
Christophe Simonis 02a5160f54 [FIX] base: correct model reflection
Oversight of previous forward-port
2017-01-23 17:34:36 +01:00
Odoo Translation Bot b164b56ebf [I18N] Update translation terms from Transifex
Interrupted during pull API limit rate
2017-01-23 16:44:17 +01:00
Christophe Simonis fded0065ae [MERGE] forward port branch saas-14 up to 6c4389df41 2017-01-23 14:51:11 +01:00
Christophe Simonis 6c4389df41 [MERGE] forward port branch 10.0 up to 6804085b8c 2017-01-23 14:33:53 +01:00
Christophe Simonis 6804085b8c [MERGE] forward port branch saas-11 up to b9374d5c21 2017-01-23 13:56:18 +01:00
Odoo Translation Bot c7679dde25 [I18N] Update translation terms from Transifex 2017-01-22 04:30:26 +01:00
Martin Trigaux b437afd029 [FIX] base: avoid reference to group_user before creation
The group base.group_user is used in the computation of the share column which
is executed at column creation, before the group is imported.

Set it in base.sql to already have an xmlid to resolve.
2017-01-20 13:54:16 +01:00
Raphael Collet 4a18d5744e [FIX] base: restrict read access to ir.model and ir.model.fields to employees 2017-01-20 10:05:10 +01:00
Raphael Collet b0646f9d2c [REF] move support for sparse fields into a separate module (#15070)
This removal has led to a necessary refactoring:
- make the setup of field attributes extensible;
- make the instantiation of custom fields extensible;
- delegate model and field reflection to `ir.model` and `ir.model.fields`;
- move the implementation of sparse and serialized fields to module `base_sparse_field`;
2017-01-19 16:29:29 +01:00
Martin Geubelle 5b521136d4 [IMP] base: use domain widget for ir.filters 2017-01-19 11:58:06 +01:00
Martin Geubelle 8695d626c8 [FIX] base: required fields cannot be readonly
If a required field is readonly, it's not possible to create a record
anymore.

This partially reverts https://github.com/odoo/odoo/commit/742cadaea8e9fa7c1585f83885e143076965c4f5
2017-01-19 11:58:05 +01:00
Christophe Simonis f0a5618e61 [MERGE] forward port branch saas-11 up to 6169018c33 2017-01-18 16:21:55 +01:00
Christophe Simonis 879c323578 [MERGE] forward port branch saas-11 up to 6825ddf9ad 2017-01-18 14:42:04 +01:00
Christophe Simonis 44276dfdc3 [MERGE] forward port branch saas-11 up to a0aca47fef 2017-01-17 19:12:20 +01:00
Raphael Collet 3649b7f359 [FIX] base: access rights of ir.model and ir.model.fields
This partially reverts commits 5d746d0ac6 and
73de86c768.

The tightening of access rights was too strong: regular users need to be able
to read models and fields (to create an email templace, for instance.)

[FIX] ir_values: in `get_actions`, exclude field `code`
2017-01-17 16:15:26 +01:00
Martin Trigaux d126529d1b [FIX] base: avoid traceback when rendering traceback
If node is not installed (missing dependency), the user is not aware of the
source of the issue as it can not be displayed in the css_errors or logger.
The error is
/usr/bin/env: ‘node’: No such file or directory
which contains unicode quotes.

Does not fix #15057 but at least say the source of the problem.
2017-01-16 14:50:20 +01:00
Odoo Translation Bot 6fc0d955d0 [I18N] Update translation terms from Transifex
To reflect changes 62bd57e285
opw-704728
2017-01-16 09:41:24 +01:00
Odoo Translation Bot 4d4e0484d1 [I18N] Update translation terms from Transifex 2017-01-15 04:31:44 +01:00
qdp-odoo 9dbe23e038 [FIX] base_address_city, base_address_extended: usability of res.partner form view
*street fields should be editable only if we modify the main partner address
*creating a res.city through the m2o should has default country and a domain
2017-01-13 18:27:37 +01:00
qdp-odoo 0899e8ada3 [IMP] base, base_address_extended: usability in country form view
Following tde comments, this commit enhances the 'Advanced Address Formatting' group in country view
2017-01-13 16:56:01 +01:00
Denis Ledoux 2ddd5590b2 [FIX] base: correct typo in _fields_find, res_ids -> res_id
The issue is introduced by revision
d465346f1e

Raphaël actually meant
`res_ids = data.mapped('res_id')`

Indeed, there is no `res_ids` field on `ir.model.data`,
but there is a `res_id`.

In addition, the same code is written correctly in the method
just above this one, `_object_find`

opw-704592
2017-01-13 11:54:22 +01:00
Thibault Delavallée cbc381fb9a [IMP] ir_actions: improve form view usability
* improve string of action that creates the 'more' menu entry;
   still not the best label but at least less error prone
 * improve help tab by adding comments for model and records
   variables
2017-01-12 12:35:06 +01:00
Thibault Delavallée 5ca2bb785f [IMP] ir_cron: improve form view usability
* User renamed to Cron User which is the uid used to run
   the scheduled action
 * Clean 'repeat every' option to make it easier to understand
 * Priority field should not be named sequence
2017-01-12 12:33:12 +01:00
Thibault Delavallée aacaa7003e [FIX] ir_actions: avoid crash if action runs on a void set of ids 2017-01-12 12:31:08 +01:00
Christophe Simonis a2c1df8b9c [MERGE] forward port branch saas-14 up to 557feb950c 2017-01-10 13:52:44 +01:00
Christophe Simonis 557feb950c [MERGE] forward port branch 10.0 up to 482fd04167 2017-01-10 13:50:48 +01:00
Odoo Translation Bot b5381e8537 [I18N] Update translation terms from Transifex 2017-01-09 13:18:30 +01:00
Odoo Translation Bot 5f6e3f4686 [I18N] Update translation terms from Transifex 2017-01-09 12:00:30 +01:00
Odoo Translation Bot 854ab68902 [I18N] Update translation terms from Transifex 2017-01-08 04:43:31 +01:00
Martin Geubelle 9876a77b14 [IMP] odoo: modify the default kanban view
This commit adds a div `content` around the first field in the
default kanban view.
2017-01-07 15:13:50 +01:00
Christophe Simonis 98c71b23d3 [MERGE] forward port branch saas-11 up to 9073ecb6f5 2017-01-06 18:06:14 +01:00
Nicolas Lempereur 07bf7bf4f3 [FIX] odoo-bin: server UTC timezone on windows
On UNIX, the timezone modules conversions can be reset by using
`time.tzset()`. On windows this is not available and the timezone (TZ)
environment variable must be set before the first import of time module.

If not, all datetime gotten in python without specifying UTC (such as
datetime.datetime.now) could be wrong.

This was fixed with 4a77c6a0 in 2013, but has come back since 389c2ba97b
imported pkg_resources (which do  a `time` module import) before that.

closes #14926
opw-693764
2017-01-06 14:19:09 +01:00