CSS советы и хитрости¶
Добавьте свой CSS на шаблон¶
Код:
<template id="my_module_frontend" name="my_module assets" inherit_id="website_sale.assets_frontend">
<xpath expr="//link[@rel='stylesheet']" position="after">
<link rel="stylesheet" href="/my_module/static/src/css/main.css"/>
</xpath>
</template>
website_sale.assets_frontend is what you inherits.
Скрыть поля¶
Скрыть все дочерние элементы (имеющие атрибут bill = '1') владельца класса oe_website_sale (имеющие атрибут bill_enabled = '0')
.oe_website_sale[bill_enabled='0'] [bill='1']{
display:none;
}