Odoo Help

3

3
2 Answers
3
E.R. Spada II United States
11/1/14, 1:32 AM

Thanks to Jigar at Odoo,SA. In v8 you have to register the assets (css) in v8 with an xml file.

'name': 'Web Form Sheet Width',

'category': 'Hidden',

'version': '8.0.1.0',

'description':

"""

OpenERP Web core module.

========================

This module provides increase the sheet width in form

""",

'depends': [],

'auto_install': True,

'data' : ['ccoffee_page_view_width.xml'],

'js' : [

],

'qweb' : [

],

'test': [

],

}

xml file:

?xml version="1.0" encoding="utf-8"?>

<openerp>

<data>

<template id="assets_backend" name="ccoffee_page_view_width assets" inherit_id="web.assets_backend">

<xpath expr="." position="inside">

<link rel="stylesheet" href="/ccoffee_page_view_width/static/src/css/web_form_sheet_width.css"/>

</xpath>

</template>

</data>

</openerp>

1 Comment
La Page PT, Pascal Tremblay Canada
12/26/14, 1:09 PM

THANKS!!!!!

0
Avatar

Ray Carnes United States

--Ray Carnes--
21559
| 10 7 11
Greater Los Angeles, United States
--Ray Carnes--

Business Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0, 11.0 and 12.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes United States
3/10/14, 9:42 PM

Create a new module.

In your module's __openerp__.py file, you add a line:

'css': ['static/src/css/web_example.css'],

The trick is making sure you have the correct path matching the path where the existing CSS files are located.

Full documentation at https://doc.openerp.com/trunk/web/module/

4 Comments
Alex Spain
3/12/14, 6:34 AM

Ok, no problem with openerp 7 but I can't change nothing in trunk version, so I think the problem is the new version. I was testing trunk version because I am interested in new POS. Do you know why?

Alex Spain
3/12/14, 6:54 AM

Look an example: __openerp__.py

'depends': ['web'] 'css': ['static/src/css/web_example.css'],

OPENERP 7

web_example.css

.openerp .oe_menu &gt; li &gt; a {
    color: red;    
}

Change text menu color to red without problem

OPENERP 8 (TRUNK)

.openerp .navbar-nav &gt; li &gt; a {
    color: red;    
}

Nothing changes.

I am not a programmer and I am learning on the go but this is very disconcerting for me. I can't understand why. I have tried several css labels and I can't change nothing in trunk.

Kasper Souren Madagascar
10/13/14, 6:21 PM

And what to do after changing these files? Odoo is not straightforward in this respect.

E.R. Spada II United States
10/24/14, 11:55 AM

I am migrating v7 module that will increase web form width, the new file is under addons/web/static/src/css but it still will not update the form. The original file is base.css. Need to make the module change to this:.openerp .oe_form_sheet_width { min-width: 75%; max-width: 93%; margin: 0 auto; But I cannot get the path for v8 correct, anyone?

Ask a Question
Writer
312
Alex
Tags
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now