mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update odoo customize
This commit is contained in:
@@ -22,12 +22,15 @@
|
||||
|
||||
{
|
||||
'name': 'App Web Responsive Fullwidth (form view full width)',
|
||||
'version': '13.19.11.01',
|
||||
'version': '16.23.02.19',
|
||||
'category': 'web',
|
||||
'author': 'Sunpop.cn',
|
||||
'website': 'https://www.sunpop.cn',
|
||||
'license': 'LGPL-3',
|
||||
'sequence': 2,
|
||||
"price": 18.00,
|
||||
"currency": "EUR",
|
||||
'images': ['static/description/banner.png'],
|
||||
'summary': """
|
||||
Form view Responsive full width (fullwidth). Ready for small, medium, large, extra large screen.Ready for enterprise and communicate version.
|
||||
""",
|
||||
@@ -38,16 +41,12 @@
|
||||
'depends': [
|
||||
'web'
|
||||
],
|
||||
'data': [
|
||||
'views/template_view.xml',
|
||||
],
|
||||
'qweb': [
|
||||
'static/src/xml/*.xml',
|
||||
],
|
||||
"price": 18.00,
|
||||
"currency": "EUR",
|
||||
|
||||
'images': ['static/description/banner.png'],
|
||||
'data': [],
|
||||
'assets': {
|
||||
'web.assets_backend': [
|
||||
('after', 'web/static/src/views/**/*', 'app_web_fullwidth/static/src/scss/app_style_after.scss'),
|
||||
],
|
||||
},
|
||||
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
|
||||
60
app_web_fullwidth/static/src/scss/app_style_after.scss
Normal file
60
app_web_fullwidth/static/src/scss/app_style_after.scss
Normal file
@@ -0,0 +1,60 @@
|
||||
//xs: 0,
|
||||
//vsm: 475px,
|
||||
//sm: 576px,
|
||||
//md: 768px,
|
||||
//lg: 992px,
|
||||
//xl: 1200px,
|
||||
//xxl: 1534px,
|
||||
|
||||
//16 是在 xxl 才 flex row,故不需要再特殊处理了
|
||||
|
||||
/*
|
||||
sheet全宽
|
||||
*/
|
||||
@media (min-width: 576px) {
|
||||
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
|
||||
max-width: 98%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
|
||||
max-width: 98%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
|
||||
max-width: 98%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
|
||||
max-width: 98%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1400px) {
|
||||
.o_form_view .o_form_view_container .o_form_sheet_bg .o_form_sheet {
|
||||
max-width: 98%;
|
||||
}
|
||||
}
|
||||
|
||||
//xs: 0,
|
||||
//vsm: 475px,
|
||||
//sm: 576px,
|
||||
//md: 768px,
|
||||
//lg: 992px,
|
||||
//xl: 1200px,
|
||||
//xxl: 1534px,
|
||||
|
||||
//debug model 时处理
|
||||
.modal-lg {
|
||||
.o_debug_manager {
|
||||
.dropdown-menu-right {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
//xs: 0,
|
||||
//vsm: 475px,
|
||||
//sm: 576px,
|
||||
//md: 768px,
|
||||
//lg: 992px,
|
||||
//xl: 1200px,
|
||||
//xxl: 1534px,
|
||||
|
||||
/*
|
||||
sheet全宽
|
||||
*/
|
||||
@media (min-width: 576px) {
|
||||
.o_form_view .o_form_sheet_bg > .o_form_sheet {
|
||||
max-width: 98% !important;
|
||||
}
|
||||
}
|
||||
//将原来 768时的 flex 调整为1200才flex
|
||||
.o_form_view {
|
||||
@include media-breakpoint-up(md) {
|
||||
display: block;
|
||||
}
|
||||
@include media-breakpoint-up(xl) {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.o_form_view .o_form_sheet_bg > .o_form_sheet {
|
||||
max-width: 98% !important;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.o_form_view .o_form_sheet_bg > .o_form_sheet {
|
||||
max-width: 960px !important;
|
||||
}
|
||||
.o_content .o_view_controller > div, .modal-content .o_view_controller > div {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1534px) {
|
||||
.o_form_view .o_form_sheet_bg > .o_form_sheet {
|
||||
max-width: 98% !important;
|
||||
}
|
||||
}
|
||||
//xs: 0,
|
||||
//vsm: 475px,
|
||||
//sm: 576px,
|
||||
//md: 768px,
|
||||
//lg: 992px,
|
||||
//xl: 1200px,
|
||||
//xxl: 1534px,
|
||||
|
||||
/*
|
||||
不将chatter显示在右边,form全宽
|
||||
*/
|
||||
//将原来 768时的 flex 调整为一直不flex
|
||||
.o_form_view {
|
||||
@include media-breakpoint-up(md) {
|
||||
display: block;
|
||||
}
|
||||
@include media-breakpoint-up(xl) {
|
||||
display: block;
|
||||
.o_form_sheet_bg > .o_form_sheet {
|
||||
max-width: 98% !important;
|
||||
}
|
||||
}
|
||||
@include media-breakpoint-up(xxl) {
|
||||
display: block;
|
||||
.oe_chatter {
|
||||
width: auto;
|
||||
max-width: 1474px;
|
||||
}
|
||||
}
|
||||
.o_form_sheet_bg {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
//debug model 时处理
|
||||
.modal-lg {
|
||||
.o_debug_manager {
|
||||
.dropdown-menu-right {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<template id="assets_backend" name="app_web_fullwidth asset" inherit_id="web.assets_backend">
|
||||
<xpath expr="//link[last()]" position="after">
|
||||
<link rel="stylesheet" type="text/scss" href="/app_web_fullwidth/static/src/scss/style.scss"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user