Odoo 도움말

2

0
3 응답
1
Bharat Parmar (bhp) India
17. 2. 15. 오전 7:26

You need to override your css.

1.)create css file in your module with this path

your_module/static/src/css/my_css.css

my_css.css

//put your css here to it in report.
//like,
.vertical-text {
    /* Safari */
    -webkit-transform: rotate(-90deg);
    
    /* Firefox */
    -moz-transform: rotate(-90deg);
    
    /* IE */
    -ms-transform: rotate(-90deg);
    
    /* Opera */
    -o-transform: rotate(-90deg);
    
    /* Internet Explorer */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

2.)create xml file in your_module/views/css_view.xml

<?xml version="1.0"?>
<odoo>
    <data>
        <template id="assets_backend" name="mymodule css assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                <link rel="stylesheet" href="/your_module/static/src/css/my_css.css"/>
            </xpath>
        </template>
    </data>
</odoo>

3.)change in __manifest__.py or __openerp__.py

'data': [ 'views/css_view.xml']

and then you can use it in your report

<div class="vertical-text">Hello Vertical Texter!</div>

0
Avatar

Ahmed Bedda Tunisia

--Ahmed Bedda--

1307
| 1 2 4
Tunisia
--Ahmed Bedda--


Ahmed Bedda Tunisia
18. 4. 18. 오후 7:13

not worked in odoo8 !!!!

0
Avatar

Jérémy Kersten (jke) 벨기에

--Jérémy Kersten (jke)--

6273
| 4 4 11
Jodoigne, 벨기에
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013.

He is now the Team Leader of the Website Team and support of our own website odoo.com.

Jérémy Kersten (jke) 벨기에
17. 2. 14. 오전 10:35
질문하기
Writer
1096
JC
태그
Keep Informed
1 팔로워
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