コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
9192 ビュー

Heello everybody!!

Need an answer please.

Why doesnt it change anything when i add a css file and call it like this in the xml file:

   <link rel="stylesheet" href="/module_namel/static/src/css/file_name.css" />

Help pleaase

アバター
破棄

need to be added in an asset. and update the module to refresh the view.

最善の回答

Hi, below this code is helpful for you.

#view file:

<template id="my_assets_id" name="website assets for my module" inherit_id="website.theme">        <xpath expr="." position="inside">        <link rel="stylesheet" href="/website_my_module/static/src/css/my.css"/>        </xpath>    </template>

# __openerp__.py
 {
     'name': "CSS Example",
     'description': "new css example",
     'category': 'Generic Modules/Others',
     'depends': ['web'],
     'data': [],
     'css': ['static/src/css/my_css.css'],
 }
アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 20
6227
2
5月 20
7397
0
6月 18
5631
0
9月 17
4695
0
7月 15
6404