Skip to content

Commit

Permalink
Merge PR #1664 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed May 31, 2024
2 parents 8ae8a7e + 9de480a commit cc9b227
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions account_asset_management/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def _prepare_asset_vals(self, aml):
"date_start": self.date,
}

def action_post(self):
ret_val = super().action_post()
def _post(self, soft=True):
ret_val = super()._post(soft=soft)
for move in self:
for aml in move.line_ids.filtered(
lambda line: line.asset_profile_id and not line.tax_line_id
Expand Down Expand Up @@ -180,6 +180,7 @@ class AccountMoveLine(models.Model):
string="Asset",
ondelete="restrict",
check_company=True,
copy=False,
)

@api.depends("account_id", "asset_id")
Expand Down

0 comments on commit cc9b227

Please sign in to comment.