8.0 account default draft move

Port account default draft move and account constraint to 8.0
I think it would be better to do the write on all the entries at once (1 UPDATE), something like
```
entries = self.mapped('line_ids.journal_entry_id')
entries.write({'state': 'draft'})
```
(not 100% sure for the syntax of `mapped`, to check