bok, line, type, line-open-wizard, context

This commit is contained in:
Frederik Jaeckel 2022-08-05 16:47:43 +02:00
parent a9f3eb12b4
commit ba442b726e
23 changed files with 974 additions and 8 deletions

View file

@ -11,6 +11,10 @@ class Book(ModelSQL, ModelView):
__name__ = 'cashbook.book'
name = fields.Char(string='Name', required=True)
btype = fields.Many2One(string='Account Type', required=True,
model_name='cashbook.type', ondelete='RESTRICT')
lines = fields.One2Many(string='Lines', field='account',
model_name='cashbook.line')
@classmethod
def __setup__(cls):