Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions edi_core_oca/templates/exchange_chatter_msg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
<span class="edi-exchange-ref">
<strong>EDI exchange:</strong>
<a
t-attf-href="/web#id=#{exchange_record.id}&amp;model=#{exchange_record._name}&amp;view_type=form"
t-attf-href="/odoo/#{exchange_record._name}/#{exchange_record.id}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You used edi-exchange-records not edi.exchange.record.

Did it work in your tests?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works, but still using old model reference, I thought it would use the new one.

Image

t-att-data-oe-model="exchange_record._name"
t-att-data-oe-id="exchange_record.id"
>
<t t-esc="exchange_record.identifier" />
<t t-out="exchange_record.identifier" />
</a>
</span>
<br />
<t t-set="exc_type" t-value="exchange_record.type_id" />
<span class="edi-exchange-type">
<strong>Type:</strong>
<a
t-attf-href="/web#id=#{exc_type.id}&amp;model=#{exc_type._name}&amp;view_type=form"
t-attf-href="/odoo/#{exc_type._name}/#{exc_type.id}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

t-att-data-oe-model="exc_type._name"
t-att-data-oe-id="exc_type.id"
>
<t t-esc="exc_type.name" />
<t t-out="exc_type.name" />
</a>
</span>
<br />
Expand All @@ -36,7 +36,7 @@
<br />
<span t-attf-class="exchange-message #{message_color_klass.get(level)}">
<strong>Message:</strong>
<span t-esc="message" />
<span t-out="message" />
</span>
</p>
</template>
Expand Down
1 change: 1 addition & 0 deletions edi_core_oca/views/edi_backend_type_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
</record>
<record model="ir.actions.act_window" id="act_open_edi_backend_type_view">
<field name="name">EDI Backend Type</field>
<field name="path">edi-backend-types</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">edi.backend.type</field>
<field name="view_mode">list,form</field>
Expand Down
1 change: 1 addition & 0 deletions edi_core_oca/views/edi_backend_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
</record>
<record model="ir.actions.act_window" id="act_open_edi_backend_view">
<field name="name">EDI Backend</field>
<field name="path">edi-backends</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">edi.backend</field>
<field name="view_mode">list,form</field>
Expand Down
1 change: 1 addition & 0 deletions edi_core_oca/views/edi_configuration_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
</record>
<record model="ir.actions.act_window" id="act_open_edi_configuration_view">
<field name="name">EDI Configuration</field>
<field name="path">edi-configurations</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">edi.configuration</field>
<field name="view_mode">list,form</field>
Expand Down
1 change: 1 addition & 0 deletions edi_core_oca/views/edi_exchange_record_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@

<record model="ir.actions.act_window" id="act_open_edi_exchange_record_view">
<field name="name">Exchanges</field>
<field name="path">edi-exchanges</field>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only works for ALL menu, need fixing, maybe using edi-exchange-records to keep a consistency...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, you need to use the path

<field name="type">ir.actions.act_window</field>
<field name="res_model">edi.exchange.record</field>
<field name="view_mode">list,form</field>
Expand Down
1 change: 1 addition & 0 deletions edi_core_oca/views/edi_exchange_type_rule_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
</record>
<record model="ir.actions.act_window" id="act_open_edi_exchange_type_rule_view">
<field name="name">EDI Exchange Type Rule</field>
<field name="path">edi-exchange-type-rules</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">edi.exchange.type.rule</field>
<field name="view_mode">list,form</field>
Expand Down
1 change: 1 addition & 0 deletions edi_core_oca/views/edi_exchange_type_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
</record>
<record model="ir.actions.act_window" id="act_open_edi_exchange_type_view">
<field name="name">EDI Exchange Type</field>
<field name="path">edi-exchange-types</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">edi.exchange.type</field>
<field name="view_mode">list,form</field>
Expand Down
Loading