mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
@@ -84,8 +84,8 @@ class AccountMove(models.Model):
|
|||||||
"date_start": self.date,
|
"date_start": self.date,
|
||||||
}
|
}
|
||||||
|
|
||||||
def action_post(self):
|
def _post(self, soft=True):
|
||||||
ret_val = super().action_post()
|
ret_val = super()._post(soft=soft)
|
||||||
for move in self:
|
for move in self:
|
||||||
for aml in move.line_ids.filtered(
|
for aml in move.line_ids.filtered(
|
||||||
lambda line: line.asset_profile_id and not line.tax_line_id
|
lambda line: line.asset_profile_id and not line.tax_line_id
|
||||||
@@ -180,6 +180,7 @@ class AccountMoveLine(models.Model):
|
|||||||
string="Asset",
|
string="Asset",
|
||||||
ondelete="restrict",
|
ondelete="restrict",
|
||||||
check_company=True,
|
check_company=True,
|
||||||
|
copy=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
@api.depends("account_id", "asset_id")
|
@api.depends("account_id", "asset_id")
|
||||||
|
|||||||
Reference in New Issue
Block a user