Initial commit: Odoo 18.0-20251222 extra-addons
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled

This commit is contained in:
tocmo0nlord
2026-03-13 20:43:25 +00:00
parent 36e847a7df
commit adbe430761
9472 changed files with 1265727 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 OERP Canada <https://www.oerp.ca>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<data noupdate="1">
<record id="base.main_company" model="res.company">
<field
name="favicon"
model="res.company"
eval="obj()._get_default_favicon(original=True)"
/>
</record>
</data>
<record id="view_company_form_inherit" model="ir.ui.view">
<field name="name">res.company.form.inherit</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='color']" position="after">
<field
name="favicon"
widget="image"
class="float-start oe_avatar"
groups="base.group_no_one"
/>
</xpath>
</field>
</record>
</odoo>

12
web_favicon/views/templates.xml Executable file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 OERP Canada <https://www.oerp.ca>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<template id="favicon_icon" inherit_id="web.layout" name="Web layout">
<xpath expr="//head/link[@rel='shortcut icon']" position="attributes">
<attribute
name="t-att-href"
>env['res.company'].sudo()._get_favicon() or '/web/static/img/favicon.ico'</attribute>
</xpath>
</template>
</odoo>