Files
odoo_source/addons/project/wizard/project_share_wizard_views.xml
T
Kartik Chavda c0da9d934c [IMP] (sale_,)project,hr_timesheet: improve generic ux of project
Purpose of this commit to improve generic usage of project
app.

So, in this commit done following changes:

- add 'my department' filter in project search view.
- add 'my department's tasks' and 'my department's projects filter
  in task search view.
- add quick search, filter and groupby in task analysis report search view
  to make task analysis report search view same as task's search view.
- improve portal template of my/tasks page.
- project.task form view > timesheets: display the employee avatar
  on mobile.
- make 'Task: Rating Request' template auto_delete false.
- settings: make following features disabled by default: sub-tasks,
  task dependencies, recurring tasks.
- project.update kanban list: align the stat buttons with the kanban
  list cards.
- add sample data to the project stages > list view.
- project.task quickcreate: enable the creation of new users on the
  fly.
- move tags quick search below project.
- add title to show  project full name on hover of project name in kanban
  view of project.
- copy user_ids for task in recurrence.
- improve UI visibility of planned_hours and subtask_planned_hours field in
  timesheet page of task form view.
- improve project sharing wizard and project.collaborator tree
  view.
- add grid,kanban,pivot and graph views to 'hours spent on
  sub-tasks' button's action.

closes: #83482
task-2742725

Related: odoo/enterprise#23788
Related: odoo/upgrade#3480
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-05-03 17:53:45 +02:00

46 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="project_share_wizard_view_form" model="ir.ui.view">
<field name="name">project.share.wizard.view.form</field>
<field name="model">project.share.wizard</field>
<field name="arch" type="xml">
<form string="Share Project">
<field name="res_model" invisible="1"/>
<field name="res_id" invisible="1"/>
<field name="display_access_mode" invisible="1" />
<p class="alert alert-warning" attrs="{'invisible': [('access_warning', '=', '')]}" role="alert"><field name="access_warning"/></p>
<group attrs="{'invisible': [('display_access_mode', '=', False)]}">
<field class="flex-row" name="access_mode" widget="radio"/>
</group>
<group name="share_link" attrs="{'invisible': [('access_mode', '=', 'edit')]}">
<field name="share_link" widget="CopyClipboardChar" options="{'string': 'Copy Link'}"/>
</group>
<group>
<div class="o_td_label">
<label for="partner_ids" string="Invite People" attrs="{'invisible': [('access_mode', '=', 'read')]}"/>
<label for="partner_ids" attrs="{'invisible': [('access_mode', '=', 'edit')]}"/>
</div>
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to share the project..." nolabel="1" context="{'show_email': True}"/>
</group>
<group>
<field name="note" placeholder="Add a note" nolabel="1"/>
</group>
<footer>
<button string="Send" name="action_send_mail" attrs="{'invisible': [('access_warning', '!=', '')]}" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="z" />
</footer>
</form>
</field>
</record>
<record id="project_share_wizard_action" model="ir.actions.act_window">
<field name="name">Share Project</field>
<field name="res_model">project.share.wizard</field>
<field name="binding_model_id" ref="model_project_project"/>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</odoo>