Skip to content
Snippets Groups Projects
Commit dcca2e8b authored by Nicolas Martinelli's avatar Nicolas Martinelli Committed by Nicolas Martinelli
Browse files

[FIX] account: fix test

Complement of 802339c1
parent 802339c1
Branches
Tags
No related merge requests found
......@@ -12,7 +12,8 @@ class AccountAnalyticLine(models.Model):
product_uom_id = fields.Many2one('uom.uom', string='Unit of Measure')
product_id = fields.Many2one('product.product', string='Product')
general_account_id = fields.Many2one('account.account', string='Financial Account', ondelete='restrict', readonly=True,
related='move_id.account_id', store=True, domain=[('deprecated', '=', False)])
related='move_id.account_id', store=True, domain=[('deprecated', '=', False)],
compute_sudo=True)
move_id = fields.Many2one('account.move.line', string='Journal Item', ondelete='cascade', index=True)
code = fields.Char(size=8)
ref = fields.Char(string='Ref.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment