You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

293 lines
14 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Tree view of license-->
<record id="license_view_tree" model="ir.ui.view">
<field name="name">license.view.tree</field>
<field name="model">license</field>
<field name="arch" type="xml">
<tree>
<field name="license_number"/>
<field name="name"/>
<field name="customer_id"/>
<field name="license_types_id"/>
<field name="start_date"/>
<field name="expire_date"/>
<field name="issued_company_id"/>
<field name="company_id"/>
<field name="license_tags_ids" string="Tags"
widget="many2many_tags" optional="hide"
options="{'color_field': 'color'}"/>
<field name="project_id" string="Project" optional="hide"/>
<field name="task_id" string="Task" optional="hide"/>
<field name="product_id" string="Product" optional="hide"/>
<field name="user_id" string="Responsible Person"
optional="hide"/>
<field name="expire_remainder_day"
string="Expire Reminder Day" optional="hide"/>
<field name="state" string="Status" widget="badge"
decoration-info="state == 'new'"
decoration-warning="state == 'expired_soon'"
decoration-danger="state == 'expired'"
decoration-success="state == 'active'"/>
</tree>
</field>
</record>
<!-- Form view of license-->
<record id="license_view_form" model="ir.ui.view">
<field name="name">license.view.form</field>
<field name="model">license</field>
<field name="arch" type="xml">
<form>
<header>
<field name="state" widget="statusbar"/>
<button name="active_license" class="btn btn-primary"
type="object" string="Active"
attrs="{'invisible': [('state', 'not in', 'new')]}">
</button>
</header>
<sheet>
<div class="oe_button_box" name="button_box">
<button name="action_active_license" type="object"
class="certificate-stat-button"
style="color:green;"
icon="fa-archive" string="Active"
attrs="{'invisible': [('state', 'not in', 'active')]}">
</button>
</div>
<h1>
<div>
<field name="license_number"/>
</div>
<div>
<field name="name"/>
</div>
</h1>
<group>
<group>
<field name="customer_id" string="Customer"/>
<field name="license_types_id"
string="License Types"/>
<field name="start_date" string="Start Date"/>
<field name="expire_date"
string="Expired Date"/>
<field name="issued_company_id"
string="Issued By"/>
<field name="license_tags_ids" string="Tags"
widget="many2many_tags"
options="{'color_field': 'color'}"
optional="show"/>
</group>
<group>
<field name="project_id" string="Project"/>
<field name="task_id" string="Task"/>
<field name="product_id" string="Product"/>
<field name="user_id"
string="Responsible Person"/>
<field name="company_id" string="Company"/>
<field name="expire_remainder_day"
string="Expire Reminder Day"/>
<field name="login_user_id" string="Login User"
invisible="1"/>
</group>
</group>
<notebook>
<page string="Other Information">
<group string="Internal Notes"
style="color: midnightblue;font-size: initial;">
<field name="internal_notes" nolabel="1"
colspan="2"
style="color: black;font-size: unset;"/>
</group>
<group string="Description"
style="color: midnightblue;font-size: initial;">
<field name="description" nolabel="1"
colspan="2"
style="color: black;font-size: unset;"/>
</group>
</page>
<page string="Achievements"
style="color: midnightblue;font-size: initial;">
<group string="Achievements"
style="color: midnightblue;font-size: initial;">
<field name="achievements" nolabel="1"
colspan="2"
style="color: black;font-size: unset;"/>
</group>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="message_ids"/>
<field name="activity_ids"/>
</div>
</form>
</field>
</record>
<!-- Search view of license-->
<record id="license_view_search" model="ir.ui.view">
<field name="name">license.view.search</field>
<field name="model">license</field>
<field name="arch" type="xml">
<search>
<field name="license_number"/>
<field name="customer_id"/>
<field name="project_id"/>
<field name="task_id"/>
<filter string="My License" name="my_license"
domain="[('login_user_id', '=', uid)]"
groups="certificate_license_expiry.certificate_license_expiry_group_manager"/>
<group>
<filter string="Expired" name="expired"
domain="[('state', '=', 'expired')]"/>
<filter string="Expired Soon" name="expired_soon"
domain="[('state', '=', 'expired_soon')]"/>
<filter string="Active" name="active"
domain="[('state', '=', 'active')]"/>
<filter string="New" name="new"
domain="[('state', '=', 'new')]"/>
</group>
<group expand="1" string="Group By">
<filter string="Customer" name="customer_id"
context="{'group_by':'customer_id', 'residual_visible':True}"/>
<filter string="State" name="state"
context="{'group_by':'state', 'residual_visible':True}"/>
<filter string="License Type" name="license_types_id"
context="{'group_by':'license_types_id', 'residual_visible':True}"/>
<filter string="Issued By" name="issued_company_id"
context="{'group_by':'issued_company_id', 'residual_visible':True}"/>
<filter string="Project" name="project_id"
context="{'group_by':'project_id', 'residual_visible':True}"/>
<filter string="Task" name="task_id"
context="{'group_by':'task_id', 'residual_visible':True}"/>
<filter string="User" name="user_id"
context="{'group_by':'user_id', 'residual_visible':True}"/>
<filter string="Company" name="company_id"
context="{'group_by':'company_id', 'residual_visible':True}"/>
</group>
</search>
</field>
</record>
<!-- Kanban view of license-->
<record id="license_view_kanban" model="ir.ui.view">
<field name="name">license.view.kanban</field>
<field name="model">license</field>
<field name="arch" type="xml">
<kanban>
<field name="license_number"/>
<field name="name"/>
<field name="start_date" string="Start Date"/>
<field name="expire_date" string="Expired Date"/>
<field name="state"/>
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_click">
<div class="oe_kanban_card oe_kanban_global_click">
<div>
<strong>
<field name="license_number"/>
</strong>
<field name="state" widget="badge"
decoration-info="state == 'new'"
decoration-warning="state == 'expired_soon'"
decoration-danger="state == 'expired'"
decoration-success="state == 'active'"
style="margin-left:190px"/>
</div>
<field name="project_id"/>
<div>
<strong>
<field name="expire_date"
style="color:red"/>
</strong>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<!-- Calendar view of license-->
<record id="license_view_calender" model="ir.ui.view">
<field name="name">license.view.calender</field>
<field name="model">license</field>
<field name="arch" type="xml">
<calendar date_start="expire_date"
string="License Calender"
mode="month" color="customer_id"
event_open_popup="true" quick_add="false">
<field name="license_number"/>
<field name="customer_id" avatar_field="image_128"/>
<field name="start_date"/>
<field name="expire_date"/>
<field name="license_types_id"/>
<field name="issued_company_id" avatar_field="image_128"/>
<field name="project_id" avatar_field="image_128"/>
<field name="task_id" avatar_field="image_128"/>
<field name="product_id" avatar_field="image_128"/>
<field name="user_id"/>
</calendar>
</field>
</record>
<!-- Graph view of license-->
<record id="license_view_graph" model="ir.ui.view">
<field name="name">license.view.graph</field>
<field name="model">license</field>
<field name="arch" type="xml">
<graph string="License Analysis" sample="1">
<field name="name"/>
<field name="start_date" interval="month"/>
<field name="expire_date" interval="month"/>
<field name="license_number"/>
<field name="customer_id"/>
<field name="issued_company_id"/>
<field name="project_id"/>
<field name="task_id"/>
<field name="product_id"/>
</graph>
</field>
</record>
<!-- Tree view of types-->
<record id="license_types_tree" model="ir.ui.view">
<field name="name">license.types.tree</field>
<field name="model">license.types</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field name="license_type" string="License Type"/>
</tree>
</field>
</record>
<!-- Search view of types-->
<record id="license_types_search" model="ir.ui.view">
<field name="name">license.types.search</field>
<field name="model">license.types</field>
<field name="arch" type="xml">
<search>
<field name="license_type" string="License Type"/>
</search>
</field>
</record>
<!-- Tree view of Tags-->
<record id="license_tags_view_tree" model="ir.ui.view">
<field name="name">license.view.tree</field>
<field name="model">license.tags</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field name="license_tags_ids" string="License Tag"/>
<field name="color" string="Color" widget="color_picker"/>
</tree>
</field>
</record>
<!-- Search view of tags-->
<record id="license_tags_view_search" model="ir.ui.view">
<field name="name">license.view.search</field>
<field name="model">license.tags</field>
<field name="arch" type="xml">
<search>
<field name="license_tags_ids" string="License Tag"/>
</search>
</field>
</record>
</odoo>