summaryrefslogtreecommitdiff
path: root/addons/website_twitter/models
AgeCommit message (Collapse)Author
2020-07-02[IMP] *: do not translate logsVictor Feyens
The logs should all be in the same language, s.t. one does not need to understand multiple languages when browsing/reading the server logs. closes odoo/odoo#53984 Related: odoo/enterprise#11615 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2019-08-21[MERGE] forward port branch saas-12.4 up to f26de445e55Christophe Simonis
2019-08-13[FIX] website(_*): better ondelete management on website_idRomain Derie
Before this commit, every model having website_id would have the default `set null` as ondelete value for that field. Exception for `ir.ui.view` and `website.redirect` which are set to `cascade`. This meant that deleting a website would basically transform all its specific records into generic ones. That would lead to unwanted behavior, such as multiple `ir.attachment` with same URL, when 2 websites had been theme-customized. Deleting one of the website would result in later crashes when trying to open theme customization in the remaining website(s), since those website would find their specific scss custom attachment as well as the generic one from the deleted website. Probably more behavior might be problematic when deleting a website before this commit. To summarize the choice of this commit implementation, every model not existing outside website module are set to `cascade` (website.redirect, website.menu, product.wishlist..). The rest should be in restrict, as we don't want to delete a whole forum, blog or job, which should probably be managed case by case to decide what to do. Thus, restrict is a good choice to notify user of what should be handled. Some exception remains, ir.ui.view should be delete on cascade while sale.order should be set to null. opw-2038414 opw-2035249 closes odoo/odoo#35398 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-08-01[FIX] *: bad usage of _ methodMartin Trigaux
No need for selection fields If in global variable, the _lt should be used instead closes odoo/odoo#31211 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-07-17[REM] *: calls to @api.multiAdrian Torres
Multi is the default api for methods, it is not necessary to explicitly decorate methods with it, adds clutter and most people use it because they see that the rest of the code uses it. Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
2018-09-27[REF] *: adapt code to new related default behaviourAdrian Torres
This commit adapts the business code to changes introduced by the parent commit in order to keep the same behaviour as before. All readonly=False fields will have to be checked afterwards to confirm that the business case requires write access to the source field.
2018-09-21[IMP]website_*: Improvement in model descriptionNimesh Jethva
Purpose of this commit is to give description more "business oriented" because those descriptions appears in Odoo Studio which is supposed to be used by end users, not only by developers. Related Task ID : 37311
2018-08-06[IMP] website_twitter: Add a tutorial for the credentials configurationYannick Tivisse
2017-12-11[FIX] website_twitter: finish P3 migrationXavier Morel
I clearly missed some bits in 01e35141479b8dfc4a390518f89fc52e7cec5396 as _get_access_token was still using urllib.Request despite that import having been removed. Fix it up by properly converting it to requests. Fixes #21544
2017-09-01[IMP] res_config: Update file names, xmlids, class names according to guidelinesYannick Tivisse
Now that we only have one model (res.config.settings). Uniformize everything according to the guidelines.
2017-09-01[IMP] web,account,...: Regroup settings, add a nav and search barDeep Patel
Purpose ======= Settings are often way too long and hard to scan and sometimes you don't know where to find the settings you're looking for. By adding a left navigation, you can already have an overview of the settings, and switch easily between them. Specification ============= - Add a search bar on all the apps that have settings which can search results from all the installed apps. (If i'm on sales settings,and I search anything then it shows results from sales settings and also shows all the other matching results from all the other apps such as, Inventory...etc) with app name. - Able to activate feature from the current page results (no matter if the searched result is from another apps). - Highlight searched word in results - Delete the sheet, have a full white background - Add left navigation bar on setting - Left navigation bar fixed - List displayed based on installed apps - On right panel, by default display current app setting and change accordingly - [Mobile] Left navigation bar displayed on top - Add Breadcrumb on top of the page: have the name "Settings" + Save / discard CTA + Search - Add General Settings on the nav bar - remove "save this page..." notif in all settings - Delete all recommanded apps section + all checkbox that install app should disappear: payroll: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrSkMzWVpuZ0ZoaFE/view?usp=drivesdk Events: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrYXlHMHd2NTM2blE/view?usp=drivesdk Manufacturing: Delete Repair - Quality Control - Maintenance - Product Lifecycle Management [LAP][ok] Timesheets: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrdFg5XzNydkd2TlU/view?usp=drivesdk project: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrraWo3NE04TktwcTQ/view?usp=drivesdk inventory: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrQkRaVUR5ekFQYTQ/view?usp=drivesdk recruitment: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrbDdqLWQweF80UkE/view?usp=drivesdk purchase: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrRlAyUDBnb0trQWs/view?usp=drivesdk email marketing: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrOUZONjhvX2k3Y2s/view?usp=drivesdk expenses: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrR0JpN1ZpQmtxU3M/view?usp=drivesdk attendances: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrralpjZ1VJclNpMWs/view?usp=drivesdk - About duplicate settings: Docsaway: Delete from Sales + delete Default Print Provider Attributs & Variants: Delete from Purchases - Manufacturing Multi-currencies: delete from Sales Unit Of Measures: Delete from Purchase & Expenses - Add a scroll bar on the left bar when there's too many apps - Keep the navbar visible even when you search - Move General Settings to the bottom of the list - Update on Settings: - Accounting: - rename automatic rates - Anglo Saxon Account: Should be in technical feature - Place Accounting Reports section before Taxes section - CRM: - Phone Validation: Enforce international format becomes - Local Numbers: (2 radio buttons proposals) Add international prefix / No prefix - Fleet: typo " ... a new car if ..." + text is too long <br> - project: fix tooltip for colab pads
2017-05-15[FIX] P3: urllib, urllib2 and urlparseXavier Morel
In Python 3, all of these were "consolidated" under urllib(.request, .parse, .errors) which is inconvenient. Since we already have hard dependencies on requests and werkzeug(.urls, which is a backport of Python 3's unicode-aware urllib.parse) migrate *everything* to that. A sticking point is urllib2.URLError, those were (mostly) replaced by the slightly more general IOError which URLError extends.
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* 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-11[#8530] convert exception handlers to except..as syntaxXavier Morel
Futurize fixers: * lib2to3.fixes.fix_except
2017-01-26[FIX] website_twitter: Fix broken links to twitter app configurationYannick Tivisse
2016-12-27[IMP] website*: Improve the settings form viewkujiu (@angua.kujiu.org)
2016-04-07[MIG] website_twitter: migration to new apiRohan Patel
2016-04-07[MOV] website_twitter: split the module filesRohan Patel
2016-04-07[MOV] website_twitter: restructured module filesRohan Patel
2015-01-16[IMP] Cleanup and refactoring of exception handlingGoffin Simon
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.
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2014-12-19[IMP] website_twitter: authentication error popup with proper description ↵Jay Patel
based on twitter error codes and responses [CLEAN] website_twitter: some linting in twitter_config.py file (indentation errors, imports to remove, spacing issues).
2014-04-10[MERGE] [ADD] website_twitter: add twitter scroller snippetBarad Mahendra
bzr revid: odo@openerp.com-20140410174622-j2waid38nk3fqitt