mirror of
https://github.com/bringout/oca-web.git
synced 2026-04-18 12:52:00 +02:00
Add oca-web submodule with 68 web modules
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
af56672c08
commit
53fddf87c8
2469 changed files with 101716 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<menuitem
|
||||
id="menu_tile_configuration"
|
||||
name="Overview Settings"
|
||||
parent="spreadsheet_dashboard.spreadsheet_dashboard_menu_configuration"
|
||||
sequence="160"
|
||||
/>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="action_category_2_tile" model="ir.actions.act_window">
|
||||
<field name="name">Dashboard Items</field>
|
||||
<field name="res_model">tile.tile</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="context">{'search_default_category_id': active_id}</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_tile_category_form">
|
||||
<field name="model">tile.category</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button
|
||||
class="oe_stat_button"
|
||||
type="action"
|
||||
name="%(web_dashboard_tile.action_category_2_tile)d"
|
||||
attrs="{'invisible': [('tile_qty', '=', 0)]}"
|
||||
icon="fa-list"
|
||||
>
|
||||
<field string="Items" name="tile_qty" widget="statinfo" />
|
||||
</button>
|
||||
</div>
|
||||
<widget
|
||||
name="web_ribbon"
|
||||
title="Archived"
|
||||
bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
/>
|
||||
<div class="oe_title">
|
||||
<label for="name" class="oe_edit_only" />
|
||||
<h1><field name="name" required="1" /></h1>
|
||||
</div>
|
||||
<group string="Technical Informations">
|
||||
<field name="active" invisible="1" />
|
||||
<field name="menu_id" />
|
||||
<field name="action_id" />
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_tile_category_tree">
|
||||
<field name="model">tile.category</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree decoration-muted="(active == False)">
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="name" />
|
||||
<field name="tile_qty" />
|
||||
<field name="active" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_tile_category">
|
||||
<field name="name">Dashboard Categories</field>
|
||||
<field name="res_model">tile.category</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="context">{'active_test': False}</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_tile_category"
|
||||
parent="menu_tile_configuration"
|
||||
action="action_tile_category"
|
||||
sequence="160"
|
||||
/>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,231 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_tile_tile_search" model="ir.ui.view">
|
||||
<field name="model">tile.tile</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="name" />
|
||||
<field name="category_id" />
|
||||
<field name="model_id" />
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_tile_tile_tree" model="ir.ui.view">
|
||||
<field name="model">tile.tile</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="sequence" widget="handle" />
|
||||
<field name="name" />
|
||||
<field name="category_id" />
|
||||
<field name="model_id" />
|
||||
<field name="primary_function" />
|
||||
<field name="primary_field_id" />
|
||||
<field name="secondary_function" />
|
||||
<field name="secondary_field_id" />
|
||||
<field name="user_id" />
|
||||
<field name="group_ids" />
|
||||
<field name="background_color" widget="color" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_tile_tile_form" model="ir.ui.view">
|
||||
<field name="model">tile.tile</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<field name="model_name" invisible="1" />
|
||||
<sheet>
|
||||
<h1>
|
||||
<field name="name" />
|
||||
</h1>
|
||||
<group col="4" string="Display">
|
||||
<field name="category_id" colspan="4" />
|
||||
<field name="background_color" widget="color" />
|
||||
<field name="font_color" widget="color" />
|
||||
</group>
|
||||
<group col="4" string="Technical Informations">
|
||||
<field name="model_id" />
|
||||
<field name="action_id" />
|
||||
<field
|
||||
name="domain"
|
||||
colspan="4"
|
||||
widget="ace"
|
||||
option="{'mode': 'python'}"
|
||||
/>
|
||||
<field
|
||||
name="domain_error"
|
||||
attrs="{'invisible':[('domain_error','=',False)]}"
|
||||
nolabel="1"
|
||||
colspan="4"
|
||||
/>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Settings">
|
||||
<group string="Main Value">
|
||||
<group>
|
||||
<field name="primary_function" />
|
||||
<field
|
||||
name="primary_field_id"
|
||||
attrs="{
|
||||
'invisible':[('primary_function','in',[False,'count'])],
|
||||
'required':[('primary_function','not in',[False,'count'])],
|
||||
}"
|
||||
/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="primary_format" />
|
||||
<field name="hide_if_null" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="primary_helper" />
|
||||
<field name="primary_value" />
|
||||
<field
|
||||
name="primary_formated_value"
|
||||
attrs="{'invisible':[('primary_value','=',False)]}"
|
||||
/>
|
||||
</group>
|
||||
<group>
|
||||
<field
|
||||
name="primary_error"
|
||||
attrs="{'invisible': [('primary_error', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Secondary Value">
|
||||
<group>
|
||||
<field name="secondary_function" />
|
||||
<field
|
||||
name="secondary_field_id"
|
||||
attrs="{
|
||||
'invisible':[('secondary_function','in',[False,'count'])],
|
||||
'required':[('secondary_function','not in',[False,'count'])],
|
||||
}"
|
||||
/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="secondary_format" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="secondary_helper" />
|
||||
<field name="secondary_value" />
|
||||
<field
|
||||
name="secondary_formated_value"
|
||||
attrs="{'invisible':[('secondary_value','=',False)]}"
|
||||
/>
|
||||
</group>
|
||||
<group>
|
||||
<field
|
||||
name="secondary_error"
|
||||
attrs="{'invisible': [('secondary_error', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Security">
|
||||
<field name="group_ids" />
|
||||
<field name="user_id" />
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_tile_tile_kanban" model="ir.ui.view">
|
||||
<field name="model">tile.tile</field>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<kanban edit="false" create="false">
|
||||
<field name="name" />
|
||||
<field name="domain" />
|
||||
<field name="model_id" />
|
||||
<field name="action_id" />
|
||||
<field name="background_color" />
|
||||
<field name="font_color" />
|
||||
<field name="primary_function" />
|
||||
<field name="primary_helper" />
|
||||
<field name="secondary_function" />
|
||||
<field name="secondary_helper" />
|
||||
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div
|
||||
t-attf-class="oe_dashboard_tile oe_kanban_global_click"
|
||||
t-attf-style="background-color:#{record.background_color.raw_value}"
|
||||
>
|
||||
<div class="oe_kanban_content">
|
||||
<a
|
||||
type="object"
|
||||
name="open_link"
|
||||
args="[]"
|
||||
t-attf-style="color:#{record.font_color.raw_value};"
|
||||
>
|
||||
<div
|
||||
style="height:100%;"
|
||||
t-att-class="record.secondary_function.raw_value and 'with_secondary' or 'simple'"
|
||||
>
|
||||
<div class="tile_label">
|
||||
<field name="name" />
|
||||
</div>
|
||||
<div
|
||||
class="tile_primary_value"
|
||||
t-att-title="record.primary_helper.raw_value"
|
||||
>
|
||||
<t
|
||||
t-set="l"
|
||||
t-value="record.primary_formated_value.raw_value.length"
|
||||
/>
|
||||
<t
|
||||
t-set="s"
|
||||
t-value="l>=12 and 35 or l>=10 and 45 or l>=8 and 55 or l>=6 and 75 or l>4 and 85 or 100"
|
||||
/>
|
||||
<span
|
||||
t-attf-style="font-size: #{s}%;"
|
||||
><field
|
||||
name="primary_formated_value"
|
||||
/></span>
|
||||
</div>
|
||||
<div
|
||||
class="tile_secondary_value"
|
||||
t-att-title="record.secondary_helper.raw_value"
|
||||
>
|
||||
<span><field
|
||||
name="secondary_formated_value"
|
||||
/></span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="oe_clear" />
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_tile_tile">
|
||||
<field name="name">Dashboard Items</field>
|
||||
<field name="res_model">tile.tile</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_tile_tile"
|
||||
parent="menu_tile_configuration"
|
||||
action="action_tile_tile"
|
||||
sequence="161"
|
||||
/>
|
||||
|
||||
<!-- Root menu item that will contains all the sub menu entries
|
||||
that contains tiles -->
|
||||
<menuitem
|
||||
id="menu_dashboard_tile"
|
||||
parent="spreadsheet_dashboard.spreadsheet_dashboard_menu_root"
|
||||
name="Overview"
|
||||
sequence="0"
|
||||
/>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue