Skip to content

Commit

Permalink
[IMP] fieldservice_recurring: groups attribute v16
Browse files Browse the repository at this point in the history
  • Loading branch information
brian10048 committed Nov 13, 2023
1 parent 4aa5093 commit 5232f17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions fieldservice_recurring/views/fsm_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<record id="view_fsm_order_form" model="ir.ui.view">
<field name="model">fsm.order</field>
<field name="inherit_id" ref="fieldservice.fsm_order_form" />
<field
name="groups_id"
eval="[(4, ref('fieldservice_recurring.group_fsm_recurring'))]"
/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
<button
Expand All @@ -14,6 +10,7 @@
class="oe_stat_button"
icon="fa-calendar"
attrs="{'invisible': [('fsm_recurring_id', '=', False)]}"
groups="group_fsm_recurring"
>
<span class="o_stat_text">Recurring Order</span>
<field name="fsm_recurring_id" attrs="{'invisible': 1}" />
Expand Down
8 changes: 2 additions & 6 deletions fieldservice_recurring/views/fsm_team.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@
<record model="ir.ui.view" id="view_team_kanban_recurring">
<field name="model">fsm.team</field>
<field name="inherit_id" ref="fieldservice.view_team_kanban" />
<field
name="groups_id"
eval="[(4, ref('fieldservice_recurring.group_fsm_recurring'))]"
/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="recurring_draft_count" />
<field name="recurring_draft_count" groups="group_fsm_recurring" />
</field>
<xpath
expr="//div[hasclass('container','o_kanban_card_content')]"
position="inside"
>
<div class="row">
<div class="row" groups="group_fsm_recurring">
<div class="col-6 o_kanban_primary_right">
<div class="row">
<div class="col-9">
Expand Down

0 comments on commit 5232f17

Please sign in to comment.