OCA / web

Odoo web client UI related addons
GNU Affero General Public License v3.0
936 stars 1.88k forks source link

EE - Web Theme Classic — Don't Apply to Certain Views #2491

Open cub-nick opened 1 year ago

cub-nick commented 1 year ago

Love the Web Theme Classic app. Thank you for developing this.

Apologies in advance for my naivety. Is there a way to "filter out" certain Odoo views so the web classic theme is NOT applied?

For example, in the Tablet view on Work Orders from the Manufacturing app, the theme is applying a light gray background with white text in the input field— thus it is illegible for the team using tablets. How could I change this/keep the module from applying the styles in this specific view?

legalsylvain commented 1 year ago

Could you provide a printscreen of the tablet view on work orders. ? (With and without the thème module )

cub-nick commented 1 year ago

See screenshots below. Upper right corner. The input field for quantity produced. The black (legible) one is without the web classic theme. The white (illegible) one is with the classic web theme.

Screen Shot 2023-04-28 at 12 06 11 PM Screen Shot 2023-04-27 at 5 03 15 PM
legalsylvain commented 1 year ago

Thanks for your screenshot. I don't know this module. is it enterprise one ? If yes, i can not help, as I only work with CE modules. (and the OCA CI only run CE). But maybe, you can try to check why the style is applied with firefox / chrome debugging, and try to change the css rule in the web_theme_classic to be more precise.

cub-nick commented 1 year ago

If anyone else has this issue... I added the following code and it fixed it. I am very novice when it comes to code, so not sure if there's a better way to achieve this! And not sure what it may affect in other area, but so far haven't found any issues:

.o_workorder_tablet_form .o_field_widget {
    .o_input {
        /* Add background for all editable and required fields */
        color: #000 !important;
        font-weight: bold !important;

        }
    }