[IMP] account_usability_akretion: add search on account in account.move search view

This commit is contained in:
Alexis de Lattre
2024-09-30 08:07:00 +02:00
parent 3a11c99ccb
commit b6624f2491
2 changed files with 12 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ class AccountMove(models.Model):
string="Dispute",
tracking=True,
)
# Field search_account_id is just for search view
search_account_id = fields.Many2one(related='line_ids.account_id')
@api.depends("line_ids", "line_ids.blocked")
def _compute_blocked(self):