Im trying to delete the current record in model a via the button from model b.
I'd tried to used unlink() .
name = fields.Many2one('hr.employee')
The wizard button in model_b.py :
for rec in self:
abc = self.env["model.a"]
xyz = abc.search([('name', '=', rec.name.id)])
but it will delete all records in model_a.py .
So how to delete the current record in model_a.py from model_b.py ?