[IMP] removing fancy group
This commit is contained in:
@@ -43,7 +43,6 @@ Notes can be found in the 'Home' menu.
|
||||
'mail',
|
||||
],
|
||||
'data': [
|
||||
'security/note_security.xml',
|
||||
'security/ir.rule.xml',
|
||||
'security/ir.model.access.csv',
|
||||
'note_data.xml',
|
||||
|
||||
+1
-2
@@ -172,12 +172,11 @@ class note_note(osv.osv):
|
||||
offset=offset, limit=limit, context=context, orderby=orderby,lazy=lazy)
|
||||
|
||||
|
||||
#upgrade config setting page to configure pad, fancy and tags mode
|
||||
#upgrade config setting page to configure pad
|
||||
class note_base_config_settings(osv.osv_memory):
|
||||
_inherit = 'base.config.settings'
|
||||
_columns = {
|
||||
'module_note_pad': fields.boolean('Use collaborative pads (etherpad)'),
|
||||
'group_note_fancy': fields.boolean('Use fancy layouts for notes', implied_group='note.group_note_fancy'),
|
||||
}
|
||||
|
||||
class res_users(osv.Model):
|
||||
|
||||
@@ -54,9 +54,7 @@
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
|
||||
<t t-set="record.group_fancy" t-value="1" groups="note.group_note_fancy"/>
|
||||
|
||||
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_global_click_edit oe_semantic_html_override oe_kanban_card #{record.group_fancy==1 ? 'oe_kanban_card_fancy' : ''}">
|
||||
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_global_click_edit oe_semantic_html_override oe_kanban_card">
|
||||
<div class="oe_dropdown_kanban oe_dropdown_toggle">
|
||||
<!-- dropdown menu -->
|
||||
<i class="fa fa-bars fa-lg"/>
|
||||
@@ -154,10 +152,6 @@
|
||||
<field name="module_note_pad" class="oe_inline"/>
|
||||
<label for="module_note_pad"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="group_note_fancy" class="oe_inline"/>
|
||||
<label for="group_note_fancy"/>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
</xpath>
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="group_note_fancy" model="res.groups">
|
||||
<field name="name">Notes / Fancy mode</field>
|
||||
<field name="category_id" ref="base.module_category_hidden"/>
|
||||
</record>
|
||||
|
||||
<record id="base.group_user" model="res.groups">
|
||||
<field name="implied_ids" eval="[(4, ref('group_note_fancy'))]"/>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -1,122 +1,13 @@
|
||||
@charset "utf-8";
|
||||
.oe_kanban_column .note_text_line_through {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
text-decoration: line-through; }
|
||||
|
||||
.openerp .oe_form .oe_pad.oe_memo {
|
||||
width: auto;
|
||||
}
|
||||
width: auto; }
|
||||
.openerp .oe_form .oe_form_field.oe_memo {
|
||||
margin: 0;
|
||||
padding: 0px;
|
||||
width: 100%;
|
||||
min-height: 200px;
|
||||
}
|
||||
.openerp .oe_form .oe_form_field.oe_memo .cleditorMain {
|
||||
border: none;
|
||||
padding: 0px;
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_0 {
|
||||
box-shadow: 0px 4px 9px rgba(48, 48, 48, 0.15);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_1 {
|
||||
box-shadow: 0px 4px 9px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_2 {
|
||||
box-shadow: 0px 4px 9px rgba(48, 0, 0, 0.15);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_3 {
|
||||
box-shadow: 0px 4px 9px rgba(97, 93, 0, 0.16);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_4 {
|
||||
box-shadow: 0px 4px 9px rgba(77, 128, 0, 0.17);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_5 {
|
||||
box-shadow: 0px 4px 9px rgba(0, 88, 11, 0.15);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_6 {
|
||||
box-shadow: 0px 4px 9px rgba(0, 80, 95, 0.15);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_7 {
|
||||
box-shadow: 0px 4px 9px rgba(3, 13, 133, 0.18);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_8 {
|
||||
box-shadow: 0px 4px 9px rgba(56, 0, 128, 0.15);
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_notes .oe_kanban_card_fancy.oe_kanban_color_9 {
|
||||
box-shadow: 0px 4px 9px rgba(102, 0, 116, 0.15);
|
||||
}
|
||||
.openerp .oe_kanban_record .oe_kanban_card_fancy {
|
||||
text-shadow: none;
|
||||
border-radius: 2px;
|
||||
padding: 8px;
|
||||
margin-left: 3px;
|
||||
margin-right: 3px;
|
||||
padding-bottom: 8px;
|
||||
margin-bottom: 10px;
|
||||
-webkit-transform: rotate(-2deg);
|
||||
-o-transform: rotate(-2deg);
|
||||
-moz-transform: rotate(-2deg);
|
||||
-webkit-transition: all 300ms cubic-bezier(0.5, 0, 0.5, 1);
|
||||
-moz-transition: all 300ms cubic-bezier(0.5, 0, 0.5, 1);
|
||||
-ms-transition: all 300ms cubic-bezier(0.5, 0, 0.5, 1);
|
||||
transition: all 300ms cubic-bezier(0.5, 0, 0.5, 1);
|
||||
}
|
||||
.openerp .oe_kanban_record .oe_kanban_card_fancy .fa {
|
||||
margin-top: 8px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
.openerp .oe_kanban_record:nth-of-type(even) .oe_kanban_card_fancy {
|
||||
-webkit-transform: rotate(1deg);
|
||||
-o-transform: rotate(1deg);
|
||||
-moz-transform: rotate(1deg);
|
||||
}
|
||||
.openerp .oe_kanban_record:nth-of-type(3n) .oe_kanban_card_fancy {
|
||||
-webkit-transform: rotate(4deg);
|
||||
-o-transform: rotate(4deg);
|
||||
-moz-transform: rotate(4deg);
|
||||
}
|
||||
.openerp .oe_kanban_column:nth-of-type(even) .oe_kanban_card_fancy {
|
||||
-webkit-transform: rotate(2deg);
|
||||
-o-transform: rotate(2deg);
|
||||
-moz-transform: rotate(2deg);
|
||||
}
|
||||
.openerp .oe_kanban_column:nth-of-type(even) .oe_kanban_record:nth-of-type(even) .oe_kanban_card_fancy {
|
||||
-webkit-transform: rotate(-3deg);
|
||||
-o-transform: rotate(-3deg);
|
||||
-moz-transform: rotate(-3deg);
|
||||
}
|
||||
.openerp .oe_kanban_column:nth-of-type(even) .oe_kanban_record:nth-of-type(3n) .oe_kanban_card_fancy {
|
||||
-webkit-transform: rotate(1deg);
|
||||
-o-transform: rotate(1deg);
|
||||
-moz-transform: rotate(1deg);
|
||||
}
|
||||
.openerp .oe_kanban_column:nth-of-type(3n) .oe_kanban_card_fancy {
|
||||
-webkit-transform: rotate(-2deg);
|
||||
-o-transform: rotate(-2deg);
|
||||
-moz-transform: rotate(-2deg);
|
||||
}
|
||||
.openerp .oe_kanban_column:nth-of-type(3n) .oe_kanban_record:nth-of-type(even) .oe_kanban_card_fancy {
|
||||
-webkit-transform: rotate(1deg);
|
||||
-o-transform: rotate(1deg);
|
||||
-moz-transform: rotate(1deg);
|
||||
}
|
||||
.openerp .oe_kanban_column:nth-of-type(3n) .oe_kanban_record:nth-of-type(3n) .oe_kanban_card_fancy {
|
||||
-webkit-transform: rotate(-1deg);
|
||||
-o-transform: rotate(-1deg);
|
||||
-moz-transform: rotate(-1deg);
|
||||
}
|
||||
|
||||
.openerp .oe_kanban_column .oe_fold_column .oe_kanban_card_fancy:hover,
|
||||
.openerp .oe_kanban_column .oe_fold_column .oe_kanban_card_fancy:focus {
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
border-color: rgba(0, 0, 0, 0.4);
|
||||
-webkit-transition: all 150ms cubic-bezier(0.5, 0, 0.5, 1);
|
||||
-moz-transition: all 150ms cubic-bezier(0.5, 0, 0.5, 1);
|
||||
-ms-transition: all 150ms cubic-bezier(0.5, 0, 0.5, 1);
|
||||
transition: all 150ms cubic-bezier(0.5, 0, 0.5, 1);
|
||||
-webkit-transform: rotate(0) !important;
|
||||
-o-transform: rotate(0) !important;
|
||||
-moz-transform: rotate(0) !important;
|
||||
}
|
||||
min-height: 200px; }
|
||||
.openerp .oe_form .oe_form_field.oe_memo .cleditorMain {
|
||||
border: none;
|
||||
padding: 0px; }
|
||||
|
||||
@@ -27,81 +27,3 @@
|
||||
.cleditorMain
|
||||
border: none
|
||||
padding: 0px
|
||||
.oe_kanban_view.oe_notes
|
||||
.oe_kanban_card_fancy.oe_kanban_color_0
|
||||
box-shadow: 0px 4px 9px rgba(48,48,48,0.15)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_1
|
||||
box-shadow: 0px 4px 9px rgba(0,0,0,0.15)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_2
|
||||
box-shadow: 0px 4px 9px rgba(48,0,0,0.15)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_3
|
||||
box-shadow: 0px 4px 9px rgba(97,93,0,0.16)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_4
|
||||
box-shadow: 0px 4px 9px rgba(77,128,0,0.17)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_5
|
||||
box-shadow: 0px 4px 9px rgba(0,88,11,0.15)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_6
|
||||
box-shadow: 0px 4px 9px rgba(0,80,95,0.15)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_7
|
||||
box-shadow: 0px 4px 9px rgba(3,13,133,0.18)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_8
|
||||
box-shadow: 0px 4px 9px rgba(56,0,128,0.15)
|
||||
.oe_kanban_card_fancy.oe_kanban_color_9
|
||||
box-shadow: 0px 4px 9px rgba(102,0,116,0.15)
|
||||
.oe_kanban_record
|
||||
.oe_kanban_card_fancy
|
||||
text-shadow: none
|
||||
border-radius: 2px
|
||||
padding: 8px
|
||||
margin-left: 3px
|
||||
margin-right: 3px
|
||||
padding-bottom: 8px
|
||||
margin-bottom: 10px
|
||||
@include rotate(-2deg)
|
||||
@include transition(all, 300ms)
|
||||
.fa
|
||||
margin-top: 8px
|
||||
margin-right: 6px
|
||||
.oe_kanban_record:nth-of-type(even)
|
||||
.oe_kanban_card_fancy
|
||||
@include rotate(1deg)
|
||||
.oe_kanban_record:nth-of-type(3n)
|
||||
.oe_kanban_card_fancy
|
||||
@include rotate(4deg)
|
||||
.oe_kanban_column:nth-of-type(even)
|
||||
.oe_kanban_card_fancy
|
||||
@include rotate(2deg)
|
||||
.oe_kanban_column:nth-of-type(even)
|
||||
.oe_kanban_record:nth-of-type(even)
|
||||
.oe_kanban_card_fancy
|
||||
@include rotate(-3deg)
|
||||
.oe_kanban_column:nth-of-type(even)
|
||||
.oe_kanban_record:nth-of-type(3n)
|
||||
.oe_kanban_card_fancy
|
||||
@include rotate(1deg)
|
||||
.oe_kanban_column:nth-of-type(3n)
|
||||
.oe_kanban_card_fancy
|
||||
@include rotate(-2deg)
|
||||
.oe_kanban_column:nth-of-type(3n)
|
||||
.oe_kanban_record:nth-of-type(even)
|
||||
.oe_kanban_card_fancy
|
||||
@include rotate(1deg)
|
||||
.oe_kanban_column:nth-of-type(3n)
|
||||
.oe_kanban_record:nth-of-type(3n)
|
||||
.oe_kanban_card_fancy
|
||||
@include rotate(-1deg)
|
||||
|
||||
|
||||
.openerp
|
||||
.oe_kanban_column
|
||||
.oe_fold_column
|
||||
.oe_kanban_card_fancy:hover,
|
||||
.oe_kanban_card_fancy:focus
|
||||
position: relative
|
||||
z-index: 5
|
||||
border-color: rgba(0,0,0,0.4)
|
||||
@include transition(all, 150ms)
|
||||
-webkit-transform: rotate(0) !important
|
||||
-o-transform: rotate(0) !important
|
||||
-moz-transform: rotate(0) !important
|
||||
|
||||
|
||||
Reference in New Issue
Block a user