summaryrefslogtreecommitdiff
path: root/addons/note/views
AgeCommit message (Collapse)Author
2019-02-19[IMP] *: Add progress bar on kanban views based on activitiesVandan Shah
Purpose ======= If the activities are available on a model (i.e. inherits mail.activity.mixin), add a progress bar based on the activities if nothing is defined yet. closes odoo/odoo#24777
2019-01-17[IMP] mail: upload a file to mark activity as donejem-odoo
This commit introduces the "upload file" activity type category. For an activity of that time, uploading a file will mark the activity as done (and maybe create the forced next activities). This activity type is seen as a shortcut to upload a file with a reminder. Task-1915004 closes odoo/odoo#29861
2018-10-02[IMP] note: add activity view on main actionsThibault Delavallée
Purpose is to extend the use of the newly-introduced activity view allowing to see at a glance activities to perform on a given model. It eases daily job of people working with activities. Updated : * note main menu action This commit is linked to task ID 1889413.
2018-09-04[IMP] note: improved `no_content` help in noteAlexandre Kühn
The `no_content` help was too long. Task-ID 1877502
2018-08-31[REF] note: rename app 'Productivity' to 'Notes'Alexandre Kühn
To stay consistent with the systray activity menu, which adds "Notes". Task-ID 1877502
2018-08-03[IMP] note, purchase: rename main menu namePriyanka Kakadiya
This commit renames main menu name same as module name in order to be less confusing to users. This implies a small fix in test main flow because it is based on the menu name. This commit is related to task ID 47179 and PR #22689.
2018-07-27[REF] *: BS4, 'pull-left/right' -> 'float-left/right'qsm-odoo
2018-07-27[REF] *: BS4, adapt dropdowns and caretsqsm-odoo
- The dropdown structure was simplified, allowing to get rid of the 3-levels structure induced by <ul/> elements and dropdowns can now contain anything. The class 'dropdown-item' is now mandatory for each dropdown clickable element. The class 'dropdown-item-text' can be used to add same padding and style but without making the element have a clickable look. - Dividers now use the class 'dropdown-divider' - The way dropdowns are opened and hidden also changed (before the 'open' class was added on the `.dropdown-menu` parent, now the 'show' class is added on both the `.dropdown-menu` parent and the `.dropdown-menu` itself). - JS-wise, no click event handlers can be put on `.dropdown-toggle` elements anymore (instead, use handlers for dropdown events). - Carets are automatically put on `.dropdown-toggle` elements, so this commit replaces the `.caret` elements with this. This feature was possible to disable but would prevent us from adding a caret with scss. Also, this simplifies the DOM. The 'o-no-caret' class was also introduced to allow using the 'dropdown-toggle' class on non-caret elements. - Also adapt the scss to use $caret-width instead of $caret-width-base
2018-07-02[REF] mail: JS mail refactoringAlexandre Kühn
---------------------- Summary ---------------------- The purpose of this commit is to improve the JS code of the `mail` module. It applies the new coding guidelines and makes some changes on the design of some modules, such as the old ChatManager module. Here is a short summary of the changes that have been made: 1. New coding guidelines - snake_case to camelCase - prefix private attributes and methods with '_' - jsdoc on most methods - one class per module 2. Rename/Merge some classes - 'chat manager' becomes 'mail manager' (internal) and 'mail service' (external) - 'chat window manager' is now included in mail manager - 'thread' widget now named 'thread widget' 3. New model abstraction for mail objects: - modules 'mail.model.*' - modeling: 0..1 0..1 * * ThreadWindow <------> Thread <-------> Message / \ / \ Thread With Cache Document Thread / | \ / | \ Mailbox Channel Support Channel | | DM - Thread: the superclass of threads. - ThreadWindow: the window component of a thread. - Message: mail objects representing messages. - Thread With Cache: threads that can be used with search view (Discuss app compatible). - Document Thread: represents the thread part of a chatter. - Mailbox: represents what was previously called 'static' channel, e.g. 'Inbox'. - Channel: mail objects representing channels, including livechat. - DM: special kind of Channel for 1:1 communication in the backend. - Support Channel: special channel for im_support module. This new modeling approach let us easily add features on all threads, such as the possibility to put any thread in a small window. ---------------------- Known issues ---------------------- [Already Present in Master] 1. When the Discuss app is in the background with 'Inbox' as the selected Thread, when clicking on a document thread preview in the messaging menu of the systray, the rainbow man appears. 2. When a document with the chatter is in the background, when receiving an inbox notification from this document thread, the document thread is automatically marked as read, which removes the notification right away. 3. Sometimes, opening a DM window from the "blank" thread window does not work. 4. Reply-to feature on Inbox is not working: no message is sent in the document thread. 5. On the first login of admin user with demo data, the inbox counter is wrong (it displays 6, instead of 3). Explanation after investigation: > On page load, it fetches the correct number of Inbox messages (3), but the server notifies of 3 needaction messages right away, so it wrongly assumes these are new needaction messages. > Not possible for web client to detect that these messages should not increment the Inbox counter while keeping same API. 6. Notifications for new document thread messages only work when the user sets 'handle with Odoo' for the Notification Management in the preferences. > due to notifications on the longpoll bus for document thread messages that come from needaction notifications. > requires server-side changes to send notification on the longpoll bus to mentionned user. [New] 7. When receiving a message on a unjoined channel, thread window flickers ('open' > 'close' > 'open') Explanation after investigation: > JS logic: a) On auto-join, ask server to join the channel and get channel infos. b) The info tells the channel is not detached, but JS code makes decision to detach it, and tells server the channel is now detached. c) From (a), server notifies on longpoll bus the state of channel, which is not detached. The web client thinks that the window state of the channel has been changed somewhere else, and the channel is now closed. d) From (b), server notifies on longpoll bus the state of channel, which is detached. The web client opens the thread window of this channel. > The flicker didn't occur before refactoring because the web client was only updating the model of channel when it receives the longpoll notification. > Server behaviour on 1st longpoll notification is necessary for cross-tab synchronization for channel window state. > New design implies that model and view should be synchronized, hence the issue now. > Solution: remove server-side thread window synchronization and replace with client-side synchronization. ---------------------- Hacks ---------------------- The module `im_livechat` now uses mail objects that are compatible with Message and Window objects: Modeling for messages: AbstractMessage / \ / \ LivechatMessage Message - AbstractMessage: message compatible with the thread widget. - LivechatMessage: message used by im_livechat. - Message: message used with the mail manager. Modeling for thread windows: AbstractThreadWindow / \ / \ LivechatWindow ThreadWindow - AbstractThreadWindow: behaviour share between all types of thread windows. - LivechatWindow: window used by im_livechat. - ThreadWindow: window used with mail_manager. The reason for these hacks are twofold: 1. Use the thread widget in the frontend and livechat external lib bundles. 2. Do not have a dependency with the mail manager in the frontend and external lib bundles.
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-05-29[MERGE] forward port branch saas-11.3 up to 37eed7c509fChristophe Simonis
2018-05-15[FIX] note: correctly display chatter in note form viewTejas Shahu
Before this commit there was an unexpected behavior of chatter in Note module on Zoomin/Zoomout. Putting the html field memo in the sheet solves it and chatter now properly behaves. Related to task ID 1837177. Closes #24295.
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
2018-04-16[MERGE] forward port branch saas-11.2 up to 90f8f17fb4fChristophe Simonis
2018-04-16[MERGE] forward port branch 11.0 up to ad825b673b5Christophe Simonis
2018-04-09[REF] mail, note: move reminder feature from mail to noteDharmang Soni
This commit refactors f488dc58c37fdc7fd49df759165de641e213444b that added reminder feature in activities. After merging it was suggested specifications were not correct and it has been decided to move the whole reminder feature in note. Reminders are now notes instead of activities. Now when having note appµ systray proposes to create a note / reminder. A note.note record is created with info given by the user. If a date is given in the systray quick create then an activity is scheduled on this note. This means user can create records in activity systray that are not activities but notes used as reminders. Those will use the first availableµ note column for the user. As reminders are now notes the support of activities not linked to any document is removed, as well as archiving activities and tests linked to that behavior. This commit has been not carefully tested nor in-depth reviewied. It is considered as too important for the upcoming freeze. This closes task ID 1833628. Closes #24129 . Many thanks to @dpr-odoo for its quick development and good work on this task.
2018-04-09[IMP] note: pimp note form viewDharmang Soni
Purpose is to maximize size of editor to focus more on the note content edition.
2018-04-09[FIX] note: css margins of next activityNicolas Lempereur
Fix CSS so it is more in line with other kanban tiles and avoid unecessary margins. opw-1817718 closes #24128
2018-03-14[REF] *: put `clickable` in widget options for statusbarMartin Geubelle
The widget statusbar was using an attribute `clickable` on the field widget to define if the statusbar was clickable. This attribute is in fact not a field attribute but a widget option so it has been moved accordingly. Note that a retro-compatibility adapation is done in the field widget.
2018-01-29[REF] *: convert sass content to less contentqsm-odoo
* note, payment, sales_team, website_forum, website_sale(_options) (prepare for all less -> scss conversion)
2018-01-18[IMP] core: menu tip ux/ui improvementAlexandre Kühn
We would like to make the "no item found" screens more appealing. Before this commit, it shows a small help tip in the top-left corner of the screen, just below the "Create" button. With this commit, these help tips have been replaced by onboarding screens, which consist of a picture and some text below, both of which are horizontally centered. The texts have been slightly changed, so that they are shorter and clearer. Considered modules: (A) account, account_asset, account_budget, account_test, account_voucher, analytic (B) barcodes, base, base_automation, board (C) calendar, contacts, crm (D) delivery (E) event (F) fleet (G) gamification, google_drive (H) hr, hr_attendance, hr_contract, hr_expense, hr_gamification, hr_holidays, hr_payroll, hr_recruitment, hr_timesheet (I) im_livechat (L) l10n_fr_sale_closing, link_tracker, lunch (M) mail, maintenance, mass_mailing, membership, mrp (N) note (P) payment, point_of_sale, post_mercury, pos_restaurant, product, project, purchase, purchase_requisition (R) rating, repair, resource (S) sale, sale_timesheet, sales_team, stock, stock_account, stock_landed_costs, stock_picking_batch, survey (U) utm (W) web, website, website_blog, website_customer, website_event_track, website_forum, website_quote, website_sale, website_sale_digital, website_slides
2017-10-19[IMP] base: Make 'name' attribute required for 'filter' tagMitali Patel
Purpose ======= The attribute name isn't required on the <filter> tag. If not set, it can't be selected with a xpath and it can't be overwritten. A lot of PR are coming from the community just to add a name on a filter because: - It can't be selected with a xpath. - It can't be used with `default_search_foo` on an action context. Specification ============= Make the atttribute name required
2017-08-28[REF] *: replace dropdown icons in kanban layoutsstefanorigano
* crm, event, hr_contract, hr_recruitment, maintenance, mass_mailing, note, survey, web, website_event_track, website_forum_doc Adapt kanban layouts so that the dropdown icon is now a vertical ellipsis instead of a hamburger.
2017-07-07[MERGE] forward port branch saas-16 up to 0f2b2c4e2b9Christophe Simonis
2017-07-07[FIX] *: add color option on m2m_tags widgets in kanbanMartin Geubelle
There is a bit of magic in the kanban with many2many: the widget many2many_tags is automatically set on many2many fields. Since the previous commit, the `color_field` needs to be explicitly stated in the options for the tags to be colored. In kanban views where tags were previously colored, we thus have specified the widget and the color option.
2017-07-07[FIX] *: explicit `color_field` attribute for m2m_tagsMartin Geubelle
Since the previous commit, the `color_field` needs to be explicitly stated in the options for the tags to be colored. The previous behaviour (always read the field `color`) was leading to server warnings if the field was not present on the comodel. Thìs commit set the `color_field´ for every many2many_tags on fields that have a `color` field on the comodel.
2017-07-05[IMP] acitvity filters cleaningFabien Pinckaers
2017-07-05[IMP] various: add 'Upcoming Activities' filter on various models using ↵pgu-odoo
activities
2017-03-07[IMP] note: Add activity widget on kanban viewJigar Patel
2017-01-09[IMP] note: add an editable tree view for tagsHiral Bhavsar
Also: - Don't display "Active -> True" when we create a note - Allow to create tags on the fly on a note form view When user create a new Note or click on 'Tick' option in kanban view, remove the message 'Active->True' & 'True->False' and Make the creation of 'Tags' inline mode. [IMP] note: 'Tags' should be created from note's form view.
2016-12-21[IMP] note: add support of activitiesRavi Gadhia
note.note model now supports activities. Filters have been added to ease their management.
2016-09-09[MERGE] forward port branch saas-11 up to dc4d6b6Christophe Simonis
2016-09-09[MERGE] forward port branch saas-10 up to e1bd405Christophe Simonis
2016-05-13[IMP] notes: 'Folded By Default' checkbox in note stage form viewdut-odoo
Purpose: There should be a way to set the option for folded/unfolded stages (as the configuration menu of notes app is only visible in debug mode)
2016-05-03[MIG] note : migration to new apiAnand Kansagra
2016-05-03[MOV] note: Re-organised file structure.Anand Kansagra
2015-01-08[REM] modelines: Gotta catch 'em allRichard Mathot
2014-04-24[IMP] bundlify addons (except website)Fabien Meghazi
bzr revid: fme@openerp.com-20140424172129-ze74eaz2eaidmxhm