Tardo / OdooTerminal

Webextension tool for Odoo
GNU Affero General Public License v3.0
119 stars 27 forks source link

New command `ref` #25

Closed yajo closed 3 years ago

yajo commented 3 years ago

It would be nice if we had a ref example_module.example_xmlid command that searches among ir.model.data and returns the model + res_id combination that matches that/those ref/s.

Tardo commented 3 years ago

At the moment you can create a alias: alias ref call ir.model.data xmlid_to_res_model_res_id ["$1"]

Using the alias: ref base.model_res_partner

The command will be added in #24 to support the usage of a list of xmlids

yajo commented 3 years ago

Oooh I didn't know about alias. 🎸

Tardo commented 3 years ago

Added here: https://github.com/Tardo/OdooTerminal/pull/24/commits/95ebd691a05af4b4787aad7cc59d430549606979