Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo v8: Get default field values that will be in the form beforehand

Hieu Nguyen
on 9/1/15, 2:58 AM 497 views

I have some form views similar to `account.voucher.receipt.dialog.form` (`odoo/addons/account_voucher/voucher_payment_receipt_view.xml`).

- Some `field` tags get their default values which were defined in the Model,

- Some `field` tags get their default values from on change methods (defined by `on_change` attributes).

I want to bypass these form views and automate the process, so I need to know beforehand these default field values.

In that way, I only need to add additional field values if needed, then call the `create` method on the model. (I'm using Odoo v8).

How can I achieve that without manual tracing the fields and their corresponding default values/onchange functions?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 9/1/15, 2:58 AM
Seen: 497 times
Last updated: 9/1/15, 2:58 AM