Commit Graph
267 Commits
Author SHA1 Message Date
mge-odoo ff2f188d20 [IMP] tests: allow post-install tests to play real transactions
Move the post-install tests execution outside `Registry.new`, and add a flag on
class `HttpCase` to enable/disable the registry "test mode".

This allows a test to run actual transactions that will reload the registry,
which may be used to test the creation of `ir.model` instances, etc.
2017-02-08 16:13:01 +01:00
Lorenzo Battistini 269dbc9872 [IMP] model: log a message when an AccessError happens
With the user who is trying to access and the record they are trying to access
to.
This way it is easier to understand the reason of the error.
Do not show record and user ids in the popup as it is a technical information.

Closes #13030
2017-02-03 15:42:47 +01:00
Martin Trigaux d436061ee6 [FIX] db: list db without a base module
If a database had no base module or no latest_version, mark it as incompatible.
This should not happen in standard but as we are considering local databases
that may be non-odoo, we should be more fault tolerant.
2017-02-02 14:23:16 +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
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 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
Martin Trigaux b7bad9dbc4 [I18N] followup of 5284c43be5
Previous commit was cleaning the orphan and fuzzy translations of all main translations.
This commit does the same for all regional languages (that are not on Transifex).
To keep these files small, keep only the translated strings.
Fixes #14937
2017-01-06 10:40:39 +01:00
Raphael Collet 25af735dd6 Fix inheritance of views with elements and text (#14944)
This avoids screwing up the text coming from the inherited views.
2017-01-05 17:26:46 +01:00
Martin Trigaux 5284c43be5 [I18N] generate and clean orphan translations
Some languages were published on Transifex in v9 but no longer in v10.
These languages were still using the outdated .po files
In some of these po, there were some fuzzy translations that were incorrect
(e.g. 'POS Order %s' - 'Kassa ostud', missing '%s')
These were not erased as still using the old translations.
Regenerate a correct .po file based on the new .pot and remove fuzzy
translations.

Fixes similar issue than raised at #14937
2017-01-05 12:01:27 +01:00
Christophe Simonis e062dc7c36 [REL] 10.saas~14 2017-01-04 19:47:23 +01:00
Christophe Simonis ca475e08eb [MERGE] forward port branch 10.0 up to 799e7f7740 2017-01-04 19:43:24 +01:00
Christophe Simonis 799e7f7740 [FIX] core: leftover openerp use from last forward-port 2017-01-04 19:24:16 +01:00
Christophe Simonis 2217b37130 [MERGE] forward port branch saas-11 up to 573293a06d 2017-01-04 19:15:31 +01:00
Fabien Pinckaers 3d04e44880 [ADD] report,base: custom report layouts
External layout for reports can be customized. 4 Layout are currently
proposed, selectable from General Settings.
An onboarding popup is shown to select the layout to used if none has
been shown nor a company logo chosen.

Joint works by Fabien Pinckaers, Antony Lesuisse and Christophe Simonis.
Design by Csaba Fazekas.
2017-01-04 18:51:17 +01:00