Browse Source

Merge branch '10.0_imp_sequence_journal' of git+ssh://github.com/efatto/contract into 10.0

pull/315/head
sergiocorato 5 years ago
parent
commit
de5752d3dc
  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