button and academic leve input bx changes

This commit is contained in:
Vidhya 2026-10-01 17:52:18 +05:30
parent efbe824a2c
commit c12a872fa3
5 changed files with 28 additions and 1 deletions

View File

@ -20,9 +20,14 @@
<field name="arch" type="xml">
<form string="Academic Level">
<sheet>
<div class="oe_title">
<label for="name" string="Level Name"/>
<h1>
<field name="name" placeholder="e.g. Undergraduate"/>
</h1>
</div>
<group>
<group>
<field name="name"/>
<field name="code"/>
<field name="sequence"/>
</group>

View File

@ -24,3 +24,5 @@ class EducationAnnouncement(models.Model):
default=lambda self: self.env.company,
index=True,
)
circular_file = fields.Binary(string='Circular File', attachment=True)
circular_filename = fields.Char(string='Circular Filename')

View File

@ -30,6 +30,8 @@
<field name="announcement_type"/>
<field name="date_published"/>
<field name="expiry_date"/>
<field name="circular_filename" invisible="1"/>
<field name="circular_file" filename="circular_filename" widget="binary" invisible="announcement_type != 'circular'"/>
</group>
<group>
<field name="active"/>

View File

@ -222,6 +222,7 @@ body.o_web_client:has(.o_sidebar_custom) .o_action_manager {
// Input fields (Modern SaaS style - clean gray boxes that highlight)
.o_field_widget {
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
width: 100% !important;
background-color: #f8fafc !important;
border: 1px solid #e2e8f0 !important;
border-radius: 6px !important;
@ -237,6 +238,23 @@ body.o_web_client:has(.o_sidebar_custom) .o_action_manager {
outline: none !important;
}
}
// File upload button
.o_select_file_button {
background-color: var(--o-brand-primary) !important;
color: #ffffff !important;
border: none !important;
border-radius: 6px !important;
font-weight: 600 !important;
padding: 8px 16px !important;
transition: all 0.2s ease;
&:hover {
background-color: #177a7a !important;
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(31, 143, 143, 0.3) !important;
}
}
}
// Group titles / Separators