19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:56 +01:00
parent a2f74aefd8
commit 4a4d12c333
844 changed files with 212348 additions and 270090 deletions

View file

@ -8,27 +8,46 @@
<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" colspan="2"/>
<field name="share_link" widget="CopyClipboardChar"/>
</group>
<field name="collaborator_ids" nolabel="1">
<list string="Collaborators" editable="bottom">
<field name="partner_id"
options="{'no_create': True, 'no_open': True}"
domain="[('id', 'not in', parent.existing_partner_ids), ('partner_share', '=', True)]"
context="{'show_email': True}"
/>
<field name="access_mode"/>
<field name="send_invitation"/>
</list>
</field>
<p class="text-muted">Choose one of the following access modes for your collaborators:</p>
<ul class="text-muted">
<li>Read: collaborators can view tasks but cannot edit them.</li>
<li>Edit with limited access: collaborators can view and edit tasks they follow in the Kanban view.</li>
<li>Edit: collaborators can view and edit all tasks in the Kanban view. Additionally, they can choose which tasks they want to follow.</li>
</ul>
<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" />
<button string="Share Project" name="action_share_record" type="object" class="btn-primary" data-hotkey="q" invisible="not collaborator_ids" />
<button string="Save" class="btn-primary" special="save" data-hotkey="q" invisible="collaborator_ids" />
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="x" />
</footer>
</form>
</field>
</record>
<record id="project_share_wizard_confirm_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="Confirmation">
<p>People invited to collaborate on the project will have portal access rights.</p>
<p>They can edit shared project tasks and view specific documents in read mode on your website. This includes leads/opportunities, quotations/sales orders, purchase orders, invoices and bills, timesheets, and tickets.</p>
<p>You have full control and can revoke portal access anytime. Are you ready to proceed?</p>
<footer>
<button string="Grant Portal Access" name="action_send_mail" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Discard" class="btn-secondary" special="cancel" data-hotkey="x" />
</footer>
</form>
</field>
@ -37,7 +56,6 @@
<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>