bok, line, type, line-open-wizard, context
This commit is contained in:
parent
a9f3eb12b4
commit
ba442b726e
23 changed files with 974 additions and 8 deletions
4
book.py
4
book.py
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue