mirror of
https://github.com/bringout/oca-web.git
synced 2026-04-19 23:11:58 +02:00
Add oca-web submodule with 68 web modules
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
af56672c08
commit
53fddf87c8
2469 changed files with 101716 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import test_environment_ribbon_data
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
# Copyright 2019 Eric Lembregts
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo.tests import common
|
||||
|
||||
|
||||
class TestEnvironmentRibbonData(common.TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super(TestEnvironmentRibbonData, cls).setUpClass()
|
||||
cls.env["ir.config_parameter"].set_param("ribbon.name", "Test Ribbon {db_name}")
|
||||
cls.env["ir.config_parameter"].set_param("ribbon.color", "#000000")
|
||||
cls.env["ir.config_parameter"].set_param("ribbon.background.color", "#FFFFFF")
|
||||
|
||||
def test_environment_ribbon(self):
|
||||
"""This test confirms that the data that is fetched by the javascript
|
||||
code is the right title and colors."""
|
||||
ribbon = self.env["web.environment.ribbon.backend"].get_environment_ribbon()
|
||||
|
||||
expected_ribbon = {
|
||||
"name": "Test Ribbon {db_name}".format(db_name=self.env.cr.dbname),
|
||||
"color": "#000000",
|
||||
"background_color": "#FFFFFF",
|
||||
}
|
||||
|
||||
self.assertDictEqual(ribbon, expected_ribbon)
|
||||
Loading…
Add table
Add a link
Reference in a new issue