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:
Ernad Husremovic 2025-08-30 17:27:15 +02:00
parent af56672c08
commit 53fddf87c8
2469 changed files with 101716 additions and 0 deletions

View file

@ -0,0 +1 @@
from . import test_web_widget_pattern

View file

@ -0,0 +1,14 @@
# Copyright 2024 Hunki Enterprises BV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0)
from odoo.tests.common import TransactionCase
class TestWebWidgetPattern(TransactionCase):
def test_fields_get(self):
ResPartner = self.env["res.partner"]
ResPartner._fields["street2"].pattern = "[0-9]"
field_description = ResPartner.get_views(
[(self.env.ref("base.view_partner_form").id, "form")]
)["models"]["res.partner"]["street2"]
self.assertEqual(field_description["pattern"], "[0-9]")