Skip to content

Commit

Permalink
Merge pull request #39 from feketemihai/11.0-period_close_posted
Browse files Browse the repository at this point in the history
Add posted state in period closing.
  • Loading branch information
feketemihai committed Apr 19, 2018
2 parents 925aa51 + 1870bc2 commit e863309
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def close(self, date_from=None, date_to=None):
for closing in self:
ctx = self.env.context.copy()
ctx['strict_range'] = True
ctx['state'] = 'posted'
ctx['date_from'] = date_from
ctx['date_to'] = date_to
account_res = self.with_context(ctx)._get_accounts(
Expand Down

0 comments on commit e863309

Please sign in to comment.