Commit Graph
1279 Commits
Author SHA1 Message Date
Thibault Delavallée 30b2806e58 [FIX] yaml_import: forward port of saas-12 fixes
fa502dcab8: [FIX] tools: yaml_import: typo
during migration

15835236f2: [FIX] tools: yaml_import: fields
with inverse When importing from yaml do not remove valid values for
computed fields with an inverse method
2016-07-12 17:49:58 +02:00
Raphael Collet 1ba91042d6 [FIX] fields: do not serialize more digits than necessary in monetary._symbol_set()
Add a class for float objects that carry their precision digits, use it for the
value of monetary fields in record cache, and serialize them as expected for
the database.
2016-06-23 10:08:57 +02:00
Raphael Collet 8be3781501 [REM] ir_actions: remove no-longer-supported field auto_refresh from act_window 2016-06-21 17:56:56 +02:00
Christophe Simonis da53a27a5d [MERGE] forward port of branch saas-11 up to c88c70e 2016-06-21 16:24:38 +02:00
Christophe Simonis c88c70e900 [MERGE] forward port of branch saas-10 up to d73f0d8 2016-06-21 13:58:24 +02:00
Christophe Simonis d73f0d8063 [MERGE] forward port of branch saas-9 up to 68f5163 2016-06-21 12:42:34 +02:00
Christophe Simonis 91e04da933 [MERGE] forward port of branch 9.0 up to e37ba61 2016-06-20 14:28:20 +02:00
Jeremy Kersten 39a7ce44b0 [FIX] tools: don't save dev_mode in config file.
When user reset master password from web database manager, the
config file is saved.

If server was started in dev_mode the param dev_mode was saved
in openerp_serverrc silently. (in 9 or always in trunk)

Remind: --dev_mode should be never used on a production server.
2016-06-17 17:19:00 +02:00
Christophe Simonis 10148c3c3a [MERGE] forward port of branch saas-9 up to 8ddf1b9 2016-06-17 12:24:47 +02:00
Christophe Simonis 8ddf1b909a [MERGE] forward port of branch 9.0 up to 8284c73 2016-06-17 11:32:09 +02:00
Damien Bouvy 9c007ac375 [IMP] db_manager: better uuid management
* Always change the uuid of a duplicate database by default
* Clearer message when restoring a backup
2016-06-16 17:29:41 +02:00
Raphael Collet 1a6e934a55 [MIG] yaml_import: convert to the new API 2016-06-16 16:54:30 +02:00
Raphael Collet c69831379f [MIG] convert: convert to the new API 2016-06-16 16:54:30 +02:00
Raphael Collet 8da9116f5d [REM] models: remove deprecated method BaseModel.import_data() 2016-06-16 16:50:46 +02:00
Aaron Bohy 38bb6a7f81 [ADD] openerp,web,web_tour: new web_tour addon
Join work with ged
2016-06-16 14:59:40 +02:00
Jainik Patel eda051f43d [REM] web: Remove GTK icons and replace them by Font-awesome 2016-06-13 12:04:17 +02:00
Jairo Llopis 5cfadf5e41 [IMP] tools: support wdb in dev mode. 2016-06-09 16:01:54 +02:00
Raphael Collet 5032cdf64b [FIX] translate: fix test on lxml node
Specifically, replace `not node.getparent()` by `node.getparent() is None`.
2016-06-08 16:25:40 +02:00
Christophe Simonis 7306e888a6 [MERGE] forward port of branch saas-11 up to ac50230 2016-06-08 12:28:16 +02:00
Christophe Simonis ac5023060c [MERGE] forward port of branch saas-10 up to 2f948c7 2016-06-08 12:19:23 +02:00
Christophe Simonis 2f948c76aa [MERGE] forward port of branch saas-9 up to 3ed483c 2016-06-07 19:45:02 +02:00
Christophe Simonis 3ed483caa1 [MERGE] forward port of branch 9.0 up to fa4a371 2016-06-07 19:21:18 +02:00
Christophe Matthieu 3d9ccef81d [FIX] translate: doctype is removed from the backend web template
issue: The rendering is altered because the browser doesn't know how to parse the html and css content
2016-06-07 14:16:12 +02:00
Christophe Matthieu a4c1e10ae6 [FIX] translate: do not translate <!DOCTYPE>
Avoid the DOCTYPE tranlation. If this tag is changed, the html rendering is altered. The other effet is that the web_editor wrap the content with <span> to translate, but some explorer eject tags (doctype, head content, script, style, meta) et insert this tags in the body.
NB: DOCTYPE is not a node but a text.
2016-06-06 11:18:41 +02:00
Olivier Dony 5a8a17b4e0 [IMP] safe_eval: unused import, linting 2016-06-02 00:50:43 +02:00
Olivier Dony ef0d05b6e0 [IMP] safe_eval: let AuthenticationError and werkzeug HTTPExceptions bubble up
- Werkzeug's HTTPException are useful while dispatching HTTP requests,
  in order to return a custom error page with an appropriate status
  code. The http stack should let those exceptions bubble all the way up
  and return the body of the exception as the HTTP response.

