When reading data from the server, Odoo clients can only get values for the fields available in the model being queried. Client-side code can't use dot notation to access data in the related tables like server-side code can.
However, those fields can be made available there by adding them as related fields. We will do this to make the publisher's city available in the Library Book model.