Commit Graph
74 Commits
Author SHA1 Message Date
Swapnesh Shah bd0827ed23 [Fix] base_gengo: add target Inline
To open the setting in the full window

Closes #23209
Fixes second part of #23170
2018-02-27 16:07:11 +01:00
Martin Trigaux 05e18074cf [FIX] base_gengo: redirect to correct model
The configuration was moved to res.config

Fixes #23170
2018-02-20 15:44:01 +01:00
Christophe Simonis 89df681b45 [MERGE] forward port branch saas-15 up to da15615c45 2017-09-28 11:56:23 +02:00
Christophe Simonis af117236de [MERGE] forward port branch 10.0 up to 8165018058 2017-09-27 17:07:23 +02:00
Martin Trigaux 88edeeca6a [FIX] preventing context.get('lang')
The lang in the context can be None or False
To avoid similar error as revealed at ede29e6d, correctly retrieve the context
2017-09-26 16:58:59 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Xavier Morel 3979f6802e [#8530] convert exception handlers to except..as syntax
Futurize fixers:
* lib2to3.fixes.fix_except
2017-04-11 14:53:29 +02:00
Raphael Collet d0ca2d115e [REF] ir_config_parameter: remove group_ids and simplify
Add `sudo()` to call `get_param` where necessary, and make the web client use a
controller instead of directly accessing parameters.
2017-01-03 16:52:49 +01:00
Thibault Delavallée c8a313d51e [IMP] various: use odoo for imports instead of openerp and update class names 2016-08-10 15:48:07 +02:00
Yannick Tivisse c5b1a6ba61 [FIX] base_gengo: pass a translation if '_check_value' raise a ValidationError 2016-07-14 11:01:10 +02:00
Yannick Tivisse fac108b606 [FIX] base_gengo: issue introduced during the migration 2016-07-14 11:01:09 +02:00
Yannick Tivisse 651caf0f59 [MIG] base_gengo: Migrated to new API 2016-07-13 16:46:29 +02:00
rap-odoo 0ffc61d854 [IMP] base_gengo: Add credentials demo data + UX improvements
On the wizard 'Gengo: Manual Request of Translation' display a warning
if the credentials are missing or unauthorized by gengo via the method
gengo_authentication, with a link to the company form view for the user
to be able to configure it.
2016-03-30 16:31:39 +02:00
Ronak Baxi 393f136509 [IMP] *: Uniformize all modal footers
The main button has classnames btn btn-primary.
Other buttons have classnames btn btn-default.
No more 'or' between the buttons.
2015-08-19 08:10:45 +02:00
Martin Trigaux 3f66b2b952 [FIX] English terms
Not comprehensible or wrong terms.
Courtesy of @rim-odoo
2015-07-30 14:38:02 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Goffin Simon 0fd773a486 [IMP] Cleanup and refactoring of exception handling
Unify and refactor exception handling in framework and addons.

The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
 - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
 - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
 - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
 - `MissingError`: raised when an operation is attempted on a record that does not exist.
 - `ValidationError`: raised when an operation violates a SQL or Python constraint.
 - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.

All exceptions take a single message argument.

The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.

A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.

This commit introduces a more consistent policy for logging errors and warnings:
 - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
 - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
 - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16 17:15:18 +01:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Pankaj Joshi 80fd4e4bb6 [FIX] web: radio buttons
removed js that let user to uncheck radiobutton and from addons removed radiobuttons used for not required field except sync_typ.
changed this field as required because of functional requirement
2014-11-24 16:45:20 +01:00
Mitesh Savani 6021b0fe8f [FIX] base_gengo, website_gengo: groups on the gengo key.
Basically the admin group can read the gengo key. When adding website_gengo that adds the
website groups, the groups allowed to access the key are updated.

This is done because in base_gengo the website groups are not necesssarily defined. Website
is not a dependency of base_gengo.
2014-09-19 13:28:29 +02:00
Jeremy Kersten 8f006ed94e [FIX] Website_gengo: check API key with SUPERUSER_ID since private_key is really private 2014-09-03 11:55:00 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Jeremy Kersten f337bcaa1d [IMP] ir.config.parameters: support group-based access control 2014-06-26 16:27:24 +02:00
Christophe Simonis 1eaa69d342 [MERGE] forward port of branch saas-5 up to 9e8e365 2014-06-25 12:44:13 +02:00
Jeremy Kersten 7165c0106b [IMP] Gengo - Improve call back url to have the dbname in url, else doesn't work if no dbfilter, or if more than one db (runbot) 2014-06-23 11:08:53 +02:00
Jeremy Kersten 18bb52ee88 [FIX] Gengo - Update modoel ir_translation for gengo and make it working. Works with order and not job, because when you send a batch to translate, you don't know all the job but only the order. 2014-06-20 17:33:09 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Richard Mathot b2ff7ef41d [BACKPORT][FIX] base_gengo: use supported/up-to-date library
Commit backported from master 8ad97da843
2014-05-27 15:53:25 +02:00
Richard Mathot b283f8d5b1 [FIX] base_gengo: use supported/up-to-date library 2014-05-22 12:13:34 +02:00
Fabien Pinckaers 6afe3b6447 [IMP] grouping jobs together
bzr revid: fp@tinyerp.com-20140409215927-gfu3v8dnrgeqnvvd
2014-04-09 23:59:27 +02:00
Fabien Pinckaers d5599de606 [IMP] Gengo Fixes
bzr revid: fp@tinyerp.com-20140409214509-0ww46dnt3np66ncx
2014-04-09 23:45:09 +02:00
Quentin (OpenERP) 4eec536d15 [FIX] base_gengo: don't skipp terms in gengo communication because of their state may have changed in the meanwhile (so using offset+limit in a serach at each loop is not a good idea)
bzr revid: qdp-launchpad@openerp.com-20140407174621-m9cv56gonoga4zh0
2014-04-07 19:46:21 +02:00
Quentin (OpenERP) 9c1debf7d9 [FIX] base_gengo: don't wait another cron job execution to ask translation for the next n words
bzr revid: qdp-launchpad@openerp.com-20140403151746-znoheqb8scjmudct
2014-04-03 17:17:46 +02:00
Parth Gajjar (Open ERP) b3c55f498f [IMP] added callback for gengo jobs,
- if any changes like acception of job,approval of job, comment by translator etc gengo will post that job to given callback url
- On otherside added a controller for '/website/gengo_callback' for handling callback.
so any chages on job will instantly reflected to openerp

bzr revid: pga@tinyerp.com-20140331121932-3u2usycyftdrqcrw
2014-03-31 17:49:32 +05:30
Parth Gajjar (Open ERP) 1ccbc213e7 [IMP] limit option in gengo manual request instead of20 reqests every time, post jobs on gengo at the time of website post without compromise speed
bzr revid: pga@tinyerp.com-20140328113715-5y14vtgcfnojk7bs
2014-03-28 17:07:15 +05:30
Parth Gajjar (Open ERP) 744b4bb2b6 [IMP] opened dialog if api key not set, final total in dropdown, improved requests in base_gengo
bzr revid: pga@tinyerp.com-20140325141308-5h2rtlbm2ctytbt1
2014-03-25 19:43:08 +05:30
Fabien Pinckaers 2971b56c14 [IMP] removed unused code
bzr revid: fp@tinyerp.com-20140324214917-g5lsl3rwyxplkj7v
2014-03-24 22:49:17 +01:00
Parth Gajjar (Open ERP) 69e6a7a808 [IMP] send source url in gengo comment, and save page on gengo post
bzr revid: pga@tinyerp.com-20140324111253-xts034vw3rjjl1cb
2014-03-24 16:42:53 +05:30
Parth Gajjar (Open ERP) bf0d35dbdd [IMP] merged gengo translator with main translator, removed 'Restart Job' from wizard,removed constraint from base_gengo
bzr revid: pga@tinyerp.com-20140324103631-j4cswrlk5huuibt5
2014-03-24 16:06:31 +05:30
Parth Gajjar (Open ERP) 2cf5e1a490 [IMP] removed constraints if term created by website(Speed improved)
bzr revid: pga@tinyerp.com-20140321133829-p2eon73py0ny3aja
2014-03-21 19:08:29 +05:30
Parth Gajjar (Open ERP) bc0a7cbc0c [IMP] added sync option in base_gengo wizard,do not show option in website_gengo
bzr revid: pga@tinyerp.com-20140321071438-kip2lkzlzvm0et7n
2014-03-21 12:44:38 +05:30
Parth Gajjar (Open ERP) b7a68828ed [IMP] improved statistics, added sendbox options for testing, improved UI
bzr revid: pga@tinyerp.com-20140320071028-adyh8d89o7dij81o
2014-03-20 12:40:28 +05:30
Parth Gajjar (Open ERP) c49befd59f [ADD] added website_gengo module
bzr revid: pga@tinyerp.com-20140318133036-j1hcrz7bybolw44u
2014-03-18 19:00:36 +05:30
Olivier Dony b9525453a9 [FIX] base_gengo: remove sandbox flag, improve inconsistent labels on gengo wizard, cleanup, better error reporting
bzr revid: odo@openerp.com-20121116135021-jxz6u76wqyersykl
2012-11-16 14:50:21 +01:00
Jigar Amin - OpenERP ea60ca1e27 [FIX] Usability Fix, missing import and added the resquest process call
bzr revid: jam@tinyerp.com-20120831100143-rgx1ntdkzqcngov9
2012-08-31 15:31:43 +05:30
Quentin (OpenERP) 0491bffbe3 [IMP] base_gengo: removal of restart_fetch_job field in wizard (not useful)
bzr revid: qdp-launchpad@openerp.com-20120831091851-wq4wxw3h5mbc6wjw
2012-08-31 11:18:51 +02:00
Quentin (OpenERP) 53049c846f [IMP] base_gengo: commit finishing what did the previous one: removal of unused files and fields, fixing the cron job data, ...
bzr revid: qdp-launchpad@openerp.com-20120830162316-vglsn7lfuxr04772
2012-08-30 18:23:16 +02:00
Quentin (OpenERP) 1c3f30a081 [IMP] base_gengo: lots of changes made during the code review. Among
* database scheme simplification
* merge of boolean on ir.translation and selection fields on res.company to select the tier (level service of gengo), which is now located on ir.translation
* move of all the new features in a new wizard
* removal of wizard to display the results

bzr revid: qdp-launchpad@openerp.com-20120830161429-h7rti6hbnrk8mozg
2012-08-30 18:14:29 +02:00
Quentin (OpenERP) f1febea2a3 [FIX] base_gengo: syntax error fixed
bzr revid: qdp-launchpad@openerp.com-20120829101003-3t7zpydsg6lk3ap1
2012-08-29 12:10:03 +02:00
Quentin (OpenERP) 55cc723fc1 [FIX] base_gengo: syntax error fixed
bzr revid: qdp-launchpad@openerp.com-20120829095137-hy91xbg1gicwzid2
2012-08-29 11:51:37 +02:00