Last active
August 21, 2024 14:30
-
-
Save Sinnnnak/4c775e687e60dd0b3c53462215693701 to your computer and use it in GitHub Desktop.
Customized Totals Footer in Odoo Forms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Include the following in the manifest file | |
| 'assets':{ | |
| 'web.assets_backend': ['module_name/static/src/css/style.css'] | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The footer will appear as shown in the above screenshot.