Hi,
When I check in google for that topic I get only results for odoo8 and the solution given for it does not work for me. So my questions is how I can set a default value of a many2one field in odoo?
My following example works fine, except that I did not find out how to set a default value:
my example code:
py file:
var = fields.Many2one('myNewModule', "My Text")
view:
<field name="myNewModule" domain="[('type', '=', 'other')]" />
Any hints?