summaryrefslogtreecommitdiff
path: root/addons/share
AgeCommit message (Collapse)Author
2015-07-09[REM] shareAntony Lesuisse
share is now deprecated by the website /my portal.
2015-07-09[FIX] share,base: avoid loading order issuesMartin Trigaux
Move share column to base instead of module share. The column is used to filter some groups and make them hidden from the res.users form. However, if a module was loaded before the module share (e.g. depends only from base), when upgraded, the eventual update of a res.group regenerated the res.user view (to compute in_group_XX fields). This recomputation was done before the module share was loaded in the registry (due to the dependency graph) and the override of get_application_groups was not done, including shared groups in the user form. As we can not guarantee that a module is loaded, better to move to base module. As share depends only of mail and is autoinstall, it was installed on most instances anyway. Fixes #6324 Fixes #5820
2015-06-02[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate textOlivier Dony
- 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-05-28[MERGE] forward port of branch saas-6 up to bf1e999Christophe Simonis
2015-05-21[MERGE] forward port of branch 8.0 up to 26e7742Christophe Simonis
2015-05-21[FIX] account, mail, etc.: uniformize evaluated expressionsOlivier Dony
opw-626694
2015-05-21[I18N] Sync latest translations from Launchpad (not the final one)Olivier Dony
2015-05-21[IMP][ADD] mail, various: timeline view.Valerie Pirenne
This commit introduces a new view type, the timeline view. This view is intended to display messages like the previous chatter. This is now a view like the form or list view. Like other views it will be possible to have custom templates for some specific needs, allowing customization. [IMP] mail: the value tracking is modified. Previously messages were created containing the modified values. Those values are now stored, using a new model mail.tracking.value. The message body is dynamically build based on the values. Tests have been updated. This version is temporary. Indeed two main modifications will come in a short future : - the new design will improve the display - the slack mode will change the way the Inbox and notifications are managed All glory to the Hypnotoad. Special thanks to Valerie Pirenne (vpi), Jerome Maes (jem) and Richat Mathot (rim) that did not code but said a lot of things. Martin Trigaux (mat) did nothing, a bit like for the slides modules, but he is busy sending emails.
2015-05-18[MERGE] forward port of branch 8.0 up to f722254Christophe Simonis
2015-05-12[FIX] share: do not add new rules for `res.company`Denis Ledoux
When trying to share a partner through the share feature, a new record rule was added on `res.company`, allowing the access to this model only if the `partner_id` of the `res.company` was equal to the user `partner_id`. Except that the share users must have access to the company he is currently in. opw-634402
2015-04-28[I18N] Sync 8.0 translations from LaunchpadOlivier Dony
2015-03-21[MERGE] forward port of branch saas-6 up to 42db2dbChristophe Simonis
2015-03-20[IMP] Web and all views: ControlPanel atomic updateAaron Bohy
Change the logic of rendering and displaying/hidding the control elements (buttons, sidebar and pager) of all views. The views do no more render automatically their elements as this is rather done through the render_[element] function called by the ViewManager. This function only appends the element to the $node given as argument. If no argument is given, then it may appends it to the DOM directly, within the adequate div of its template. This allows the ViewManager to attach/detach all elements of the ControlPanel in an atomic may, to prevent the ControlPanel from flickering. Also detach the contents of the ControlPanel in headless mode. Headless means that the ControlPanel exists, but is hidden. Detaching its contents permits to have a cleaner DOM. Also remove the oe_form_dirty class on the buttons in the FormView, as this class is only used on the view itself. Side changes: * base_import: import.js: Extend render_buttons function to be compliant with the new buttons rendering logic * board: dashboard.js: Set flag search_view to True as the searchview is needed for the Views displayed in the Dashboard to retrieve the records to display. Necessary since we do no more construct the searchview when this is set to false * google_drive: drive.js, share: share.js: Module extending the Sidebar widget often add their own buttons by extending the start(), which is called each time the Widget is appended to the DOM. With our new design, this could be done in start() anymore as it should be done only one. It is now done in init() instead.
2015-03-18[MERGE] forward port of branch 8.0 up to e27744dChristophe Simonis
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] various addons: update to the new module systemGéry Debongnie
2015-03-17[FIX] mail, share: correct module update.Christophe Simonis
a6eac0f08ee9100d1a44a4068d4f580b1c7c4b2c introduced a new `res.groups` belonging to the "Sharing" category. As this group has the flag `shared`, it is ignore when generating the group's user view (and its virtual fields). When updating `mail` module, the `share` module (which depend on mail) is not loaded yet. This mean this new group is taken into account when getting the `res.users` virtual fields. As this group belong to the same category as the `share.group_share_user` group but dont have an inheritance link between them (`implied_ids`), they are generated as `boolean` instead of a single entry `selection` field. This create a missmatch between the fields and the previously generated view, which forbid inheritance application. Force view regeneration, to avoid it. Also change the group's category as this group is purely technical and must be hidden anyway.
2015-02-18[I18N] Update translations from Launchpad 8.0 branchesOlivier Dony
2015-02-11[FIX] share: adapt xpath expression to new layout.Christophe Simonis
2015-02-11[MERGE] forward port of branch 8.0 up to 33a8989Christophe Simonis
2015-02-06[MERGE] forward port of branch saas-3 up to f92b2f8Denis Ledoux
2015-02-06[FIX] share: create group before creating a model access with this groupDenis Ledoux
2015-02-06[MERGE] forward port of branch 7.0 up to 0b7db55Denis Ledoux
2015-02-06[FIX] share: share feature compatibility with Odoo 8.0Denis Ledoux
Since rev. 1ce0b70a02294eb58dbe7c0ff1d7048489585e7a, ir.ui.menu was readable for employees and portal users only Since rev. 74aa7406bf1cd1794f9832ed36141482f7ff9353, the navigation menus were displayed for employees and portal users only. Therefore, when sharing a record with the share feature, nothing was displayed when following the link. This rev. introduces a new group "Shared group", implied for all shared groups created through the share feature. Read access to menus is given to this group The possibility to display the webclient navigation menus as well.
2015-02-06[FIX] share: action params in url is action, not action_idDenis Ledoux
When sharing a record to a share user (for instance, the quotation), the action in the url was set to "action_id=" instead of "action=", therefore, the link sent just leaded to nowhere.
2015-02-06[FIX] share: mail.notification is also transversalDenis Ledoux
mail.message and mail.notification are transversal: they should not received directly the access rights
2015-01-26[I18N] Update translations from Launchpad 8.0 branchesOlivier Dony
2015-01-22[MERGE] forward port of branch 8.0 up to 3735394Christophe Simonis
2015-01-21[I18N] Update translations from Launchpad 8.0 branchesOlivier Dony
2015-01-21[I18N] Update translation templates with latest termsOlivier Dony
Total new terms: 270 Total deleted terms: 82 Total identical terms: 19653 Old total number of terms: 19735 New total number of terms: 19923
2015-01-19[MERGE] forward port of branch 8.0 up to 0aab81cChristophe Simonis
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.
2015-01-12[Fix] Some missed frontend openerp to odoo changesErwin van der Ploeg
2015-01-08[REM] modelines: Gotta catch 'em allRichard Mathot
2015-01-07[I18N] Sync updated 7.0 translations from LaunchpadOlivier Dony
2015-01-06[DEL] Cleaning: key 'images' removed from all __openerp__.pyAaron Bohy
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2014-12-02[MERGE] forward port of branch 8.0 up to 591e329Christophe Simonis
2014-11-19[I18N] Update translations from Launchpad 8.0 branchesOlivier Dony
2014-11-05[MERGE] forward port of branch 8.0 up to 491372eChristophe Simonis
2014-11-04[IMP] use model._fields instead of model._all_columns to cover all fieldsRaphael Collet
The old-api model._all_columns contains information about model._columns and inherited columns. This dictionary is missing new-api computed non-stored fields, and the new field objects provide a more readable api... This commit contains the following changes: - adapt several methods of BaseModel to use fields instead of columns and _all_columns - copy all semantic-free attributes of related fields from their source - add attribute 'group_operator' on integer and float fields - base, base_action_rule, crm, edi, hr, mail, mass_mailing, pad, payment_acquirer, share, website, website_crm, website_mail: simply use _fields instead of _all_columns - base, decimal_precision, website: adapt qweb rendering methods to use fields instead of columns
2014-10-21[REM] remove instance.web.ViewManagerActionGéry Debongnie
ViewManager takes over all duties of ViewManagerAction, it can now be safely removed.
2014-10-16[MERGE] forward port of branch 8.0 up to 2b192beChristophe Simonis
2014-10-08[I18N] Update translations from Launchpad 8.0 branchesOlivier Dony
2014-10-01[MERGE] forward port of branch 8.0 up to e883193Christophe Simonis
2014-09-23[I18N] Update translation templates with latest term changesOlivier Dony
2014-09-16[FIX] share/wizard: fix new-api method call incorrectly passing contextRaphael Collet
2014-09-15[MERGE] forward port of branch 8.0 up to 780dd98Christophe Simonis
2014-09-12[IMP] share: better way to restrict the feature to the technical group.Bhavik Bagdiya
Reverted commit 57a12121057df9fee039a54f5b947c0e8a917fe9 that introduced an unnecessary call to has_group, as it could be done un share_wizard.py once for the session. Removed the group_share_user, not necessary anymore.
2014-09-08[I18N] Update 8.0 translations with latest changes from LaunchpadOlivier Dony