[IMP] pre-commit run -a
This commit is contained in:
parent
7fc501891a
commit
324d84aea1
@ -1,15 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<odoo noupdate="1">
|
<odoo noupdate="1">
|
||||||
|
|
||||||
<record id="mail_activity_rule_my_team" model="ir.rule">
|
<record id="mail_activity_rule_my_team" model="ir.rule">
|
||||||
<field name="name">mail.activity: user: my team</field>
|
<field name="name">mail.activity: user: my team</field>
|
||||||
<field name="model_id" ref="mail.model_mail_activity"/>
|
<field name="model_id" ref="mail.model_mail_activity" />
|
||||||
<field name="domain_force">["|", ('team_id', 'in', user.activity_team_ids.ids), "&", ('team_id', '=', False), ('user_id', '=', user.id)]</field>
|
<field
|
||||||
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
|
name="domain_force"
|
||||||
<field name="perm_create" eval="True"/>
|
>["|", ('team_id', 'in', user.activity_team_ids.ids), "&", ('team_id', '=', False), ('user_id', '=', user.id)]</field>
|
||||||
<field name="perm_read" eval="False"/>
|
<field name="groups" eval="[(4, ref('base.group_user'))]" />
|
||||||
<field name="perm_write" eval="True"/>
|
<field name="perm_create" eval="True" />
|
||||||
<field name="perm_unlink" eval="True"/>
|
<field name="perm_read" eval="False" />
|
||||||
|
<field name="perm_write" eval="True" />
|
||||||
|
<field name="perm_unlink" eval="True" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -11,32 +11,46 @@
|
|||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Activity Team">
|
<form string="Activity Team">
|
||||||
<header>
|
<header>
|
||||||
<field name="count_missing_activities" invisible="1"/>
|
<field name="count_missing_activities" invisible="1" />
|
||||||
<button name="assign_team_to_unassigned_activities" string="Assign to missing activities"
|
<button
|
||||||
type="object" class="oe_highlight"
|
name="assign_team_to_unassigned_activities"
|
||||||
groups="base.group_no_one"
|
string="Assign to missing activities"
|
||||||
attrs="{'invisible': [('count_missing_activities', '=', 0)]}"/>
|
type="object"
|
||||||
|
class="oe_highlight"
|
||||||
|
groups="base.group_no_one"
|
||||||
|
attrs="{'invisible': [('count_missing_activities', '=', 0)]}"
|
||||||
|
/>
|
||||||
</header>
|
</header>
|
||||||
<sheet string="Activity Team">
|
<sheet string="Activity Team">
|
||||||
<div class="oe_button_box" name="button_box">
|
<div class="oe_button_box" name="button_box">
|
||||||
<button name="toggle_active" type="object"
|
<button
|
||||||
class="oe_stat_button" icon="fa-archive">
|
name="toggle_active"
|
||||||
<field name="active" widget="boolean_button"
|
type="object"
|
||||||
options='{"terminology": "archive"}'/></button>
|
class="oe_stat_button"
|
||||||
|
icon="fa-archive"
|
||||||
|
>
|
||||||
|
<field
|
||||||
|
name="active"
|
||||||
|
widget="boolean_button"
|
||||||
|
options='{"terminology": "archive"}'
|
||||||
|
/></button>
|
||||||
</div>
|
</div>
|
||||||
<group>
|
<group>
|
||||||
<group name="base">
|
<group name="base">
|
||||||
<field name="name"/>
|
<field name="name" />
|
||||||
<field name="user_id"/>
|
<field name="user_id" />
|
||||||
</group>
|
</group>
|
||||||
<group name="models">
|
<group name="models">
|
||||||
<field name="res_model_ids" widget="many2many_tags"
|
<field
|
||||||
options="{'no_create': True, 'no_open': True}"/>
|
name="res_model_ids"
|
||||||
|
widget="many2many_tags"
|
||||||
|
options="{'no_create': True, 'no_open': True}"
|
||||||
|
/>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<notebook>
|
<notebook>
|
||||||
<page name="members" string="Members">
|
<page name="members" string="Members">
|
||||||
<field name="member_ids" nolabel="1"/>
|
<field name="member_ids" nolabel="1" />
|
||||||
</page>
|
</page>
|
||||||
</notebook>
|
</notebook>
|
||||||
</sheet>
|
</sheet>
|
||||||
@ -51,8 +65,8 @@
|
|||||||
<field name="model">mail.activity.team</field>
|
<field name="model">mail.activity.team</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree>
|
<tree>
|
||||||
<field name="name"/>
|
<field name="name" />
|
||||||
<field name="res_model_ids" widget="many2many_tags"/>
|
<field name="res_model_ids" widget="many2many_tags" />
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@ -64,9 +78,9 @@
|
|||||||
<field name="model">mail.activity.team</field>
|
<field name="model">mail.activity.team</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<search>
|
<search>
|
||||||
<field name="name"/>
|
<field name="name" />
|
||||||
<field name="res_model_ids"/>
|
<field name="res_model_ids" />
|
||||||
<field name="member_ids"/>
|
<field name="member_ids" />
|
||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@ -81,7 +95,7 @@
|
|||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
<field name="domain">[]</field>
|
<field name="domain">[]</field>
|
||||||
<field name="context">{}</field>
|
<field name="context">{}</field>
|
||||||
<field name="search_view_id" ref="mail_activity_team_view_search"/>
|
<field name="search_view_id" ref="mail_activity_team_view_search" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|
||||||
@ -89,9 +103,10 @@
|
|||||||
Menus
|
Menus
|
||||||
-->
|
-->
|
||||||
<menuitem
|
<menuitem
|
||||||
id="menu_mail_activity_team"
|
id="menu_mail_activity_team"
|
||||||
name="Activity Teams"
|
name="Activity Teams"
|
||||||
parent="base.menu_email"
|
parent="base.menu_email"
|
||||||
action="mail_activity_team_action"/>
|
action="mail_activity_team_action"
|
||||||
|
/>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<record id="mail_activity_view_form_popup" model="ir.ui.view">
|
<record id="mail_activity_view_form_popup" model="ir.ui.view">
|
||||||
<field name="name">mail.activity.view.form.popup</field>
|
<field name="name">mail.activity.view.form.popup</field>
|
||||||
<field name="model">mail.activity</field>
|
<field name="model">mail.activity</field>
|
||||||
<field name="inherit_id" ref="mail.mail_activity_view_form_popup"/>
|
<field name="inherit_id" ref="mail.mail_activity_view_form_popup" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="user_id" position="after">
|
<field name="user_id" position="after">
|
||||||
<field name="team_id" options="{'no_create': True, 'no_open': True}"/>
|
<field name="team_id" options="{'no_create': True, 'no_open': True}" />
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@ -15,10 +15,10 @@
|
|||||||
<record id="mail_activity_view_tree" model="ir.ui.view">
|
<record id="mail_activity_view_tree" model="ir.ui.view">
|
||||||
<field name="name">mail.activity.view.tree</field>
|
<field name="name">mail.activity.view.tree</field>
|
||||||
<field name="model">mail.activity</field>
|
<field name="model">mail.activity</field>
|
||||||
<field name="inherit_id" ref="mail.mail_activity_view_tree"/>
|
<field name="inherit_id" ref="mail.mail_activity_view_tree" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="date_deadline" position="after">
|
<field name="date_deadline" position="after">
|
||||||
<field name="team_id"/>
|
<field name="team_id" />
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@ -26,10 +26,13 @@
|
|||||||
<record id="mail_activity_view_form_board" model="ir.ui.view">
|
<record id="mail_activity_view_form_board" model="ir.ui.view">
|
||||||
<field name="name">mail.activity.view.form</field>
|
<field name="name">mail.activity.view.form</field>
|
||||||
<field name="model">mail.activity</field>
|
<field name="model">mail.activity</field>
|
||||||
<field name="inherit_id" ref="mail_activity_board.mail_activity_view_form_board"/>
|
<field
|
||||||
|
name="inherit_id"
|
||||||
|
ref="mail_activity_board.mail_activity_view_form_board"
|
||||||
|
/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="user_id" position="after">
|
<field name="user_id" position="after">
|
||||||
<field name="team_id"/>
|
<field name="team_id" />
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@ -37,15 +40,15 @@
|
|||||||
<record id="mail_activity_view_kanban" model="ir.ui.view">
|
<record id="mail_activity_view_kanban" model="ir.ui.view">
|
||||||
<field name="name">mail.activity.boards.view.kanban</field>
|
<field name="name">mail.activity.boards.view.kanban</field>
|
||||||
<field name="model">mail.activity</field>
|
<field name="model">mail.activity</field>
|
||||||
<field name="inherit_id" ref="mail_activity_board.mail_activity_view_kanban"/>
|
<field name="inherit_id" ref="mail_activity_board.mail_activity_view_kanban" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="user_id" position="after">
|
<field name="user_id" position="after">
|
||||||
<field name="team_id"/>
|
<field name="team_id" />
|
||||||
</field>
|
</field>
|
||||||
<xpath expr="//div[hasclass('oe_kanban_content')]" position="inside">
|
<xpath expr="//div[hasclass('oe_kanban_content')]" position="inside">
|
||||||
<br/>
|
<br />
|
||||||
<div>
|
<div>
|
||||||
Team: <field name="team_id"/>
|
Team: <field name="team_id" />
|
||||||
</div>
|
</div>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
@ -55,17 +58,21 @@
|
|||||||
<record id="mail_activity_view_search" model="ir.ui.view">
|
<record id="mail_activity_view_search" model="ir.ui.view">
|
||||||
<field name="name">mail.activity.boards.view.search</field>
|
<field name="name">mail.activity.boards.view.search</field>
|
||||||
<field name="model">mail.activity</field>
|
<field name="model">mail.activity</field>
|
||||||
<field name="inherit_id" ref="mail_activity_board.mail_activity_view_search"/>
|
<field name="inherit_id" ref="mail_activity_board.mail_activity_view_search" />
|
||||||
<field name="priority" eval="2"/>
|
<field name="priority" eval="2" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr='//field[@name="user_id"]' position='before'>
|
<xpath expr='//field[@name="user_id"]' position='before'>
|
||||||
<field name="team_id"/>
|
<field name="team_id" />
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr='//filter[@name="activities_6_month"]' position='after'>
|
<xpath expr='//filter[@name="activities_6_month"]' position='after'>
|
||||||
<filter name="my_team_activities" string="My Team Activities" domain="[('team_id.member_ids', '=', uid)]"/>
|
<filter
|
||||||
|
name="my_team_activities"
|
||||||
|
string="My Team Activities"
|
||||||
|
domain="[('team_id.member_ids', '=', uid)]"
|
||||||
|
/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<group position='inside'>
|
<group position='inside'>
|
||||||
<filter name='team' string="Team" context="{'group_by': 'team_id'}"/>
|
<filter name='team' string="Team" context="{'group_by': 'team_id'}" />
|
||||||
</group>
|
</group>
|
||||||
</field>
|
</field>
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0" ?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<!-- Update user form !-->
|
<!-- Update user form !-->
|
||||||
<record id="view_users_form_activity_teams" model="ir.ui.view">
|
<record id="view_users_form_activity_teams" model="ir.ui.view">
|
||||||
<field name="name">res.users.form.activity.team</field>
|
<field name="name">res.users.form.activity.team</field>
|
||||||
<field name="model">res.users</field>
|
<field name="model">res.users</field>
|
||||||
<field name="inherit_id" ref="base.view_users_form"/>
|
<field name="inherit_id" ref="base.view_users_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<data>
|
<data>
|
||||||
<field name="signature" position="before">
|
<field name="signature" position="before">
|
||||||
<field name="activity_team_ids" widget="many2many_tags"/>
|
<field name="activity_team_ids" widget="many2many_tags" />
|
||||||
</field>
|
</field>
|
||||||
</data>
|
</data>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user