- openerp.http.AuthenticationError may be useful while dispatching JSON
  requests, because the JSON error result will have error code 100
  instead of the usual code 200, making it easy to distinguish
  in simple JSON client code.

- Also slightly improved the fallback for unknown exceptions occurring
  during "safe evaluation", to explicitly mention the original exception
  type in the generic ValueError that gets raised.
2016-06-02 00:50:36 +02:00
Vipul Bhatt 2ae11ec508 [IMP] base: 'ir.actions.server' 'code' field validation constraint
- Only SAFE CODES (specified in openerp/tools/safe_eval.py) are allowed in server actions
 - Validating basic python errors eg. SyntaxError, IndentationError etc.
2016-05-31 14:15:13 +02:00
Christophe Simonis 57944db19a [MERGE] forward port of branch saas-9 up to b7fce22 2016-05-26 16:48:33 +02:00
Christophe Simonis b7fce227cc [MERGE] forward port of branch 9.0 up to 9bd223f 2016-05-26 16:47:37 +02:00
Christophe Simonis 44fd6a55f3 [MERGE] forward port of branch saas-9 up to 413ba94 2016-05-26 14:10:55 +02:00
Martin Trigaux a93b6e8de0 Revert "[FIX] translate: don't translate DOCTYPE tag"
This reverts commit 44e8b92beb.

The condition is wrong as a view starting with DOCTYPE as top element will be
excluded, including its child (the whole page them).

Re-add the translatable title that was excluded by the condition.
2016-05-26 14:08:35 +02:00
Christophe Matthieu 44e8b92beb [FIX] translate: don't translate DOCTYPE tag 2016-05-26 07:50:48 +02:00
Christophe Matthieu 31d8507d78 [FIX] translate: don't translate DOCTYPE tag 2016-05-25 15:20:20 +02:00
Christophe Matthieu 70d871d81a [FIX] translate: don't translate DOCTYPE tag 2016-05-25 15:12:02 +02:00
Yenthe 8637c2a1f8 [IMP] Change wording
At this point the error states that a page node must be below a book node, but the correct term is notebook.
This can be confusing for a developer.
2016-05-25 11:14:38 +02:00
Christophe Simonis 91c9284951 [MERGE] forward port of branch saas-10 up to 5aa0bae 2016-05-13 16:33:51 +02:00
Christophe Simonis c4bba868f0 [MERGE] forward port of branch saas-9 up to 087729f 2016-05-13 15:58:06 +02:00
Christophe Simonis 7f2a9e77b6 [MERGE] forward port of branch 9.0 up to dcab356 2016-05-13 14:08:51 +02:00
Christophe Simonis f1659a0dc9 [MERGE] forward port of branch saas-6 up to f6eda2c 2016-05-13 12:59:04 +02:00
Christophe Simonis f6eda2c350 [MERGE] forward port of branch 8.0 up to 5e18f5a 2016-05-13 12:54:34 +02:00
Christophe Simonis 5e18f5a080 [FIX] tools: correct Burmese locale 2016-05-13 12:53:17 +02:00
Christophe Simonis 7e999ece01 [MERGE] forward port of branch saas-6 up to 19a77d9 2016-05-12 18:20:08 +02:00
Christophe Simonis 2f374c4cba [MERGE] forward port of branch 8.0 up to 3a32021 2016-05-12 12:38:02 +02:00
Martin Trigaux e93cf3f3dd [ADD] tools: Burmese language 2016-05-11 11:42:02 +02:00
Andreas Stauder 9b70650adc [ADD] tools: Swiss German language
Closes #4722
2016-05-11 11:41:32 +02:00
Martin Trigaux 59982a04a4 [FIX] tools: keep comment in CSV export
The comments field was ignored (because reasons) when exporting terms in CSV.
This was an issue when using the wizard 'Synchronize Terms' as it first export
the terms of every module in CSV.

opw-673853
2016-05-10 12:46:20 +02:00
Christophe Simonis 396facfaf0 [MERGE] forward port of branch 8.0 up to 8651d08 2016-05-02 11:04:21 +02:00
Jeremy Kersten 93e0980035 [IMP] openerp: tools - merge --debug mode in --dev mode
- Merge debug mode in dev mode.
- Allow to select dev feature ony by one

--dev=all will active all dev tool
--dev=
      xml        will read template in xml file and not in db
                 if not updated meanwhile
      reload     Add a watcher to reload the server if python code is modified
      qweb       Allow to add t-debug in template qweb
      werkzeug   Active the werkeug debugger console when an exception is raised
      (i)p(u)db  Allow to break before that the error is raised (old --debug mode)

To NEVER uses in production, since it give a console access in frontend.
2016-04-27 10:28:49 +02:00
Stefan Rijnhart 0c2f7bdbc2 [FIX] tools: export translated fields not included in _columns
Non-stored new API computed fields are only defined in _fields
but not in _columns, and they were never exported within translation
files.

Closes #9081
2016-04-26 19:12:51 +02:00
Christophe Simonis 2dcbdd0778 [MERGE] forward port of branch saas-10 up to bb8f0f1 2016-04-25 15:48:31 +02:00