mirror of
https://github.com/bringout/oca-ocb-web.git
synced 2026-04-18 22:32:02 +02:00
replace stale web_editor with html_editor and html_builder for 19.0
web_editor was removed in Odoo 19.0 and replaced by html_editor
and html_builder. The old web_editor was incorrectly included in
the 19.0 vanilla import.
🤖 assisted by claude
This commit is contained in:
parent
4b94f0abc5
commit
f866779561
1513 changed files with 396049 additions and 358525 deletions
|
|
@ -0,0 +1,13 @@
|
|||
import { setupHTMLBuilder } from "@html_builder/../tests/helpers";
|
||||
import { expect, test, describe } from "@odoo/hoot";
|
||||
|
||||
describe.current.tags("desktop");
|
||||
|
||||
test("should not allow edition of date and datetime fields", async () => {
|
||||
await setupHTMLBuilder(
|
||||
`<time data-oe-model="blog.post" data-oe-id="3" data-oe-field="post_date" data-oe-type="datetime" data-oe-expression="blog_post.post_date" data-oe-original="2025-07-30 09:54:36" data-oe-original-with-format="07/30/2025 09:54:36" data-oe-original-tz="Europe/Brussels">
|
||||
Jul 30, 2025
|
||||
</time>`
|
||||
);
|
||||
expect(":iframe time").toHaveProperty("isContentEditable", false);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue