[IMP] account: add inverse of reversed_entry_id
We often have to know if an entry is reversed (i.e. if it has a reversal move_id), not if this is the move that is the reversal of another move.
This commit is contained in:
@@ -224,6 +224,7 @@ class AccountMove(models.Model):
|
||||
# ==== Reverse feature fields ====
|
||||
reversed_entry_id = fields.Many2one('account.move', string="Reversal of", readonly=True, copy=False,
|
||||
check_company=True)
|
||||
reversal_move_id = fields.One2many('account.move', 'reversed_entry_id')
|
||||
|
||||
# =========================================================
|
||||
# Invoice related fields
|
||||
|
||||
Reference in New Issue
Block a user