Skip to content

[19.0][IMP] edi_core_oca: align with v19 (pretty URLs, t-out) - #322

Draft
HviorForgeFlow wants to merge 2 commits into
OCA:19.0from
ForgeFlow:19.0-imp-edi_core_oca-act_window_path
Draft

[19.0][IMP] edi_core_oca: align with v19 (pretty URLs, t-out)#322
HviorForgeFlow wants to merge 2 commits into
OCA:19.0from
ForgeFlow:19.0-imp-edi_core_oca-act_window_path

Conversation

@HviorForgeFlow

Copy link
Copy Markdown
Member

Improve UI/UX in edi_core_oca module:

  • Add paths to edi models to avoid having action- in the URL
  • Fix some warning errors:
2026-07-13 13:46:34,412 1 WARNING devel odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='exchange_record.identifier' in template 4066. Replace by @t-out 
2026-07-13 13:46:34,418 1 WARNING devel odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='exc_type.name' in template 4066. Replace by @t-out 
2026-07-13 13:46:34,426 1 WARNING devel odoo.addons.base.models.ir_qweb: Found deprecated directive @t-esc='message' in template 4066. Replace by @t-out 

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @etobella, @simahawk,
some modules you are maintaining are being modified, check this out!

@SilvioC2C SilvioC2C left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

<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

<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

@HviorForgeFlow HviorForgeFlow left a comment

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.

Need small adjustments, moving to draft

<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 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


<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

@HviorForgeFlow
HviorForgeFlow marked this pull request as draft July 14, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants