Fix missing line in last commit

This commit is contained in:
Bernat Brunet Torruella 2017-10-23 16:36:30 +02:00
parent 74681f9e06
commit 07ffa2ad24

View file

@ -11,7 +11,13 @@ diff -r 1a408c6814aa asset.py
asset_line = MoveLine(
debit=0,
@@ -528,6 +531,11 @@
credit=self.value,
account=account_asset,
)
+ if party:
+ asset_line.party = party
depreciation_line = MoveLine(
debit=self.get_depreciated_amount(),
credit=0,
account=self.product.account_depreciation_used,
)