Skip to content
Extraits de code Groupes Projets
Valider b40524cf rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[fix] domain error a_encaisser a_payer

parent eb0e7eba
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -211,14 +211,12 @@ class LeFilamentTdb(models.Model): ...@@ -211,14 +211,12 @@ class LeFilamentTdb(models.Model):
res['a_encaisser'] = sum(self.env['account.move'].search([ res['a_encaisser'] = sum(self.env['account.move'].search([
('move_type', 'in', ('out_invoice', 'out_refund')), ('move_type', 'in', ('out_invoice', 'out_refund')),
('state', '=', 'posted'), ('state', '=', 'posted'),
('invoice_date', '>', fiscal_year), ('payment_state', '!=', 'paid')
('invoice_date', '<=', fiscal_year_next)
]).mapped('amount_residual_signed')) ]).mapped('amount_residual_signed'))
res['a_payer'] = sum(self.env['account.move'].search([ res['a_payer'] = sum(self.env['account.move'].search([
('move_type', 'in', ('in_invoice', 'in_refund')), ('move_type', 'in', ('in_invoice', 'in_refund')),
('state', '=', 'posted'), ('state', '=', 'posted'),
('invoice_date', '>', fiscal_year), ('payment_state', '!=', 'paid')
('invoice_date', '<=', fiscal_year_next)
]).mapped('amount_residual_signed')) ]).mapped('amount_residual_signed'))
res['date_maj'] = self.env['account.bank.statement'].search([ res['date_maj'] = self.env['account.bank.statement'].search([
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter