summaryrefslogtreecommitdiff
path: root/addons/note/views/note_views.xml
AgeCommit message (Collapse)Author
2020-07-30[IMP] core: allow both action & children on root nodeXavier Morel
Reported by VFE, odoo/odoo#54564 missed one of the use cases in menus: normally a menu can have *either* sub-menus or an action (aka only "leaf" menu items can have actions), however there's an exception for root (application) menus: those can have an action, which is used as the application's action, that is, what gets executed when opening the application itself. * root menus were already special cased (to allow a ``web_icon``), expand this to allow both action and submenus * modify the alternatives -- submenu-items and menuitems with a parent -- so they keep the behavior of allowing *either* an action or children closes odoo/odoo#55144 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-06-15[REF] mail, *: refactor messaging with OWLSébastien Theys
This commit is a significant rewriting of client-side discuss, chatter, chat window, and messaging menu using OWL. The behavior should be broadly the same, with some slight functional changes here and there. From a technical standpoint, the code of messaging is mainly organized in 2 main groups of modules: - models, which are logical entities that depict the client-side state of messaging as a whole. - components, which are in charge of displaying information from models. This refactoring also introduces new JS guidelines regarding folder structure (/static) and naming rules for JS modules. Community PR: https://github.com/odoo/odoo/pull/39023 Enterprise PR: https://github.com/odoo/enterprise/pull/6249 Task-1914207 This PR is a collaborative work by Alexandre, Julien, Sébastien and Xavier, with the precious help of Lucas to speed it up towards the end. closes odoo/odoo#39023 Related: odoo/enterprise#6249 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com> Co-authored-by: Alexandre Kühn <aku@odoo.com> Co-authored-by: Julien Giannone <jgi@odoo.com> Co-authored-by: Lucas Perais <lpe@odoo.com> Co-authored-by: Sébastien Theys <seb@odoo.com> Co-authored-by: Xavier Dubuc <xdu@odoo.com>
2020-05-29[IMP] various: Remove depricated activity_exception widget from tree viewshs-odoo
Purpose of the task is to remove the activity_exception widgets to avoid redundancy. We have already added the activity on some list view so activity expection widget on those list view is useless. So in this commit, remove the activity_exception widget from following tree view - hr.expense.tree - hr.expense.sheet.tree - note.note.tree - project.task.tree - purchase.order.inherit.purchase.order.tree - sale.order.tree closes odoo/odoo#52109 Taskid: 2266720 Closes: #52109 Related: odoo/enterprise#10846 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-25[IMP] project,...: Improve list views with new widgetsYannick Tivisse
Purpose ======= Task 2195254 introduced many wonderful widgets to pimp the list view. This task aims at implemeting them into the Services apps: project, timesheets, helpdesk, expense, planning and field service. Remaining days: https://drive.google.com/file/d/1o4Wn47445GxLqBkw-ifH9MgtFU_437xz/view Avatar: https://drive.google.com/file/d/1yDwJWP0MZCUKZbqCa8hte1ziVTYRMMtb/view Activities: https://drive.google.com/file/d/1e_rXH50eZq4zY2HOzw7_pfgiD39SoRIl/view Field-specific decorations: https://drive.google.com/file/d/1WFnqJ-jkyDFftRHxWW4bgomoWrOpOuaY/view More control on buttons Specifications ============== You will find below a list of which widgets to apply to which fields by model. Some changes have to be done in the form/kanban views as well. 1) project.task remaining days -> date_deadline -> list + kanban + form views hide this field if is_closed is true avatar -> user_id -> list view activities -> 'next activity' field to be added -> list view field-specific decorations https://nimb.ws/ACewrY remove the current orange/red decorations we have if planned_hours > 0, display the remaining_hours field in (list view): red if progress is > 100% orange if progress is between 80% and 100% green if progress is <80% display unit_amount in red if > 24:00 -> form view 2) rating.rating display the rating in: green = satisfied orange = not_satisfied red = highly_dissatisfied list + form views 3) project.project avatar -> user_id -> list + form views 4) account.analytic.line avatar -> employee_id -> list view display unit_amount in red if > 24:00 -> list + kanban + form view https://nimb.ws/eIWa7E merge the timer and duration fields together 5) helpdesk.ticket avatar user_id -> list view employee_id under timesheet_ids -> form view remaining hours -> sla_deadline activities -> 'next activity' field to be added -> list view field specific decoration -> display unit_amount in red if > 24:00 -> form view 6) hr.expense avatar -> employee_id -> list view activities -> 'next activity' field to be added -> list view badge -> state -> list view draft = blue reported = green approved = green done = green refused = red combine the unit_amount and the currency_id fields (see the total_amount field for reference) -> list view (idem for the expense_line_ids one2many on hr.expense.sheet) display the total_amount in bold move 'company_id' before 'amount' 7) hr.expense.sheet avatar employee_id -> list view user_id -> list view activities -> 'next activity' field to be added -> list view badge -> state -> list view draft = blue submit = green approve = green post = green done = green cancel = red display the total_amount in bold move 'company_id' before 'amount' 8) planning.slot avatar -> employee_id -> list view decoration display the allocated_percentage field in red if > 100% -> list + form view display the forecast_hours field in red if > planned hours and if planned_hours > 0 -> form view display the effective_hours field in red if > forecast_hours and if forecast_hours > 0 -> form view 9) misc calendar.event -> avatar -> user_id -> form view mail.activity.type -> combine the delay_count and delay_unit fields together -> list view note.note -> 'next activity' field to be added -> list view crm.lead.mining.request combine the lead_number and lead_type fields together -> list view display the name in bold badge -> state draft = blue done = green error = red planning.slot.template -> display the duration field in red if it is = 0 closes odoo/odoo#51271 Taskid: 2248351 Related: odoo/enterprise#10605 Related: odoo/upgrade#1252 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-20[IMP] note: Improve notes kanban card layoutKrupal Oza
Purpose of the task is to fix layout of kanban view in notes. Currently the kanban view of the note is having bad layout of activity. The activity is shown under the note and at left side. After this commit, it will fixes the layout by setting the float-right and mr4 in div of activity_ids and remove unnecessary div of it and also adding the spaces above the images. closes odoo/odoo#44445 Taskid: 2186292 Closes: #44445 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-07[FIX] *: removed activity exception filter from searchviewsParth Choksi
*: account crm event fleet hr_expense hr_holidays hr_recruitment mail maintenance mrp note project purchase_requisition repair stock_landed_costs stock_picking_batch survey website_event_track This commit is making sure that the exception activities filters are only defined where it make sense (i.e. where the system can actually create an exception activity). We have therefore removed 'exception activities' filters where the system won't be creating any. Task-2056425 closes odoo/odoo#36027 Closes: #36027 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-09-19[IMP] *: remove image_64 and clean viewsSébastien Theys
There are too many image sizes. Since they are stored resized this takes time to generate when saving a new image, it's more rows on the attachment table, more files on the disk, ... 64px is close enough to 128px that it can be removed without a big impact on download size. It will even reduce download and number of requests when both images are displayed because now only one has to be downloaded and then benefit from cache. The difference between the two is typically around 1.5kB which is negligible these days, especially when the request overhead is around 0.5kB already, not even taking into account other factors such as latency. If a 64px image must absolutely be returned, it is still possible to pass the size parameters to the image route. But the current guideline is to handle resizing in the views when necessary. Views ===== - remove width and height attributes when existing CSS rules are overriding them (eg. `.oe_kanban_avatar` in the right context) - add CSS rules instead of width and height attributes when possible - use `object-fit: cover;` where width and height are forced to avoid distortion of non-square images - for products, use `object-fit: contain;` instead, keep ratio but without crop - add new CSS rules where the expected size was max 64px*64px before due to the image size itself - remove `img-fluid` where using size classes to avoid conflicting rules task-2060865 closes odoo/odoo#36147 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-08-21[MERGE] forward port branch saas-12.4 up to f26de445e55Christophe Simonis
2019-08-19[MERGE] forward port branch 12.0 up to 32039b2ab44Christophe Simonis
2019-07-30[FIX] *: fix UI glitch of kanban dropdown.Priyanka Kakadiya
purpose of this commit is to show dropdown inside the kanban box with proper UI By default, bootstrap use Popper.js for dynamic positioning. so, We need to disable this issue with display static for removing glitch. expected behaviour: after applied this commit, kanban dropdown position will be inside of kanban box. closes odoo/odoo#27150 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-08-09[IMP] *: add selection_mode condition to show/hide elements in kanbanMohammed Shekha
If we use a kanban view to select a record we want to hide those elements: dropdown boxes, buttons, anchors, some widgets, kanban color. When it was too much change and used the new attribute "kanban_view_ref" to explicitly define which view to open in selection_mode. When also had to create previously unexisting kanban for fleet.vehicle.model to show name and brand. Task ID : 1924779
2019-08-07[IMP] *: add visual indicator for exception activities in list and kanbanMitali Patel
The new visual indicator for exception activities has been added on all corresponding kanban and list views. A new filter "Exception Activities" has also been added in the corresponding search views. Task 1889379 closes odoo/odoo#31839 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2019-08-07[IMP] *: hide all activity related filtersDharmang Soni
All activity filters are now invisible in the corresponding search views. These filters were only used by activity redirection (when clicking on the activity item in the systray) so we hide them to reduce the noise for the user. "My Activity" filter has also been removed, its corresponding domain is now directly set in the action where it was used. Task 2036392
2019-08-02[IMP] *: rename image fieldsSébastien Theys
image_original => image_1920 (now resized to 1920) image_big => image_1024 image_large => image_256 image_medium => image_128 image_small => image_64 image replaced by image_1920 (when writing) or by image_1024 (when displaying what was previously the big size) + add new intermediate format: image_512 PR: #34925
2019-06-17[IMP] *: remove 'view_type' on window actions.Hiral Bhavsar
The old tree views don't really exist anymore, this odd pseudo-flag to dispatch between "list" and "tree" tree views has no reason to remain. Task 1937686 closes odoo/odoo#31243 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
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
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-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-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-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[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-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