Передайте active_id с кнопки через context
Пример: в вашем XML-файле
<button name="%(your_wizard_act_window_id)d" type="action" context="{'default_active_id':active_id}" string="Your String"/>
В вашем Python (код мастера):
@api.onchange("name")
def _change_coordinates(self):
for record in self:
if self.env.context.get('default_active_id'):
active_id = self.env.context.get('default_active_id')
if record.name:
ids = self.env["test.map"].browse(active_id)
for id in ids:
id.write({'name': self.name})
return True