Skip to content

Commit bbba28c

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

9 files changed

Lines changed: 26 additions & 33 deletions

File tree

typesense_ir_exports/README.rst

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,29 +106,24 @@ 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
110-
- Resource: model technical name you want to index
111-
- Index lines: each line a technical name of the field of interest
109+
- Exporter: select or create a new exporter template by clicking on "Open Exporter" button
112110
- Config: select or create the config se index record mentioned above
113111

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
112+
You can create, update and delete exporter templates through a button in
113+
the tree view once you click on the exporter or the button under the
116114
``exporter_id`` field in the se.index form view.
117115

118116
Media
119117
-----
120118

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

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

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

129125
.. |Backend Configuration| image:: https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/backend.png
130126
.. |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
132127
.. |Exporter Dialog| image:: https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_dialog.png
133128

134129
Usage

typesense_ir_exports/readme/CONFIGURE.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,17 @@ 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
45-
- Resource: model technical name you want to index
46-
- Index lines: each line a technical name of the field of interest
44+
- Exporter: select or create a new exporter template by clicking on "Open Exporter" button
4745
- Config: select or create the config se index record mentioned above
4846

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.
47+
You can create, update and delete exporter templates through a button in the tree view
48+
once you click on the exporter or the button under the `exporter_id` field in the
49+
se.index form view.
5250

5351
## Media
5452

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

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

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

typesense_ir_exports/static/description/index.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -451,21 +451,18 @@ <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
455-
- Resource: model technical name you want to index
456-
- Index lines: each line a technical name of the field of interest
454+
- Exporter: select or create a new exporter template by clicking on &quot;Open Exporter&quot; button
457455
- Config: select or create the config se index record mentioned above
458456
</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
457+
<p>You can create, update and delete exporter templates through a button in
458+
the tree view once you click on the exporter or the button under the
461459
<tt class="docutils literal">exporter_id</tt> field in the se.index form view.</p>
462460
</div>
463461
<div class="section" id="media">
464462
<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>
463+
<p><img alt="Backend Configuration" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/backend.png" /></p>
464+
<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>
465+
<p><img alt="Exporter Dialog" src="https://raw.githubusercontent.com/OCA/search-engine/16.0/typesense_ir_exports/static/img/exporter_dialog.png" /></p>
469466
</div>
470467
</div>
471468
<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)