```
in xml
<button name="action_pass_value" type="object" string="Process Adjustment" class="oe_highlight" states="paid" attrs="{'invisible': ['|', ('state', '!=', 'paid'), ('is_adjusted_done', '=',True)]}"/>
in py
def action_pass_value(self):
return
{ 'name': self.name, 'res_model': 'invoice.process.adjustment',
'type': 'ir.actions.act_window',
'context': {'current_id': self.id},
'view_mode': 'form',
'view_type': 'form',
'target': 'new', }
```
```
in Wizard
class InvoiceProcessAdjustment(models.TransientModel):
_name = 'invoice.process.adjustment'
act_id = fields.Integer(string='ID', default=lambda self: self._get_default_id())
@api.one
def _get_default_id(self):
if self.env.context.get('current_id'):
return self.env.context.get('current_id')
```
in wizard i can't get current_id value where i'm wrong pls correct me