Tardo / OdooTerminal

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

more ergonomic write/create (without JSON)? #38

Closed yajo closed 3 years ago

yajo commented 3 years ago

Is your feature request related to a problem? Please describe. I hate handwriting JSON.

Describe the solution you'd like

Using field=value where value is any JSON:

write res.partner 33 name="something" email="email@example.com"

Or even better, where value is any YAML (which in turn is a superset of JSON):

write res.partner 33 name=something email=email@example.com

This feels more like a CLI.

Describe alternatives you've considered The only one we have: write JSON. The above example would be:

write res.partner 33 '{"name": "something", "email": "email@example.com"}'