fix #I8JUHA [app_event_superbar]管理
11
app_event_superbar/__init__.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# please comment follow for produce
|
||||
from . import models
|
||||
from . import controllers
|
||||
|
||||
# hook form install and uninstall
|
||||
|
||||
from .hooks import pre_init_hook
|
||||
from .hooks import post_init_hook
|
||||
from .hooks import uninstall_hook
|
||||
110
app_event_superbar/__manifest__.py
Normal file
@@ -0,0 +1,110 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Created on 2023-10-06
|
||||
# author: 欧度智能,https://www.odooai.cn
|
||||
# email: 300883@qq.com
|
||||
# Copyright (C) 2009~2023 odooAi.cn
|
||||
|
||||
# Odoo16在线用户手册(长期更新)
|
||||
# https://www.odooai.cn/documentation/16.0/zh_CN/index.html
|
||||
|
||||
# Odoo16在线开发者手册(长期更新)
|
||||
# https://www.odooai.cn/documentation/16.0/zh_CN/developer.html
|
||||
|
||||
##############################################################################
|
||||
# Copyright (C) 2009-TODAY odooAi.cn Ltd. https://www.odooai.cn
|
||||
# Author: Ivan Deng,300883@qq.com
|
||||
# You can modify it under the terms of the GNU LESSER
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
|
||||
# See <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# It is forbidden to publish, distribute, sublicense, or sell copies
|
||||
# of the Software or modified copies of the Software.
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
'name': 'App Event browse by stage and starting date',
|
||||
'version': '16.23.11.28',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Base',
|
||||
'website': 'https://www.odooai.cn',
|
||||
'live_test_url': 'https://demo.odooapp.cn',
|
||||
'license': 'OPL-1',
|
||||
'sequence': 2,
|
||||
'price': 0.00,
|
||||
'currency': 'EUR',
|
||||
'images': ['static/description/banner.gif'],
|
||||
'summary': '''
|
||||
Odoo module template. module sample with 170+ widget list. Clone this sample to your name to quick create your odoo addons.
|
||||
Developer reference guides, Developer Tutorials.
|
||||
Sample manifest, .py, .xml views and data. report, action, menu..
|
||||
''',
|
||||
'description': '''
|
||||
Just Rename the sample app to your name to quick create new module.
|
||||
All file follow odoo rule with comments.
|
||||
Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition
|
||||
Odoo Developr rule from here
|
||||
https://www.odooai.cn/documentation/16.0/developer.html
|
||||
1. A full Sample module app of odoo addons. All the code, views, data ,banner, icon and description sample follow the odoo rule.
|
||||
2. Sample manifest file. Including structure and name and description etc, all field sample. Security xml and csv file for role group access rule.
|
||||
Sample icon, banner, index.html, install/uninstall hooks.
|
||||
Follow most odoo rule follow
|
||||
https://www.odooai.cn/documentation/16.0/contributing/development/coding_guidelines.html
|
||||
3. Sample .py models file, for new model and inherit model
|
||||
4. Sample .xml views file for models, with list, kanban, form, search
|
||||
5. Sample controllers file for website data publish and api developer. including how inherit odoo portal home.
|
||||
6. Sample report design file. .py file with how sql define. .xml file for graph and pivot.
|
||||
7. Sample action and menu file. Root menu and menu group and action menu.
|
||||
8. Ui misc sample. Alert like info and special field setup.
|
||||
9. Odoo Widget sample. 170+ widget list document and Frequently Used Sample.
|
||||
10. Quick access odoo developer Tutorials online. Document online for chinese and english. Fast visit in China.
|
||||
11. Multi-language Support. Multi-Company Support.
|
||||
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
|
||||
13. Full Open Source.
|
||||
========== 中文说明
|
||||
1. 一个完整的odoo插件模块应用程序示例,所有代码、视图和数据都遵循odoo规则
|
||||
2. Manifest示例清单文件。包括结构、名称和描述等所有字段样例。安全xml和csv文件用于控制访问规则
|
||||
全部遵循odoo规则 https://www.odooai.cn/documentation/16.0/zh_CN/developer/reference/backend/module.html#reference-module-manifest
|
||||
3. .py 示例文件,包括新模型和继承模型的示例
|
||||
4. .xml 示例视图文件,包括列表、看板、表单、搜索等
|
||||
5. controllers 示例文件,用于门户网站对外数据发布及 api 接口开发。例子包含对 odoo portal 门户的继承处理
|
||||
6. report报告设计文件示例。包括如何定义 sql 生成视图的.py文件,用于 graph 和 pivot的.xml文件。
|
||||
7. action 动作 和 menu 菜单文件示例。
|
||||
8. 特殊Ui样例,包括 Alert role 信息及特殊字段展现设置。
|
||||
9. Odoo Widget 使用指导,包括 170+小部件清单,常用 widget 用法。
|
||||
10.快速访问在线Odoo开发人员教程。
|
||||
11. 多语言支持,多公司支持
|
||||
12. Odoo 17,16,15,14,13,12, 企业版,社区版,在线SaaS.sh版,等全版本支持
|
||||
13. 代码完全开源
|
||||
''',
|
||||
'depends': [
|
||||
'event',
|
||||
'app_web_superbar_pro'
|
||||
],
|
||||
'data': [
|
||||
# please add your file
|
||||
# please comment follow on ur produce odoo
|
||||
# 'security/app_security.xml',
|
||||
# 'security/ir.model.access.csv',
|
||||
'views/event_event_views.xml',
|
||||
# 'views/menu_views.xml',
|
||||
# 'views/website_templates.xml',
|
||||
],
|
||||
'assets': {
|
||||
'web.assets_frontend': [
|
||||
# 'app_/static/src/scss/style.scss',
|
||||
],
|
||||
'web.assets_backend': [
|
||||
# 'app_/static/src/js/*.js',
|
||||
],
|
||||
},
|
||||
'demo': [
|
||||
# 'views/website_templates.xml',
|
||||
],
|
||||
# 'pre_init_hook': 'pre_init_hook',
|
||||
# 'post_init_hook': 'post_init_hook',
|
||||
# 'uninstall_hook': 'uninstall_hook',
|
||||
'installable': True,
|
||||
'application': True,
|
||||
'auto_install': False,
|
||||
}
|
||||
3
app_event_superbar/controllers/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# from . import main
|
||||
25
app_event_superbar/controllers/main.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import http
|
||||
from odoo.addons.portal.controllers.portal import CustomerPortal
|
||||
|
||||
|
||||
class appCustomerPortal(CustomerPortal):
|
||||
|
||||
# Controler sample
|
||||
@http.route('/my/webclient/locale/<string:lang>', type='http', auth="none")
|
||||
def index(self, **kw):
|
||||
return "Hello, world"
|
||||
|
||||
@http.route('/default/default/objects/', auth='public')
|
||||
def list(self, **kw):
|
||||
return http.request.render('default.listing', {
|
||||
'root': '/default/default',
|
||||
'objects': http.request.env['default.default'].search([]),
|
||||
})
|
||||
|
||||
@http.route('/default/default/objects/<model("default.default"):obj>/', auth='public')
|
||||
def object(self, obj, **kw):
|
||||
return http.request.render('default.object', {
|
||||
'object': obj
|
||||
})
|
||||
29
app_event_superbar/hooks.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Created on 2023-10-06
|
||||
# author: 欧度智能,https://www.odooai.cn
|
||||
# email: 300883@qq.com
|
||||
# Copyright (C) 2009~2023 odooAi.cn
|
||||
|
||||
# Odoo16在线用户手册(长期更新)
|
||||
# https://www.odooai.cn/documentation/16.0/zh_CN/index.html
|
||||
|
||||
# Odoo16在线开发者手册(长期更新)
|
||||
# https://www.odooai.cn/documentation/16.0/zh_CN/developer.html
|
||||
|
||||
from odoo import api, SUPERUSER_ID, _
|
||||
|
||||
|
||||
def pre_init_hook(cr):
|
||||
pass
|
||||
# cr.execute("")
|
||||
|
||||
|
||||
def post_init_hook(cr, registry):
|
||||
pass
|
||||
# cr.execute("")
|
||||
|
||||
|
||||
def uninstall_hook(cr, registry):
|
||||
pass
|
||||
# cr.execute("")
|
||||
2
app_event_superbar/i18n/README.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Please follow this tutorial for more guides:
|
||||
https://www.odoo.com/documentation/master/developer/misc/i18n/translations.html
|
||||
15
app_event_superbar/i18n/zh_CN.po
Normal file
@@ -0,0 +1,15 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0+e-20231124\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-11-28 09:01+0000\n"
|
||||
"PO-Revision-Date: 2023-11-28 09:01+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
4
app_event_superbar/models/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of odooAi.cn. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
# from . import product_template
|
||||
26
app_event_superbar/models/product_template.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
##############################################################################
|
||||
# Copyright (C) 2009-TODAY odooai.cn Ltd. https://www.odooai.cn
|
||||
# Author: Ivan Deng,300883@qq.com
|
||||
# You can modify it under the terms of the GNU LESSER
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
|
||||
# See <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# It is forbidden to publish, distribute, sublicense, or sell copies
|
||||
# of the Software or modified copies of the Software.
|
||||
|
||||
# Create on 2023-10-06
|
||||
##############################################################################
|
||||
|
||||
from odoo import models, fields, api, _
|
||||
from odoo.tools.translate import html_translate
|
||||
|
||||
import logging
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
# Template for model inherit
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = 'product.template'
|
||||
|
||||
short_name = fields.Char(string='Short Name', translate=True, readonly=False, copy=True)
|
||||
41
app_event_superbar/security/app_security.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!-- Create new App security category, 创建应用 -->
|
||||
<record model="ir.module.category" id="app_module_category_1">
|
||||
<field name="name">App...</field>
|
||||
<field name="description">Helps you manage your ...</field>
|
||||
<field name="sequence">8</field>
|
||||
</record>
|
||||
<!-- Cretate new App security group, 权限组 -->
|
||||
<!-- User group, 普通用记 -->
|
||||
<record id="group_app_user" model="res.groups">
|
||||
<field name="name">App User</field>
|
||||
<field name="category_id" ref="app_module_category_1"/>
|
||||
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
|
||||
<field name="comment">The user will be able to ...</field>
|
||||
</record>
|
||||
|
||||
<!-- Admin group,管理员,可以配置 -->
|
||||
<record id="group_app_admin" model="res.groups">
|
||||
<field name="name">App Admin</field>
|
||||
<field name="category_id" ref="app_module_category_1"/>
|
||||
<field name="implied_ids" eval="[(4, ref('group_app_user'))]"/>
|
||||
<field name="comment">The user will be able to config ...</field>
|
||||
</record>
|
||||
|
||||
<!-- Auto set erp admin full access,group_erp_manager自动有完整权限 -->
|
||||
<record id="base.group_erp_manager" model="res.groups">
|
||||
<field name="implied_ids" eval="[(4, ref('group_app_admin'))]"/>
|
||||
</record>
|
||||
|
||||
<!-- IR Rules, user can only see my record,记录集权限,用户只能见到自已的记录 -->
|
||||
<!-- <record id="rule_user" model="ir.rule">-->
|
||||
<!-- <field name="name">Users are allowed to access their own record</field>-->
|
||||
<!-- <field name="model_id" ref="model_app_order"/>-->
|
||||
<!-- <field name="domain_force">['|', ('partner_id', 'in', [user.partner_id.id]), ('user_id.id', '=', user.id)]</field>-->
|
||||
<!-- <field name="groups" eval="[(4, ref('base.group_user'))]"/>-->
|
||||
<!-- </record>-->
|
||||
<!--End -->
|
||||
</data>
|
||||
</odoo>
|
||||
1
app_event_superbar/security/ir.model.access.csv
Normal file
@@ -0,0 +1 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
|
BIN
app_event_superbar/static/description/banner.gif
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
app_event_superbar/static/description/banner.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
app_event_superbar/static/description/banner1.png
Normal file
|
After Width: | Height: | Size: 200 KiB |
BIN
app_event_superbar/static/description/demo1.jpg
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
app_event_superbar/static/description/demo10.jpg
Normal file
|
After Width: | Height: | Size: 158 KiB |
BIN
app_event_superbar/static/description/demo2.jpg
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
app_event_superbar/static/description/demo3.jpg
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
app_event_superbar/static/description/demo_controler.jpg
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
app_event_superbar/static/description/demo_form.jpg
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
app_event_superbar/static/description/demo_graph.jpg
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
app_event_superbar/static/description/demo_kanban.jpg
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
app_event_superbar/static/description/demo_list.jpg
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
app_event_superbar/static/description/demo_menu.jpg
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
app_event_superbar/static/description/demo_pivot.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
app_event_superbar/static/description/demo_report.jpg
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
app_event_superbar/static/description/demo_search.jpg
Normal file
|
After Width: | Height: | Size: 93 KiB |
BIN
app_event_superbar/static/description/demo_ui.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
app_event_superbar/static/description/demo_use.jpg
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
app_event_superbar/static/description/demo_widget_list.jpg
Normal file
|
After Width: | Height: | Size: 153 KiB |
BIN
app_event_superbar/static/description/demo_widget_use.jpg
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
app_event_superbar/static/description/icon.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
427
app_event_superbar/static/description/index.html
Normal file
@@ -0,0 +1,427 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
# Copyright (C) 2009~2023 odooAi.cn
|
||||
##############################################################################
|
||||
-->
|
||||
<html>
|
||||
<!-- begin title-->
|
||||
<section class="oe_container container o_cc o_cc2">
|
||||
<h1 class="text-center bg-warning text-white pt24 pb24">Odoo Module Template. App sample with widget. </h1>
|
||||
<h3 class="text-center">Odoo开发规范模板,Widget清单与使用样例</h3>
|
||||
<h4 class="text-center">Sample Description of app. video and brief and detail demo snap and text</h4>
|
||||
</section>
|
||||
<!-- end title-->
|
||||
|
||||
<!-- begin video-->
|
||||
<section class="s_text_block o_colored_level pt16 pb16">
|
||||
<div class="container s_allow_columns">
|
||||
<p class="text-center bg-info text-white pt16 pb16">Just Clone this sample to your name to quick create your odoo addons</p>
|
||||
<h2 class="text-center bg-info text-white pt16 pb16">- Sample Local Video. Change to your video -</h2>
|
||||
</div>
|
||||
<!-- local video-->
|
||||
<div class="container">
|
||||
<div class="row s_nb_column_fixed">
|
||||
<div class="o_colored_level col-lg-12">
|
||||
<video controls="controls" loop="1" preload="auto" muted autoplay src="odoo17.mp4" class="o_video" style="width: 100%; height: 100%;">
|
||||
<source type="video/mp4" src="odoo17.mp4"/>
|
||||
<a href="">
|
||||
Download the demo video.
|
||||
</a>
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="oe_container container s_text_block pt24 pb24 o_colored_level" data-snippet="s_text_block" data-name="文本">
|
||||
<!-- remote video-->
|
||||
<div class="s_allow_columns container">
|
||||
<div class="container s_allow_columns">
|
||||
<h2 class="text-center bg-info text-white pt16 pb16">- Sample Video on youtube remote. Change to your video -</h2>
|
||||
</div>
|
||||
<div data-oe-expression="//www.youtube.com/embed/whnmkTWsQkQ?rel=0&autoplay=0" class="media_iframe_video">
|
||||
<div class="css_editable_mode_display"></div>
|
||||
<div class="media_iframe_video_size"></div>
|
||||
<iframe src="//www.youtube.com/embed/whnmkTWsQkQ?rel=0&autoplay=1" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
|
||||
</div>
|
||||
<p class="o_default_snippet_text"><br></p>
|
||||
</div>
|
||||
<div class="oe_row text-center">
|
||||
<span>Click above Play. or go </span>
|
||||
<a href="https://youtu.be/whnmkTWsQkQ" target="_blank" role="button" class="btn btn-link btn-lg">Youtube Video of odoo Advance Search Superbar</a>
|
||||
</div>
|
||||
<div class="oe_row text-center">
|
||||
<p class="o_default_snippet_text">Demo Gif Animation if you can not get video</p>
|
||||
<img class="oe_demo oe_screenshot img img-fluid" src="banner.gif">
|
||||
</div>
|
||||
</section>
|
||||
<!-- end video-->
|
||||
|
||||
<!-- begin grid features-->
|
||||
<section class="oe_container container s_text_block o_colored_level pt16 pb16">
|
||||
<h2 class="text-center bg-info text-white pt16 pb16">- Features -</h2>
|
||||
</section>
|
||||
<section class="s_features_grid pt24 pb24 o_colored_level" data-snippet="s_features_grid" data-name="Features Grid">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 s_col_no_bgcolor pb24">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">1</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
A full Sample module app of odoo addons.
|
||||
</h4>
|
||||
<p>All the code, views, data ,banner, icon and description sample follow the odoo rule.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box">
|
||||
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">2</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Sample manifest file.
|
||||
</h4>
|
||||
<p>Including structure and name and description etc, all field sample. Security xml and csv file for role group access rule. Follow most odoo rule follow </p>
|
||||
<p>https://www.odooai.cn/documentation/16.0/contributing/development/coding_guidelines.html</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">3</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Sample .py models file
|
||||
</h4>
|
||||
<p>for new model and inherit model<br></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">4</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Sample .xml views file for models
|
||||
</h4>
|
||||
<p>Sample xml views file for models, with list, kanban, form, search<br></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">5</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Sample controllers file
|
||||
</h4>
|
||||
<p> for website data publish and api developer. including how inherit odoo portal home<br></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 s_col_no_bgcolor pb24">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa bg-primary text-white s_features_grid_icon rounded fa-2x">6</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Sample report design file
|
||||
</h4>
|
||||
<p> .py file with how sql define. .xml file for graph and pivot</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">7</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Sample action and menu file
|
||||
</h4>
|
||||
<p>Root menu and menu group and action menu</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">8</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Ui misc sample
|
||||
</h4>
|
||||
<p>Alert like info and special field setup.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">9</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Odoo Widget sample
|
||||
</h4>
|
||||
<p>170+ widget list document and Frequently Used Sample.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">10</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Quick access odoo developer Tutorials online.
|
||||
</h4>
|
||||
<p>Document online for chinese and english. Fast visit in China.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12 pt16 pb16 o_colored_level" data-name="Box" data-tilt-feature="">
|
||||
<i class="fa fa-2x rounded bg-primary text-white s_features_grid_icon">11</i>
|
||||
<div class="s_features_grid_content">
|
||||
<h4 class="pt16">
|
||||
Full Open Source.Multi-language Support. Multi-Company Support
|
||||
</h4>
|
||||
<p>Support Odoo 16,15,14,13,12, Enterprise and Community and odoo.sh Edition.</p>
|
||||
<p>代码完全开源,多语言支持,多公司支持。Odoo 16,15,14,13,12, 企业版,社区版,在线SaaS.sh版,等全版本支持</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end grid features-->
|
||||
|
||||
<!-- begin snapshot-->
|
||||
<!-- quick demo-->
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h2 class="bg-warning text-center pt8 pb8">So Easy to navigator and search any data.</h2>
|
||||
<h4 class="oe_slogan"> </h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src=".jpg"/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end quick demo-->
|
||||
|
||||
<section class="s_text_block o_colored_level pt16 pb16">
|
||||
<div class="container s_allow_columns">
|
||||
<h2 class="text-center bg-info text-white pt16 pb16">- Feature Guide -</h2>
|
||||
</div>
|
||||
</section>
|
||||
<section class="s_table_of_content pt24 pb24 o_cc o_cc1 o_colored_level" data-snippet="s_table_of_content" data-name="Table of Content">
|
||||
<div class="container">
|
||||
<div class="row s_nb_column_fixed">
|
||||
<div class="col-lg-2 col-md-3 s_table_of_content_navbar_wrap s_table_of_content_navbar_sticky s_table_of_content_vertical_navbar d-print-none d-none d-lg-block o_not_editable o_cc o_cc1 o_colored_level"
|
||||
data-name="Navbar">
|
||||
<div class="s_table_of_content_navbar list-group o_no_link_popover" style="top: 82px; max-height: calc(100vh - 102px);">
|
||||
<a href="#toc_01" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0 active">
|
||||
A full Sample app
|
||||
</a>
|
||||
<a href="#toc_02" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Sample manifest
|
||||
</a>
|
||||
<a href="#toc_03" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Sample .py
|
||||
</a>
|
||||
<a href="#toc_04" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Sample .xml
|
||||
</a>
|
||||
<a href="#toc_05" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Sample controllers
|
||||
</a>
|
||||
<a href="#toc_06" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Sample report
|
||||
</a>
|
||||
<a href="#toc_07" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Sample action and menu
|
||||
</a>
|
||||
<a href="#toc_08" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Ui misc sample
|
||||
</a>
|
||||
<a href="#toc_09" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Odoo Widget sample
|
||||
</a>
|
||||
<a href="#toc_10" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Quick developer Tutorials
|
||||
</a>
|
||||
<a href="#toc_11" class="table_of_content_link list-group-item list-group-item-action py-2 border-0 rounded-0">
|
||||
Multi-language,Multi-Company
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-10 col-md9 s_table_of_content_main oe_structure oe_empty o_colored_level" data-name="Content">
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_01">
|
||||
A full Sample module app of odoo addons.
|
||||
</h3>
|
||||
<h4 class="oe_slogan">All the code, views, data ,banner, icon and description sample follow the odoo rule.</h4>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo1.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_02">
|
||||
Sample manifest file.
|
||||
</h3>
|
||||
<h4 class="oe_slogan">Including structure and name and description etc, all field sample. </h4>
|
||||
<p>Security xml and csv file for role group access rule.
|
||||
Sample icon, banner, index.html, install/uninstall hooks.
|
||||
Follow most odoo rule follow</p>
|
||||
<p>https://www.odooai.cn/documentation/16.0/contributing/development/coding_guidelines.html</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo2.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_03">
|
||||
Sample .py models file, for new model and inherit model
|
||||
</h3>
|
||||
<p>Please comment the inherit .py file of product_template.py in produce odoo.</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo3.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_04">
|
||||
Sample .xml views file for models, with list, kanban, form, search
|
||||
</h3>
|
||||
<p>List</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_list.jpg">
|
||||
</div>
|
||||
<p>Kanban</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_kanban.jpg">
|
||||
</div>
|
||||
<p>Form</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_form.jpg">
|
||||
</div>
|
||||
<p>Search</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_search.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_05">
|
||||
Sample controllers file for website data publish and api developer
|
||||
</h3>
|
||||
<p>including how inherit odoo portal home.</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_controler.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_06">
|
||||
Sample report design file.
|
||||
</h3>
|
||||
<p> .py file with how sql define.</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_report.jpg">
|
||||
</div>
|
||||
<p> .xml file for graph and pivot.</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_graph.jpg">
|
||||
</div>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_pivot.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_07">
|
||||
Sample action and menu file.
|
||||
</h3>
|
||||
<p>Root menu and menu group and action menu.</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_menu.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_08">
|
||||
Ui misc sample. Alert like info and special field setup.
|
||||
</h3>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_ui.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_09">
|
||||
Odoo Widget sample.
|
||||
</h3>
|
||||
<p>170+ widget list document</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_widget_list.jpg">
|
||||
</div>
|
||||
<p> Frequently Used Sample.</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_widget_use.jpg">
|
||||
</div>
|
||||
</section>
|
||||
<section class="pb16 o_colored_level" style="background-image: none;">
|
||||
<h3 data-anchor="true" id="toc_10">
|
||||
Quick access odoo developer Tutorials online.
|
||||
</h3>
|
||||
<p>Click alert info to visit. Document online for chinese and english. Fast visit in China.</p>
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo10.jpg">
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end snapshot-->
|
||||
|
||||
<!-- begin free-->
|
||||
<!-- end free-->
|
||||
|
||||
<!-- begin howto-->
|
||||
<section class="oe_container container s_text_block o_colored_level pt16 pb16">
|
||||
<h2 class="text-center bg-info text-white pt16 pb16">- How to setup and use -</h2>
|
||||
<h3>This app need no extra module. The price already included</h3>
|
||||
</section>
|
||||
<section class="oe_container container">
|
||||
<div class="oe_row oe_spaced">
|
||||
<h4 class="pt16">
|
||||
1. Buy and Install
|
||||
</h4>
|
||||
<h4 class="pt16">
|
||||
2. Clone this sample and rename to your module name to quick create your odoo addons.
|
||||
</h4>
|
||||
<h4 class="pt16">3. Check the demo we create</h4>
|
||||
<div class="row">
|
||||
<div class="oe_demo oe_screenshot img img-fluid">
|
||||
<img src="demo_use.jpg">
|
||||
</div>
|
||||
</div>
|
||||
<h4 class="pt16">4. More information in our FAQ</h4>
|
||||
<div class="row">
|
||||
https://www.odooai.cn/faq
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end howto-->
|
||||
|
||||
<!-- begin upsell-->
|
||||
<!-- end upsell-->
|
||||
|
||||
<!-- begin support-->
|
||||
<section class="container oe_dark">
|
||||
<div class="oe_row oe_spaced text-center">
|
||||
<div class="row">
|
||||
<h2 class="oe_slogan">Technical Help & Support</h2>
|
||||
</div>
|
||||
<div class="col-md-12 pad0">
|
||||
<div class="oe_mt16">
|
||||
<p><h4 class="pt16">
|
||||
For any type of technical help & support requests, Feel free to contact us</h4></p>
|
||||
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:odoo@china.com"><span
|
||||
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||
<i class="fa fa-envelope"></i> odoo@china.com</a>
|
||||
<p><h4 class="pt16">
|
||||
Via QQ: 300883 (App user would not get QQ or any other IM support. Only for odoo project customize.)</h4></p>
|
||||
<a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;"
|
||||
class="btn btn-warning btn-lg" rel="nofollow" href="mailto:300883@qq.com"><span
|
||||
style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span>
|
||||
<i class="fa fa-envelope"></i> 300883@qq.com</a>
|
||||
</div>
|
||||
<div class="oe_mt16">
|
||||
<h4 class="pt16">Visit our website for more support.</h4>
|
||||
<h4 class="pt16">https://www.odooai.cn</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- end support-->
|
||||
</html>
|
||||
BIN
app_event_superbar/static/description/odoo17.mp4
Normal file
BIN
app_event_superbar/static/description/qr.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
app_event_superbar/static/img/icon_odooai.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
app_event_superbar/static/img/icon_odooapp.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
app_event_superbar/static/img/logo_odooai.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
0
app_event_superbar/static/src/js/odooai.cn
Normal file
0
app_event_superbar/static/src/scss/odooai.cn
Normal file
18
app_event_superbar/static/src/scss/style.scss
Normal file
@@ -0,0 +1,18 @@
|
||||
// scss sample, 样例navbar在下方的特殊处理
|
||||
.o_web_client {
|
||||
//userMenu
|
||||
.o_burger_menu {
|
||||
width: 80%;
|
||||
.o_burger_menu_topbar {
|
||||
height: var(--o-navbar-height);
|
||||
}
|
||||
&.flex-column {
|
||||
flex-direction: column-reverse!important;
|
||||
}
|
||||
.oi:before, .fa:before, .dropdown-toggle {
|
||||
font-size: 2em;
|
||||
line-height: var(--o-navbar-height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
0
app_event_superbar/static/src/xml/odooai.cn
Normal file
17
app_event_superbar/views/event_event_views.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Search -->
|
||||
<record id="app_event_event_search_superbar" model="ir.ui.view">
|
||||
<field name="name">app.event.event.search.superbar</field>
|
||||
<field name="model">event.event</field>
|
||||
<field name="inherit_id" ref="event.view_event_search"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//search" position="inside">
|
||||
<searchpanel view_types="list,kanban,pivot,graph,calendar">
|
||||
<field name="stage_id"/>
|
||||
<field name="date_begin"/>
|
||||
</searchpanel>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
34
app_event_superbar/views/menu_views.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- Sample,样例,-->
|
||||
<!-- Root,根菜单,This Menu Item will appear in the Upper bar, That's why It needs NO parent or action -->
|
||||
<menuitem id="module_new_root" name="Module New Root"
|
||||
web_icon="app_sample,static/description/icon.png"
|
||||
groups="group_app_user"
|
||||
sequence="90"/>
|
||||
|
||||
<!-- Category,菜单分组,This Menu Item Must have a parent -->
|
||||
<menuitem id="module_new_cat" name="Module New Category"
|
||||
parent="module_new_root"
|
||||
sequence="91"/>
|
||||
|
||||
<!-- Action,操作菜单,This Menu Item must have a parent and an action -->
|
||||
<!-- model.new Menu -->
|
||||
<menuitem id="menu_model_new" name="Model New"
|
||||
parent="module_new_cat"
|
||||
sequence="92"
|
||||
action="action_model_new"/>
|
||||
|
||||
<menuitem id="menu_model_new_report" name="Model New Report"
|
||||
parent="module_new_cat"
|
||||
sequence="93"
|
||||
action="action_model_new_report"/>
|
||||
|
||||
<!-- Exist Menu,改当前存在菜单,Change exist menu, use context if you are using multi language-->
|
||||
<!-- <record id="Exist_ID_menu" model="ir.ui.menu" context="{'lang': 'zh_CN}">-->
|
||||
<!-- <field name="groups_id"-->
|
||||
<!-- eval="[(6,0,[ref('Exist_ID')])]"/>-->
|
||||
<!-- </record>-->
|
||||
</data>
|
||||
</odoo>
|
||||
24
app_event_superbar/views/website_templates.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- sample add same logo-->
|
||||
<template id="option_header_brand_logo" inherit_id="website.option_header_brand_logo">
|
||||
<xpath expr="//a" position="after">
|
||||
<a href="/" t-attf-class="navbar-brand logo #{_link_class}">
|
||||
<span t-if="website.logo" class="d-lg-none"
|
||||
t-field="website.logo" t-options="{'widget': 'image', 'width': auto, 'height': 40}" role="img"
|
||||
t-att-aria-label="'sample Logo of %s' % website.name" t-att-title="website.name"/>
|
||||
</a>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- not use from v15-->
|
||||
<!-- <template id="assets_backend" name="app_web_supero2m assets" inherit_id="web.assets_backend">-->
|
||||
<!-- <xpath expr="//link[last()]" position="after">-->
|
||||
<!-- <link rel="stylesheet" type="text/scss" href="/app_web_supero2m/static/src/scss/app.scss"/>-->
|
||||
<!-- </xpath>-->
|
||||
<!-- <xpath expr="script[last()]" position="after">-->
|
||||
<!-- <script type="text/javascript" src="/app_web_supero2m/static/src/js/list_renderer.js"/>-->
|
||||
<!-- </xpath>-->
|
||||
<!-- </template>-->
|
||||
</odoo>
|
||||