delegate is set it to True to make fields of the target model accessible from the current model (corresponds to _inherits)
journal_id = fields.Many2one('account.journal', delegate=True, required=True)
this will make all journal's fields available in your model.
Hope this could help
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
|Asked: 6/6/16, 1:13 AM|
|Seen: 190 times|
|Last updated: 6/6/16, 3:36 AM|