[FIX] calendar: Attendance buttons doesn't exist on mobile
Step to reproduce : For small screens > enter the debug mode > go to the calendar app > access one of your meetings > access the tab "invitations" > try to change the state of attendance It's due to the missing kanban view used by the o2m field 'attendee_ids' We had to create this missing kanban view to allow theses actions on mobile. opw-2058770 closes odoo/odoo#36501 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
@@ -201,7 +201,7 @@
|
||||
|
||||
<page name="page_invitations" string="Invitations" groups="base.group_no_one">
|
||||
<button name="action_sendmail" type="object" string="Send mail" icon="fa-envelope" class="oe_link"/>
|
||||
<field name="attendee_ids" widget="one2many" >
|
||||
<field name="attendee_ids" widget="one2many" mode="tree,kanban">
|
||||
<tree string="Invitation details" editable="top" create="false" delete="false">
|
||||
<field name="partner_id" />
|
||||
<field name="state" />
|
||||
@@ -211,6 +211,27 @@
|
||||
<button name="do_accept" string="Accept" states="needsAction,tentative,declined" type="object" icon="fa-check text-success"/>
|
||||
<button name="do_decline" string="Decline" states="needsAction,tentative,accepted" type="object" icon="fa-times-circle text-danger"/>
|
||||
</tree>
|
||||
<kanban class="o_kanban_mobile" create="false" delete="false">
|
||||
<field name="partner_id" />
|
||||
<field name="state" />
|
||||
<field name="email" widget="email"/>
|
||||
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="d-flex flex-column justify-content-between">
|
||||
<field name="partner_id"/>
|
||||
<field name="email" widget="email"/>
|
||||
<span>Status: <field name="state" /></span>
|
||||
|
||||
<div class="text-right">
|
||||
<button name="do_tentative" states="needsAction,declined,accepted" string="Uncertain" type="object" class="btn fa fa-asterisk"/>
|
||||
<button name="do_accept" states="needsAction,tentative,declined" string="Accept" type="object" class="btn fa fa-check text-success"/>
|
||||
<button name="do_decline" states="needsAction,tentative,accepted" string="Decline" type="object" class="btn fa fa-times-circle text-danger"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</page>
|
||||
<page name="page_misc" string="Misc" groups="base.group_no_one">
|
||||
|
||||
Reference in New Issue
Block a user