跳至内容
菜单
此问题已终结
3202 查看

I have:

{
    [..]
    'css': ['static/src/css/sales_order_email_collection.css']
}

In my __openerp__.py file, but it doesn't seem to get loaded as part of the website. http://odoo-80.readthedocs.org/en/latest/howtos/web.html doesn't seem to indicate any additional step is needed. What am I doing wrong?

形象
丢弃

Your code looks perfect.. it should have loaded... or may be because of file name (which is quite long, try to reducing it n check, once it happened to me when i wanted to load jasper file, which had lengthy name...)

If you are using css for template purpose, then you can try loading it in template also..

编写者

I did end up using a just to make it work, just doesn't seem like I should have to. BTW the linkedin link in your profile doesn't lead to your profile.

oh is it.. k thanks updated it ...

相关帖文 回复 查看 活动
3
7月 25
9215
1
5月 25
1443
0
1月 24
2071
1
2月 22
24392
5
12月 21
17053