优化现有逻辑
This commit is contained in:
@@ -31,7 +31,7 @@ export class MyCustomWidget extends Many2ManyCheckboxesField {
|
||||
}
|
||||
}
|
||||
|
||||
MyCustomWidget.template = "sf_plan.MyCustomWidget"
|
||||
MyCustomWidget.template = "jikimo_frontend.MyCustomWidget"
|
||||
// MyCustomWidget.supportedTypes = ['many2many'];
|
||||
|
||||
registry.category("fields").add("custom_many2many_checkboxes", MyCustomWidget);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
|
||||
<t t-name="sf_plan.MyCustomWidget" owl="1">
|
||||
<t t-name="jikimo_frontend.MyCustomWidget" owl="1">
|
||||
<div aria-atomic="true" class="many2many_flex">
|
||||
<t t-foreach="items" t-as="item" t-key="item[0]">
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user