How to get values of field present in 'Buying Settings' doc type

I have created a custom child table field in ‘Buying Settings’. How can i access that value in other doc type.?

frappe.db.get_value('Child table Doctype name', 
{'parent': 'Buying Settings'}, 'child_table_fieldname')

thanks @Sangram its working but i m getting only 1st row field value.
how can i access all the rows & all the fields of child table??

use sql query or get_values() instead.

frappe.db.get_values('Child table Doctype name', 
{'parent': 'Buying Settings'}, 'child_table_fieldname')
1 Like

Thanks @Sangram, get_values worked for me. :grin:

1 Like