Skip to content

Commit f62cb7b

Browse files
committed
remove unnecessary buggy line
1 parent d470023 commit f62cb7b

9 files changed

Lines changed: 26 additions & 27 deletions

File tree

typesense_ir_exports/README.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,29 +106,26 @@ Create a backend record, and create an index line with values:
106106

107107
- Model: select the model you want to index
108108
- Serializer Type: Exporter
109-
- Exporter: select or create a new one and set
109+
- Exporter: select or create a new one by clicking on "Open Exporter" button
110110
- Resource: model technical name you want to index
111111
- Index lines: each line a technical name of the field of interest
112112
- Config: select or create the config se index record mentioned above
113113

114-
You can create and manage exporter templates through a button in the
115-
tree view once you click on the exporter or the button under the
114+
You can create, update and delete exporter templates through a button in
115+
the tree view once you click on the exporter or the button under the
116116
``exporter_id`` field in the se.index form view.
117117

118118
Media
119119
-----
120120

121-
|Backend Configuration|\ {width=300}
121+
|Backend Configuration|
122122

123-
|Exporter Dialog Button in Tree View|\ {width=300}
123+
|Exporter Dialog Button in Tree View|
124124

125-
|Exporter Form View View|\ {width=300}
126-
127-
|Exporter Dialog|\ {width=300}
125+
|Exporter Dialog|
128126

129127
.. |Backend Configuration| image:: https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/backend.png
130128
.. |Exporter Dialog Button in Tree View| image:: https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_dialog_button.png
131-
.. |Exporter Form View View| image:: https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_form_view.png
132129
.. |Exporter Dialog| image:: https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_dialog.png
133130

134131
Usage

typesense_ir_exports/readme/CONFIGURE.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,19 @@ Create a backend record, and create an index line with values:
4141

4242
- Model: select the model you want to index
4343
- Serializer Type: Exporter
44-
- Exporter: select or create a new one and set
44+
- Exporter: select or create a new one by clicking on "Open Exporter" button
4545
- Resource: model technical name you want to index
4646
- Index lines: each line a technical name of the field of interest
4747
- Config: select or create the config se index record mentioned above
4848

49-
You can create and manage exporter templates through a button in the tree view once you
50-
click on the exporter or the button under the `exporter_id` field in the se.index form
51-
view.
49+
You can create, update and delete exporter templates through a button in the tree view
50+
once you click on the exporter or the button under the `exporter_id` field in the
51+
se.index form view.
5252

5353
## Media
5454

55-
![Backend Configuration](../static/img/backend.png){width=300}
55+
![Backend Configuration](../static/img/backend.png)
5656

57-
![Exporter Dialog Button in Tree View](../static/img/exporter_dialog_button.png){width=300}
57+
![Exporter Dialog Button in Tree View](../static/img/exporter_dialog_button.png)
5858

59-
![Exporter Form View View](../static/img/exporter_form_view.png){width=300}
60-
61-
![Exporter Dialog](../static/img/exporter_dialog.png){width=300}
59+
![Exporter Dialog](../static/img/exporter_dialog.png)

typesense_ir_exports/static/description/index.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -451,21 +451,20 @@ <h2><a class="toc-backref" href="#toc-entry-3">SE Backend</a></h2>
451451
<pre class="literal-block">
452452
- Model: select the model you want to index
453453
- Serializer Type: Exporter
454-
- Exporter: select or create a new one and set
454+
- Exporter: select or create a new one by clicking on &quot;Open Exporter&quot; button
455455
- Resource: model technical name you want to index
456456
- Index lines: each line a technical name of the field of interest
457457
- Config: select or create the config se index record mentioned above
458458
</pre>
459-
<p>You can create and manage exporter templates through a button in the
460-
tree view once you click on the exporter or the button under the
459+
<p>You can create, update and delete exporter templates through a button in
460+
the tree view once you click on the exporter or the button under the
461461
<tt class="docutils literal">exporter_id</tt> field in the se.index form view.</p>
462462
</div>
463463
<div class="section" id="media">
464464
<h2><a class="toc-backref" href="#toc-entry-4">Media</a></h2>
465-
<p><img alt="Backend Configuration" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/backend.png" />{width=300}</p>
466-
<p><img alt="Exporter Dialog Button in Tree View" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_dialog_button.png" />{width=300}</p>
467-
<p><img alt="Exporter Form View View" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_form_view.png" />{width=300}</p>
468-
<p><img alt="Exporter Dialog" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_dialog.png" />{width=300}</p>
465+
<p><img alt="Backend Configuration" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/backend.png" /></p>
466+
<p><img alt="Exporter Dialog Button in Tree View" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_dialog_button.png" /></p>
467+
<p><img alt="Exporter Dialog" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_dialog.png" /></p>
469468
</div>
470469
</div>
471470
<div class="section" id="usage">
54.9 KB
Loading
-41.7 KB
Binary file not shown.
3.55 KB
Loading

typesense_ir_exports/static/src/action_ir_export.esm.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ class IrExportWidget extends Many2OneField {
116116
return true;
117117
}
118118
async getExportedFields(model, import_compat, parentParams) {
119-
model = this.props.record.data.model_name;
120119
return await this.rpc("/web/export/get_fields", {
121120
...parentParams,
122121
model,

typesense_ir_exports/static/src/action_ir_export.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
icon="fa-check"
1313
class="btn btn-link p-0 text-left"
1414
>
15-
Select Fields to Index
15+
Open Exporter
1616
</button>
1717
</div>
1818
</xpath>

typesense_ir_exports/views/se_index_view.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<field name="arch" type="xml">
88
<field name="exporter_id" position="attributes">
99
<attribute name="widget">ir_export_widget</attribute>
10+
<attribute
11+
name="options"
12+
>{'no_open': True, 'no_create': True}</attribute>
1013
</field>
1114
</field>
1215
</record>
@@ -17,6 +20,9 @@
1720
<field name="arch" type="xml">
1821
<field name="exporter_id" position="attributes">
1922
<attribute name="widget">ir_export_widget</attribute>
23+
<attribute
24+
name="options"
25+
>{'no_open': True, 'no_create': True}</attribute>
2026
</field>
2127
</field>
2228
</record>

0 commit comments

Comments
 (0)