mirror of
https://github.com/bringout/oca-ocb-web.git
synced 2026-04-19 02:52:03 +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,28 @@
|
|||
import { describe, test } from "@odoo/hoot";
|
||||
import { testEditor } from "./_helpers/editor";
|
||||
import { unformat } from "./_helpers/format";
|
||||
import { deleteBackward } from "./_helpers/user_actions";
|
||||
|
||||
describe("monetary field", () => {
|
||||
test("should make a span inside a monetary field be unremovable", async () => {
|
||||
await testEditor({
|
||||
contentBefore: unformat(`
|
||||
<p>
|
||||
<span data-oe-model="product.template" data-oe-id="27" data-oe-field="list_price" data-oe-type="monetary" data-oe-expression="product.list_price" data-oe-xpath="/t[1]/div[1]/h3[2]/span[1]" class="o_editable">
|
||||
$
|
||||
<span class="oe_currency_value">[]</span>
|
||||
</span>
|
||||
</p>
|
||||
`),
|
||||
stepFunction: deleteBackward,
|
||||
contentAfter: unformat(`
|
||||
<p>
|
||||
<span data-oe-model="product.template" data-oe-id="27" data-oe-field="list_price" data-oe-type="monetary" data-oe-expression="product.list_price" data-oe-xpath="/t[1]/div[1]/h3[2]/span[1]" class="o_editable">
|
||||
$
|
||||
<span class="oe_currency_value">[]</span>
|
||||
</span>
|
||||
</p>
|
||||
`),
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue