I need my own customized view for my model. i tried to use the html tags in view file. for common customization i want to write the css file then will call the css class to my odoo view file. i wrote the css file under new folder. i want to know how to call the css or how to link the css in my view file.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
Hi,
Please refer this
https://www.odoo.com/forum/help-1/including-css-file-to-odoo-115854
Muhammed Ali M - iWesabe
Create one static module in your module ,inside the static create css folder,and inside css create css file.
example:
And now you create one xml file inside views,in that xml file create code like this,
ex:
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<template id="assets_backend" name="sale_order_footer assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/module _name/static/src/css/sale_order_footer.css"/>
</xpath>
</template>
</data>
</odoo>
Thats SOLVE, Now YOU CHECK NEW CHANGES
it is working fine but how can i override existing class i.e design
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
customize a view for other departments
แก้ไขแล้ว
|
|
2
เม.ย. 24
|
1025 | |
|
0
ส.ค. 16
|
3470 | ||
|
0
มี.ค. 25
|
576 | ||
|
2
เม.ย. 24
|
6652 | ||
Select multiple elements with XPath
แก้ไขแล้ว
|
|
5
ส.ค. 24
|
45952 |