-
-
Notifications
You must be signed in to change notification settings - Fork 56
[19.0][IMP] edi_core_oca: align with v19 (pretty URLs, t-out) #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 19.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,23 +9,23 @@ | |
| <span class="edi-exchange-ref"> | ||
| <strong>EDI exchange:</strong> | ||
| <a | ||
| t-attf-href="/web#id=#{exchange_record.id}&model=#{exchange_record._name}&view_type=form" | ||
| t-attf-href="/odoo/#{exchange_record._name}/#{exchange_record.id}" | ||
| 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}&model=#{exc_type._name}&view_type=form" | ||
| t-attf-href="/odoo/#{exc_type._name}/#{exc_type.id}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 /> | ||
|
|
@@ -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> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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...
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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> | ||
|
|
||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.