summaryrefslogtreecommitdiff
path: root/addons/project/views/project_views.xml
AgeCommit message (Collapse)Author
2021-05-19[FIX] project: display share action on only form viewSwapnesh Shah
Before this commit, Share action was displayed on list view as well which doesn't makes sense as it will always use `active_id` only. With this commit, we are displaying `Share` action on form view only. opw-2530652 closes #70821 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-02-25[FIX] project: remove chatter glitches in form without sheet tagIpsita Borisagar
Before this commit: In edit mode, glitching of chatter is visible in project.task's form view (without sheet tag). After this commit: Removed this glinch of chatter and displaying it with full width in the form (without sheet tag). Links PR https://github.com/odoo/odoo/pull/65447 Task- 2411632 closes odoo/odoo#66799 X-original-commit: f2f27b6da33e74121912ed95d1cbf54dc6d0ca90 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-02-17[FIX] project: remove chatter glitches in form without sheet tagIpsita Borisagar
Before this commit: In edit mode, glitching of chatter is visible in project.project's form view (without sheet tag). After this commit: Removed this glinch of chatter and displaying it with full width in the form (without sheet tag). LINKS PR https://github.com/odoo/odoo/pull/65448 Task- 2411632 closes odoo/odoo#65448 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-01-14[REV] project: revert "[FIX] project : chatter wrong place"Alexandre Kühn
This reverts commit 1c7f135708ccca0ad2d54ec41964d5083f42a01b. The placement of chatter in `project.project` is intentional: it's in form sheet bg to prevent it taking 1/3rd of screen width in XL screen configuration on the right side. Reason to not want it is because the chatter has no conversation, and chatter with no conversation is basically just follower widget and attachment, both of which take up a very small area of screen. By being aside, they would take about 1/3rd of screen with mostly blank content. Task-2410310 closes odoo/odoo#64551 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-12-21[IMP] project,sale_project: have partner_id many2One behave as in sale.orderLaurent Stukkens (LTU)
Prior to this commit the partners where sorted out by display_name in the project form view. After this commit the will be sorted out by their ranking, as it is the case in sale.order form view. task-2409761
2020-12-21[IMP] project: hide partner phone numberLaurent Stukkens (LTU)
task-2409761
2020-12-21[IMP] project,sale_project: have partner_id many2One behave as in sale.orderLaurent Stukkens (LTU)
Prior to this commit the partners where sorted out by display_name in the task form view. After this commit the will be sorted out by their ranking, as it is the case in sale.order form view. task-2409761
2020-12-02[FIX] project : chatter wrong placeFlorent de Labarre
closes odoo/odoo#62739 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-30[FIX] project: reintroduce partner_email in task formLaurent Stukkens (LTU)
Fix field removal introduced in bed22b10322882802cb0435088f9731ebbdf634e closes odoo/odoo#62579 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-11-28[IMP] project, sale_project, sale_timesheet: refactor task form viewLaurent Stukkens (LTU)
This commit bring the following changes: * Remove the email field * Switch the groups (left <-> right) * Move the 'parent task' field below the user_id one * Remove the service field * Remove the 'create sales order' button task-2388500
2020-11-18[IMP] project: kanban label in tasks treeNicolas Martinelli
Some projects may not need the tags, while others use the state heavily. This makes both fields available and optional. closes odoo/odoo#61924 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-16[FIX] project: remaining_days widgetNicolas Martinelli
The widget is intended for informative fields only, i.e. the fields do not need to be editable. It is not the case for the date_deadline. closes odoo/odoo#60183 Related: odoo/enterprise#14174 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-10-15[FIX] project: fix duplicate filter namePaul Morelle
odoo/odoo@dadcec593d83 introduced a duplicate name in the filters of the view project.view_project_project_filter. This commit renames the new filter from my_projects to own_projects. closes odoo/odoo#60089 Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
2020-09-01[FIX] sale_timesheet: Billable projectjbm-odoo
taskID 2323997 closes odoo/odoo#56311 Related: odoo/enterprise#12682 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-18[IMP] project: add helpers and sample data on viewsFrancois (fge)
Added new helpers and sample data for some views. closes odoo/odoo#55643 Related: odoo/enterprise#12312 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-18[IMP] *: set sample="1" on reporting view archsBarad Mahendra
The purpose of this commit is to enable sample data on various graph and pivot views. Task ID: 2319606 closes odoo/odoo#55917 Related: odoo/enterprise#12415 Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
2020-08-13[IMP] hr_timesheet,pad_project,project,rating,sale_timesheet: back2basics ↵Arnaud Joset
project Multiple UI and UX changes taskid: 2299401
2020-08-12[FIX] project: only internal users in "Assigned To" field of task formPierre Collinet (pic)
Values filled in "Assigned To" m2o were differing: - if I "CREATE" task with "group by" then m2o is filled with internal-users + portal-users - if I "CREATE: task without group by then it filled with internal users only. In Project also same case. To have a more coherent behaviour, we decided to put only internal users in both cases. Task ID #2229592 Community PR #54776 closes odoo/odoo#55820 X-original-commit: 8269c1958843002246c589cdd593417dec44f024 Related: odoo/enterprise#12376 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-12[IMP] *: set sample="1" on various graph archsBarad Mahendra
The purpose of this commit is to enable sample data in various graph views. TaskID: 2311486
2020-08-12[IMP] project: add recurring tasksKevin Baptiste
Some interventions are done on a regular basis (e.g. maintenance of fire alarms, safety inspections). Having tasks auto-generate would facilitate the process and would ensure that the next intervention isn't missed/forgotten. closes odoo/odoo#55517 Taskid: 2172156 Related: odoo/enterprise#12246 Related: odoo/upgrade#1604 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-07-28[REM] core, *: deprecate <act_window> and <report>Xavier Morel
Convert deprecated tags through the codebase.
2020-07-03[IMP] project: fix mail aliasSimon Genin (ges)
Update mail alias layout, makes email address clickable (mailto) and fix a couple of typos. Task ID 2287394 closes odoo/odoo#53960 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-29[IMP] hr_timesheet: Improve the usability of timesheet portalqho
1. Generic timesheets improvements - Portal /my/timesheets - Add a group bys task, date, employee - Add search in project, name, employee, task * The task column should not be visible if none of the timesheets have the Task field set - If a group by task, date, employee or project is applied, the corresponding column should not be visible 2. Timesheets from sub-tasks on parent tasks - Portal /my/tasks - Display the 'Total Hours' spent on a task at the end of the list of timesheets - Below the list of timesheets for the task, display another table detailing the respective timesheets (and total hours) of each sub-task linked to this task (= 1 table/list per sub-task) * Title should be: 'Timesheets for sub-task: xyz' * only visible if there are sub-tasks linked to this task * only visible if total hours > 0 3. Timesheets on Invoices - Portal /my/invoices - Add Project + task fields * Task field only visible if set on one of the timesheet entries * Project field only visible if there are at least 2 different projects in these timesheet entries 4. Correct visibility for the portal users - Portal users is allowed to see timesheets if the users are added in allowed portal users list in the project - When a portal user is added as the message follower of the project, the user is added to allowed portal users as well - When a portal user is removed from allowed portal users, the user is also removed from message followers closes odoo/odoo#47248 Taskid: 2201908 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-24[IMP] project,sale,hr(_timesheet): Generic improments for projectHardik Prajapati
Done the below several improvement on project: - move the stage description and tooltips to the debug mode - remove the 'need assistance' tag - Change the app description in manifest file 'Organize and plan your projects.' - Change the burger menu sequence into: Edit/Delete/Share/Set Cover Image - change the description of the pad feature into, 'edit tasks description collaboratively in real time. see each author's text in a distinct color.' - add the following tooltip for the allow_billable field, 'invoice your time and material from tasks.' - add an fa-stopwatch icon in front of the Start & the Stop buttons in task's form view - rename the 'validate time spent' modal into 'confirm time spent ' + increase the size of the description field + this field should not be required - project overview: rename 'Hours recorded' into' Recorded Hours' - project form view: disable the creation for the portal users field - Rename the 'ready for next stage' kanban state into 'Ready' TaskID: 2232051 Related Enterprise PR: https://github.com/odoo/enterprise/pull/9961 closes odoo/odoo#49694 Closes: #49694 Related: odoo/enterprise#9961 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-23[IMP] project: convert onchange to stored-editable computed fields.Rémy Baranx (bar)
The 'stage_id' field is now a stored-editable computed field. The 'company_id' has been converted to a stored-editable computed field. The modification of the 'partner_id' field in the onchange method has been moved and merged into the _compute_partner_id method. Remove the empty 'onchange' method from the project.task model and also remove this method call from the sale_timesheet module, which inherits from the project.task model. Adapt the _compute_partner_id to retrieve exactly the behaviour before the onchange method deletion. Update code and tests of the task/subtask partner_id management after discussion with Alexandra to clarify the behavior. Add the 'multi_edit' attribute to tree views.
2020-06-23[IMP] project: improve calendar viewArnaud Joset
Before this commit, the calendar view showcases tasks by deadline. Because it is a simple date field, the day/week modes don't have much value and are even confusing to the users, who expect to be able to define timeframes. In addition, the quickcreate doesn't allow to select a project. This is problematic because it leads to "ghost" tasks. closes odoo/odoo#52478 Taskid: 2264594 Related: odoo/enterprise#10976 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-22[IMP] *: enable sample data in several viewsJérémy Hennecart
This commit sets attribute sample="1" in a bunch of list and kanban views, to enable the new sample data feature when views are empty. Task 2232801 X-original-commit: 5471309b35619f307242c2704c7681ba63d2be42
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-06-03[FIX] project: Remove duplicated field on tasks list viewYannick Tivisse
closes odoo/odoo#52297 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-02[IMP] project: Improve global UX (back2basics)Yannick Tivisse (yti)
Improve the onboarding of new users and clean a few screens. Task ID: 2237996 closes odoo/odoo#50284 Related: odoo/enterprise#10536 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by: dmonzonis <mod@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-05-15[IMP] various: Remove the message_needaction_counter from kanban viewsVishnu Thuletiya
Purpose of the task is to remove the needaction message counter from kanban view due to below reason: - The user has access to unread messages on records from the discuss item in the systray. - It is irrelevant for user handling notifications through their mail client - It is only less UI item to worry about on the kanban views (as features increase, we need to be careful not to clutter the views) - The user can still use the message_needaction filter to get records with unread messages So in this commit we removed the need action counter from all the kanban view. closes odoo/odoo#51299 Taskid: 2257624 Closes: #51299 Related: odoo/enterprise#10613 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-15[IMP] various: Update list views with new widgetsYannick Tivisse
Purpose ======= The following task implemented new widgets/features in the listview for better UI. https://www.odoo.com/web#id=2195254&action=327&model=project.task&view_type=form&cids=1&menu_id=4720 The goal of the current task is to use those to upgrade our listviews Specification ============= Below are change requests on various listviews. Remove decoration-bf="message_needaction==True" from every listview in every module. PRODUCT - stock.view_stock_product_template_tree (product template) remove all decorations from <tree> set the following decorations on 'virtual_available' and 'qty_available' decoration-danger="virtual_available&lt;0" decoration-warning="virtual_available==0" also set decoration-bf on 'virtual_available' apply the same modifications on stock.view_stock_product_tree for product variants SUBSCRIPTION - sale_subscription.sale_subscription_view_list remove all decorations from <tree> 'stage_id' field set <field name="stage_id" widget="badge" decoration-info="stage_category == 'draft'" decoration-success="stage_category == 'progress'"/> 'recurring_next_date' field set <field name="recurring_next_date" string="Next Invoice" widget="remaining_days" attrs="{'invisible': [('stage_category', '!=', 'progress')]}"/> set decoration-bf on 'code' and 'recurring_total_incl' move 'percentage_satisfaction' before 'recurring_total_incl' set widget="many2one_avatar_user" on 'user_id' add <field name="activity_ids" widget="list_activity"/> after 'user_id' ELEARNING - website_slides.slide_channel_view_tree set widget="many2one_avatar_user" on 'user_id' 'enroll' field set <field name="enroll" widget="badge" decoration-success="enroll == 'public'" decoration-info="enroll == 'invite'" decoration-warning="enroll == 'payment'"/> POS - point_of_sale.view_pos_order_tree remove all decorations from <tree> 'state' field make visible and move it at the end of the view set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state not in ('draft','cancel')"/> set decoration-bf on 'name' APPRAISAL - hr_appraisal.view_hr_appraisal_tree 'state' field set <field name="state" widget="badge" decoration-info="state in ('new','pending')" decoration-success="state == 'done'"/> 'date_close' field set <field name="date_close" widget="remaining_days" attrs="{'invisible': ['|',('state','=','done'),('state','=','cancel')]}"/> PAYMENT - account.view_account_payment_tree remove all decorations from <tree> 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state == 'posted'"/> move 'company_id' before 'amount' CONTRACT - hr_contract.hr_contract_view_tree remove all decorations from <tree> 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state == 'close'" decoration-success="state == 'open'"/> set widget="many2one_avatar_employee" on 'employee_id' PAYSLIPS - hr_payroll.view_hr_payslip_tree remove all decorations from <tree> 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state == 'verify'" decoration-success="state in ('done','paid')"/> set decoration-bf on 'number' and 'net_wage' move 'company_id' before 'basic_wage' set widget="many2one_avatar_employee" on 'employee_id' SURVEY - survey.survey_tree 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state == 'open'"/> APPLICATION - hr_recruitment.crm_case_tree_view_job set widget="date' on 'create_date' set widget="priority' on 'priority' set widget="many2one_avatar_user" on 'user_id' TIME OFF - hr_holidays.hr_leave_view_tree remove all decorations from <tree> 'state' field set <field name="state" widget="badge" decoration-info="state == 'draft'" decoration-warning="state in ('confirm','validate1')" decoration-success="state == 'validate'"/> apply the same changes in hr_holidays.hr_leave_allocation_view_tree closes odoo/odoo#51305 Taskid: 2256589 Related: odoo/enterprise#10614 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-13[IMP] various: Use the new avatar widget in kanban viewVishnu Thuletiya
The purpose of task is to update the 'user/employee avatar' to the new widget in all the kanban view across all modules. The below new widget are introduced for avatar: - many2one_avatar_user (for user_id fields) - many2one_avatar_employee (for employee_id fields) which displays the avatar (i.e. picture) of a user/employee in front of his name and clicking on the avatar will open a chatbox to message that specific user/employee. So in this commit, For each kanban view with a user or employee avatar, replaced it by the field with the new 'many2one_avatar' widget. TaskID: 2244928 Related Enterprise PR: https://github.com/odoo/enterprise/pull/10420 closes odoo/odoo#50789 Closes: #50789 Related: odoo/enterprise#10420 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-08[IMP] customer ratings flow improvementsBenjamin Frantzen (bfr)
- Rename the 'Use Rating on Project' feature into 'Customer Ratings' - Rename the 'Set Email Template to Stages' link to 'Set a Rating Email Template on Stages' - Add an optional list view for the Stages menu - display warning if the rating_template_id field is set and if one of the selected project_ids doesn't have the rating_status field set to true - Project form view revamp - rename the '% on tasks' stat button into 'Customer Satisfaction' - Remove the 'no option' for the rating frequency field because it is required - project form : Add a 'Go to Website' stat button - Project dashboard: remove the 'Customer Ratings' menu item in more - Ratings page: the 'Last 30 days' filter include ratings from today - remove the Appointment / Helpdesk Customer Satisfaction / Live Support menu items TASK ID : 1251
2020-05-08[IMP] project: add closed stage in projectKevin Baptiste
closes odoo/odoo#46749 Taskid: 2205057 Related: odoo/enterprise#9119 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-05[IMP] *: update kanban viewsAaron Bohy
Use the new Many2OneAvatarUser field widget in some kanban views, which allows to open a DM chat window with the corresponding user by clicking on the avatar. Part of task 2195254
2020-04-28[IMP] various: Hide default user image for unassigned recordsLucas Lefèvre
Impacted modules: account_analytic_default, crm, event, hr_recruitment, maintenance, mass_mailing, project, purchase_requisition, stock_picking_batch, website_slides The default image displayed when the record is unassigned is confusing, so we are removing it. FP request Task 2234524 closes odoo/odoo#49333 Related: odoo/enterprise#9834 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-04-22[IMP] project: ease stage deletionKevin Baptiste
Before this commit, deleting a stage with tasks, the user received an error. With this commit, when deleting a stage containing tasks, a wizard offers the choice to move the tasks to another stage. closes odoo/odoo#46410 Taskid: 1869030 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-04-08[IMP] project: improve usability (back2basics)Kevin Baptiste
* Reword tasks in the sample project * Add a "Create and Edit" button on the project creation modal * Open the file chooser in "Set a cover image" if there are no images set * Correclty display the kanban state button on archived task * Add a button to list the tasks when deleting a project * Open file chooser for cover image: Automatically open the file chooser when setting a cover image on a task if there are no attachments to chose from. closes odoo/odoo#47306 Taskid: 2209133 Related: odoo/enterprise#9141 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-13[IMP] *: remove color field from pivot measureMohammed Shekha
in several models the 'color index' field shows up in the pivot measures, color field in pivot measure doesn't make sense functionally, so remove it from measure list, to remove it, add field explicitly in view and set invisible attribute on it to remove it from measure list. task-2153090 closes odoo/odoo#47485 Related: odoo/enterprise#9183 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-16[IMP] various: Allow to select only internal users on m2x field with res.usersNisha patel
Purpose of this task is to prevent users from setting portal users on internal documents by mistake, and preventing noise and performance issues resulting from loading all the portal users in those fields. This commit fixes internal many2x fields to res.users which are now restricted to internal users by setting domain (share=false) on form view. closes odoo/odoo#47553 Taskid: 2172779 Related: https://github.com/odoo/enterprise/pull/9204 Related: odoo/enterprise#9204 Closes: #47553 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-02-24[FIX] crm_iap_lead,project: Fix invalid client-side domainBarad Mahendra
Since the commit https://github.com/odoo/odoo/commit/e95ccf0908c263f6cf23c91c477a8e252e936ff1 invalid client-side domain will raise the error so fix the incorrect domain in attrs. Taskid:2196805 closes odoo/odoo#46116 Closes: #45680 X-original-commit: 4279a6bdd4041ff643c3ff5c55f55c93cf4f774f Related: odoo/enterprise#8708 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-31[IMP] project, industry_fsm: Improve subtasks and configuration UXKevin Baptiste
Purpose ======= In Project, the configuration has to be done twice: in the settings of the app and on each project. During the onboarding, the user won't understand that a feature has to be enabled at both places and will think that the system just doesn't work. If the user enabled a feature, he most likely intends on using it for most of his projects. Therefore, having to do a double configuration for each new project is annoying. By the way, sub-tasks is the only global feature (it can't be enabled or disabled by project), so we are breaking it down by project to remain consistent with the rest. Specification ============= 1/ Enable subtasks per project Before this commit, sub-tasks were a global feature (i.e. once enabled they were enabled for all projects). This commit gives the ability to enable/disable sub-tasks per project. 2/ Make project_id on planning required 3/ Change default rating status on new projects 4/ Default value for allow_subtasks 5/ Enable timesheets on existing projects 6/ Hide Total Hours if subtasks are disabled 7/ Create project in the company context. Otherwise some records generation could use a default company which is not the company for which we want to create a project. 8/ Default value for allow_forecast, is_fsm 9/ Change reference to timesheet product 10/ Fix tracback on industry_fsm_report. Before this commit, there was a traceback when enabling "Worksheets" (industry_fsm_report) after "Time and Material" (industry_fsm_sale). 11/ Convert some onchange method into computed editable stored fields closes odoo/odoo#41218 Taskid: 2146474 Related: odoo/enterprise#6998 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by: Yannick Tivisse <yti@odoo.com>
2020-01-27[IMP] calendar: Adapt views and test for new color and filtersjbm-odoo
closes odoo/odoo#41573 Taskid: 2153249 Related: odoo/enterprise#7157 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-17[IMP] crm,project,utm: modify color of tags in list viewNisha patel
Purpose of this task is to change the color of Tags field in tree view in the same way as it show in form view. TaskId : 2172123 closes odoo/odoo#43442 Closes: odoo#43442 Related: odoo/enterprise#7769 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-21[IMP] sale_timesheet: Improve project overview UILucas Lefèvre
1) Add the following stat buttons on the right of the Tasks one: - (fa-tasks) Late Tasks: tasks whose deadline is exceeded (do not include tasks that don't have a deadline set) - (fa-tasks) Tasks in Overtime: tasks whose Effective hours are strictly greater than their Planned hours (if the latter is stricly greater than 0) 2) Remove the sheet view (should be like financial reports) 3) Add an 'Other Revenues' metric under the Profitability section below 'To Invoice' - It should represent all the revenues other than from timesheets linked to the analytic account of the project. - Only visible if greater than 0 Task 2119567
2020-01-21[IMP] base: add default image for users + placeholder if unassignedXavier Bol (xbo)
1/ When the new database is created without demo data, the admin has a 'silhouette' as a default picture. When a new user is created without picture given by the current user, the new user will have a 'silhouette' as a default profile picture. 2/ web: image for fa-user-slash. This image will be used when a record is unassigned. 3/ web, *: Change placeholder by default when record is unassigned. We want to have a fa-user-slash icon when a record is unassigned instead of 'placeholder.png'. A method is created in the BaseModel to have a generic method to change easily the placeholder for other models. 4/ Adapt kanban test to keep the same behaviour. Attention the behaviour is a bit different. Because, now the default image is given by the server to change easily the default image when a record doesn't have an image. Thus, we don't say if it's the default placeholder, but we can say it's not the same image of the record (in this test, the record, it's the partner). 5/ misc: display 'Unassigned' in the hover on kanban cards if record is unassigned closes odoo/odoo#41356 Taskid: 2060206 Related: odoo/enterprise#7758 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by: jdoutreloux <jud@odoo.com> Co-authored-by: Yannick Tivisse <yti@odoo.com>
2020-01-14[IMP] project: Following a private project no longer requiredLucas Lefèvre
======= Purpose ======= Currently for a user to be allowed to see a private project they must follow the project. This means that they will be added as a follower of all new tasks in the project which causes them to receive 1000000 notifications, especially if there are a lot of tasks in a project. ============== Specifications ============== 1) Add an Employee m2m field on project next to 'Invited Employees' - only visible if the 'Invited Employees' option is selected - the project should only be visible to employees selected there (regardless if they are followers or not) 2) Add an Employee m2m field on tasks below the 'Email cc' one in debug mode - only visible if the 'Invited Employees' option is selected on the related project - should be pre-filled with what is set on the project - the task should be visible to employees selected there (regardless if they are followers or not) 3) Add a Portal users m2m field on project next to 'Portal users and all employees' - only visible if the 'Portal users and all employees' option is selected - the project should only be visible to portal users selected there (regardless if they are followers or not) - rename the option into 'Invited portal users and all employees' 4) Add a Portal users m2m field on tasks below the 'Email cc' one in debug mode - only visible if the 'Portal users and all employees' option is selected - should be pre-filled with what is set on the project - the task should be visible to portal users selected there (regardless if they are followers or not) 5) Following a project/task should not grant the user/employee the ability to see the project/task Task 2031527 closes odoo/odoo#40505 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>