-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[17.0][MIG] web_company_color: Migration to 17.0
- Loading branch information
Showing
13 changed files
with
65 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# Copyright 2019 Alexandre Díaz <dev@redneboa.es> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from odoo import SUPERUSER_ID, api | ||
|
||
from .models.res_company import URL_BASE | ||
|
||
|
||
def uninstall_hook(cr, registry): | ||
env = api.Environment(cr, SUPERUSER_ID, {}) | ||
def uninstall_hook(env): | ||
env["ir.attachment"].search([("url", "=like", "%s%%" % URL_BASE)]).unlink() | ||
|
||
|
||
def post_init_hook(cr, registry): | ||
env = api.Environment(cr, SUPERUSER_ID, {}) | ||
def post_init_hook(env): | ||
env["res.company"].search([]).scss_create_or_update_attachment() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- Jordi Ballester Alomar \<<jordi.ballester@forgeflow.com>\> (ForgeFlow) | ||
- Lois Rilo \<<lois.rilo@forgeflow.com>\> (ForgeFlow) | ||
- Simone Orsi \<<simone.orsi@camptocamp.com>\> | ||
- Iván Antón \<<ozono@ozonomultimedia.com>\> | ||
- Bernat Puig \<<bernat.puig@forgeflow.com>\> (ForgeFlow) | ||
- Dhara Solanki \<<dhara.solanki@initos.com>\> | ||
- [Tecnativa](https://www.tecnativa.com): | ||
- Jairo Llopis | ||
- Alexandre Díaz | ||
- Carlos Roca |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
web_company_color/readme/ROADMAP.rst → web_company_color/readme/ROADMAP.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
White color is omitted in the addition operation to support images without alpha channel. | ||
White color is omitted in the addition operation to support images | ||
without alpha channel. |
3 changes: 2 additions & 1 deletion
3
web_company_color/readme/USAGE.rst → web_company_color/readme/USAGE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
Go to company record and set a logo. Can see/modify applied colors on the "Navbar" section. | ||
Go to company record and set a logo. Can see/modify applied colors on | ||
the "Navbar" section. | ||
|
||
For optimal results use images with alpha channel. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters