Add test that fields in __access__ are required

Closes #14261
This commit is contained in:
Nicolas Évrard
2025-09-29 13:16:49 +02:00
parent c9d323f544
commit 9839c0902d
9 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -1086,7 +1086,8 @@ del _states
class LineGroup(ModelSQL, ModelView):
__name__ = 'account.statement.line.group'
_rec_name = 'number'
statement = fields.Many2One('account.statement', 'Statement')
statement = fields.Many2One(
'account.statement', 'Statement', required=True)
journal = fields.Function(fields.Many2One('account.statement.journal',
'Journal'), 'get_journal', searcher='search_journal')
number = fields.Char('Number')