Browse Source

[IMP] add sequence in search default journal

pull/310/head
sergiocorato 6 years ago
parent
commit
71b886866f
  1. 3
      contract/models/account_analytic_contract.py

3
contract/models/account_analytic_contract.py

@ -80,4 +80,5 @@ class AccountAnalyticContract(models.Model):
domain = [
('type', '=', 'sale'),
('company_id', '=', company_id)]
return self.env['account.journal'].search(domain, limit=1)
return self.env['account.journal'].search(
domain, order='sequence asc', limit=1)
Loading…
Cancel
Save