pycharm-odoo icon indicating copy to clipboard operation
pycharm-odoo copied to clipboard

Http route reference

Open trinhanhngoc opened this issue 2 years ago • 0 comments

The Odoo plugin supports searching for http routes in the working project. It would be nice to be also able to navigate to http route from its usages. For example, the banner_route attribute value (https://www.odoo.com/documentation/15.0/developer/reference/backend/views.html#attributes):

        <record id="view_out_invoice_tree" model="ir.ui.view">
            <field name="name">account.out.invoice.tree</field>
            <field name="model">account.move</field>
            <field name="inherit_id" ref="account.view_invoice_tree"/>
            <field name="mode">primary</field>
            <field name="arch" type="xml">
                <xpath expr="//tree" position="attributes">
                    <attribute name="banner_route">/account/account_invoice_onboarding</attribute>
                </xpath>
                <field name="currency_id" position="attributes">
                    <attribute name="string">Invoice Currency</attribute>
                </field>
            </field>
        </record>

https://github.com/odoo/odoo/blob/4d184bc6ca3b1308ffd7c890928b1c3244f89d45/addons/account/views/account_move_views.xml#L485

trinhanhngoc avatar Aug 14 '22 09:08 trinhanhngoc