Community mailing list archives
Re: Select default value in many2one fieldby
You can create XML record of Many2one field and give reference of that XML ID in default method.
Hope this helps!
On 22 November 2015 at 21:12, Mohamed Magdy <firstname.lastname@example.org> wrote:
I think it will not be easy to add a default value for the Many2one field, it should be done using the context in the XML file.On Sun, Nov 22, 2015 at 2:52 PM, Omar Ouhari <email@example.com> wrote:Hi community, I have a many2one field and I want to select default value depend of his parent. I do this: