summaryrefslogtreecommitdiff
path: root/addons/iap
AgeCommit message (Collapse)Author
2021-05-17[FIX] *: update documentation links Following the recent reorganisation of ↵Victor Feyens
the documentation in 12.0+, the majority of the documents have been moved and their old links are no longer valid. Some redirection rules will soon be deployed, but those rules might be dropped in some years and we want the links to still work, which is why we still replace the links to the new ones. FW-Port of odoo/odoo#70675 (13.0) closes odoo/odoo#70728 X-original-commit: 85c24961ab9ff5c1c79eb7415c97c46d9a77cca3 Related: odoo/enterprise#18283 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-05-16[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-27[IMP] iap: mock IAP jsonrpc to avoid errors/spam of the real serversLouis Baudoux
Before this commit, some requests could be sent to the actual IAP servers during testing. These calls weren't always mocked as many of these requests are sent in background while performing usual tasks such as creating a bill. Now, any call to the function iap_jsonrpc during testing will result in an AccessError. closes odoo/odoo#63096 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2021-05-09[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-28[FIX] *: removal of any possibility of purchasing IAP credit in iOSAdrien Dieudonne
According to the app-store guidelines we are not allowed to sell from the iOS app. Our updates are currently blocked because of this. In the rush, we have no choice but to hide certain elements related to IAP services. Source: https://developer.apple.com/app-store/review/guidelines/#business Related PR: https://github.com/odoo/mobile-ios/pull/102 https://github.com/odoo/mobile-ios/pull/103 Task-ID: 2483253
2021-04-25[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-04[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-14[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-31[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-17[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-10[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-03[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-12-20[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-12-06[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-29[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-15[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-08[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-27[I18N] *: Update translation terms from TransifexMartin Trigaux
Except Spanish, waiting for cleanup closes odoo/odoo#60848 Related: odoo/enterprise#14421 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-21[REV] *: revert fb7407c for spanish translationsOlivier Dony
There was a problem in the Transifex translations for Spanish and all translations were overwritten by mistake with english defaults. This commit reverts all modified es.po files to their previous version while we work to restore the translations on Transifex.
2020-10-19[FIX] *: update document linksSwapnesh Shah
Before this commit, links to the documentation were referenced the previous version, 13.0, instead of the current one, 14.0. Eventhough there is a redirection done by NGINX of a "versionless" URL to the latest one (e.g. /documentation/user/general/auth/google.html -> /documentation/user/14.0/general/auth/google.html as of today), the goal is to keep links owrking for users that will still be using the 14.0 in three years (and should not endup on the 17.0 doc). closes odoo/odoo#59554 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-05[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-09-27[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-08-21[FIX] iap: take into account the new path of InsufficientCreditErrorFlorimond Husquinet (fhu)
in the `crash_manager.js` of the iap module. closes odoo/odoo#56262 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-18[REF] iap, various: reorganize IAP module organizationThibault Delavallée
PURPOSE Clean and improve IAP tools integration in Odoo. Introduce bridge modules to extract common features, notably for CRM and Partner. SPECIFICATIONS In this commit we reorganize IAP module to better understand its content and ease future cleaning * have models separated from tools; * rename some tools to find their grep. An iap_ prefix is added to ensure we don't clash with other global functions or methods; * perform some linting; To provide backward compatibility support we keep some import in init file of IAP addon. Standard code is about to be updated but we want to avoid too much issues when migrating code to 13.5 . Compatibility layer will be removed after v14 final freeze. LINKS Task ID-2248367 Community PR odoo/odoo#53214 Enterprise PR odoo/enterprise#11258 Upgrade PR odoo/upgrade#1363 IAP PR odoo/iap-apps#191
2020-08-13[IMP] web, *: improve mock server and replace most mail mockRPCSébastien Theys
Improve mock server: - add support for mocked `fetch` - add support for `active_test` - add support for x2m `in` in domains - add support for default values computed from a function - implement a more natural "next id" compute - allow initial data without ids - ensure write and x2m commands integrity - improve bad data/bad commands error messages - always warn for failing RPC, not only in debug mode - fix all existing tests that had inconsistency data Other changes done in mail (or dependents) that are not just related to tests: - remove `direct_partner` from formatter result ->`correspondent` can be computed from other keys, especially `members` - fix `livechat_visitor` convertData -> only process if there is value - add `current_partner` and `current_user_id` as `init_messaging` result -> easier to mock than session - remove usage of `need_moderation` -> that was just a search indirection to `moderation_status` - adapt `partner_id` -> `res_partner_id` key in `_notification_format` -> to be consistent with field name - add name in result of `mail_partner_format` -> sometimes display_name is not the same - remove usage of `is_moderator` -> that was just an indirection to `moderation_channel_ids` Enterprise counterpart: https://github.com/odoo/enterprise/pull/11523 task-2287171 closes odoo/odoo#55854 X-original-commit: 7ba3fecb3377a720d1eb70e7515a0c45da73836d Related: odoo/enterprise#12391 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-07-28[IMP] iap, mail_bot, snailmail: introduce tests_assetsSébastien Theys
Necessary to merge in saas-13.4: https://github.com/odoo/odoo/pull/53826 closes odoo/odoo#55056 Related: odoo/enterprise#12074 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-19[FIX] iap: fix IAP account creationstd-odoo
Bug === Install CRM, then go to the lead kanban view and try to generate leads. An error will be raised. Technical ========= In the "iap.account" model, in the `get` method, we can create the IAP account if it doesn't exist yet. Since 5307f47d975c3b3ebd87c7f7e2248802a1aa5be7 the operation is done in a different SQL cursor than the current one. The reason is that we need to commit the change, and committing the current SQL cursor can cause issue and break some flows (mainly if it's not done at the very beginning/end of the flow). In the current code, we cache the `account_token` to be able to read it with the current SQL cursor (otherwise, the current cursor has no access to the field because change has not yet being committing for it). But, the cache is invalidated when the "IAP account SQL cursor" is closed. ```python with self.pool.cursor() as cr: ... IapAccount = self.with_env(self.env(cr=cr)) account = IapAccount.search(domain, order='id desc', limit=1) if not account: if not force_create: return account account = IapAccount.create({'service_name': service_name}) # fetch 'account_token' into cache with this cursor, # as self's cursor cannot see this account account.account_token # <---- Cache is invalidated here ... ``` So we can not access the the field value after the invalidation. Solution ======== The solution is the store the `account_token` value before closing the "IAP account SQL cursor" and then, after closing it, we add it in the cache. Task-2277733 closes odoo/odoo#53323 X-original-commit: 32caf74ff10052d2a303fa24d5cc7b37538dd406 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-06-18[IMP] *: replace to new _() syntaxMartin Trigaux
Using a few regex like \((_\(.*%s.*)(\) % )([\w\[\]][\w .\[\]\(\)'"]*)\) ($1, $3)) Old syntax is still compatible but starts the migration to the new syntax that catches error.
2020-05-14[IMP] *: convert to private methodsMartin Trigaux
render, render_template, load, activity_schedule_with_view, get_website_pages should all be private: It should not be possible to render an aribtrary template only with its name or id Still need to render some qweb views from js so the method render_template is kept public. This explains why the website editor still need read access on ir.ui.view as we want to allow any snippet to be rendered.
2020-04-23[I18N] *: export saas-13.3 translationsMartin Trigaux
closes odoo/odoo#50031 X-original-commit: 15a7a9f9d71a0b9c46d7caf2f4fbf09a5a4c63fe Related: odoo/enterprise#10140 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-23[FIX] iap: limit force_create at last stepRémi Rahir
The modification introduced in 5307f47d975c3b3ebd87c7f7e2248802a1aa5be7 was not properly managing the 'force_create' argument. When it is set to false, we only look for existing accounts with the current cursor and end up returning an empty recordset when the account was created during the same transaction. Ex: // Do stuff IapAcc = self.env['iap.account'] IapAcc.get('my_service') IapAcc.get_credit('my_service') // Other stuff closes odoo/odoo#48201 X-original-commit: c78070dc22f99867b4b1f3a52cd11543da571fe4 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-03-20[IMP] *: declare ir.rule in noupdateVictor Feyens
ir.rule are default values but can be customized based on the company's policy and needs. This is typically a record that is in noupdate as should be customization-friendly.
2020-03-18[IMP] various: update of documentation links in res.configRémy Baranx (bar)
Purpose ======= - Change the font-awesome icon from fa-book to fa-question. - Change the icon color to text-secondary (the same than the multi-company icon). - Adjust the icon size to the uppercase text size. closes odoo/odoo#47210 Taskid: 2209062 Related: odoo/enterprise#9116 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-05[FIX] iap: Commit creation on dedicated cursorRémi Rahir
The generic IAP flows forces us to commit the creation of a new record to prevent the loss of his token once the system contacts iap.odoo.com. Unfortunately, this operation can drastically alter any business flow if it's not executed at the very begining or end of the flow. Furthermore, it can be difficult to exactly pinpoint if this will affect a flow (for instance, the point of sale is affected by iap because of the module 'stock_sms' while the former doesn't depend on the later). To avoid those issues, we isolate the account creation on a dedicated cursor and load the values of the created record on the current cache. closes odoo/odoo#47026 X-original-commit: 5307f47d975c3b3ebd87c7f7e2248802a1aa5be7 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-03-05[IMP] base: Display searchpanel on ir.module.module viewsYannick Tivisse
Purpose ======= The current kanban view is messy. It is difficult to identify which apps are installed or not. The user can completely miss a module that might have interested him. A search panel would make things way more readable. closes odoo/odoo#44401 Taskid: 2181557 Related: odoo/enterprise#8144 Related: odoo/upgrade#879 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-02-28[IMP] various: add documentation links in res.configRémy Baranx (bar)
Purpose ======= A 'book icon' link to the documentation of a feature has been added in its settings panel, when it is useful (complex feature). Add a nightly test that parses all the res_config_settings views from the base one and checks that all documentation links are still valid. Add the o_doc_link class to all documentation links to be able to easily catch them if needed. closes odoo/odoo#45813 Taskid: 2180574 Related: odoo/enterprise#8601 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-12-16[I18N] *: export saas-13.1 source termsMartin Trigaux
Without demo data, for the odoo-master transifex project closes odoo/odoo#41935 X-original-commit: dab7670b73506fb3a835695ee3bd735e0c5e5c2b Related: odoo/enterprise#7287 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-12-10[I18N] *: remove es_AR translationsMartin Trigaux
Followup of a425695e The terms were back in 12.0 Courtesy of Juan José Scarafía closes odoo/odoo#41624 X-original-commit: 85d0c7001a997748d7691205bbb8d066597591a5 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-12-09[IMP] *: set name element on main containers in configuration viewsYenthe666
This will improve the extendibility of view inheritance closes odoo/odoo#41398 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-11-07[IMP] mail: add a new entry in technical menu for discussThibault Delavallée
Purpose is to lessen size of technical "Email" menu and move some discuss menu entries in their own menu. It will be the new first menu entry in technical, before Emails that is more technical. Some menu items are moved in this new menu, notably followers, messages or mail blacklist. Emails menu is also reordered, to have notably all channels related entries together, ... Task 2118599 PR #39460
2019-10-21[FIX] iap, partner_autocomplete: Autocomplete without IAP account tokenGoffin Simon
Steps to reproduce the bug: - Go to Settings > Technical > IAP account > - Remove the access token - Go to Contact - Try to create a company called 'Proximus' and click on the autocomplete Bug: A traceback was raised because the IAP account token was not set. opw:2087607 closes odoo/odoo#39099 X-original-commit: bc6357f0b95d354afa602eecce24a3c265819101 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>