mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
@@ -445,8 +445,11 @@ class TestAssetManagement(SavepointCase):
|
||||
self.assertTrue(len(invoice.invoice_line_ids) > 0)
|
||||
line = invoice.invoice_line_ids[0]
|
||||
self.assertTrue(line.price_unit > 0.0)
|
||||
line.quantity = 2
|
||||
line.asset_profile_id = asset_profile
|
||||
move_form = Form(invoice)
|
||||
with move_form.invoice_line_ids.edit(0) as line_form:
|
||||
line_form.quantity = 2
|
||||
line_form.asset_profile_id = asset_profile
|
||||
invoice = move_form.save()
|
||||
invoice.post()
|
||||
# I get all asset after invoice validation
|
||||
current_asset = self.env["account.asset"].search([])
|
||||
|
||||
Reference in New Issue
Block a user