Skip to content

Instantly share code, notes, and snippets.

@Sinnnnak
Last active August 21, 2024 14:30
Show Gist options
  • Select an option

  • Save Sinnnnak/4c775e687e60dd0b3c53462215693701 to your computer and use it in GitHub Desktop.

Select an option

Save Sinnnnak/4c775e687e60dd0b3c53462215693701 to your computer and use it in GitHub Desktop.
Customized Totals Footer in Odoo Forms
# Include the following in the manifest file
'assets':{
'web.assets_backend': ['module_name/static/src/css/style.css']
},
.oe_subtotal_footer {
display: flex;
justify-content: flex-end; /* Aligns the content to the right */
padding: 10px;
}
.oe_subtotal_table {
border-collapse: collapse;
float: right; /* This moves the table to the right corner */
}
.oe_subtotal_row {
border: 2px dashed #000000; /* Dashed border around the entire row */
}
.oe_subtotal_label_box,
.oe_subtotal_value_box {
padding: 10px;
border-right: 2px dashed #000000; /* Dashed line between label and value */
text-align: left;
font-weight: bold;
color: black;/* Label on the left */
}
.oe_subtotal_value_box {
text-align: right; /* Value on the right */
border-right: none;
font-weight: bold;
color: black;/* No right border for the last column */
}
.subtotal_label {
font-weight: bold;
color: black;
}
.oe_subtotal_value {
font-weight: bold;
color: black;
}
@Sinnnnak
Copy link
Author

Screenshot from 2024-08-21 17-14-14

The footer will appear as shown in the above screenshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment