neu: kategorie, config + test

This commit is contained in:
Frederik Jaeckel 2022-08-09 15:08:41 +02:00
parent b9bb433c39
commit d6a8b254a3
28 changed files with 1255 additions and 35 deletions

View file

@ -42,6 +42,9 @@ class Book(Workflow, ModelSQL, ModelView):
lines = fields.One2Many(string='Lines', field='cashbook',
model_name='cashbook.line',
states=STATES, depends=DEPENDS)
account = fields.Many2One(string='Account', select=True,
model_name='account.account', ondelete='RESTRICT',
states=STATES, depends=DEPENDS)
state = fields.Selection(string='State', required=True,
readonly=True, selection=sel_state_book)
state_string = state.translated('state')