book neu
This commit is contained in:
parent
92e5dd6026
commit
a9f3eb12b4
14 changed files with 292 additions and 2 deletions
20
book.py
Normal file
20
book.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# This file is part of the cashbook-module from m-ds for Tryton.
|
||||
# The COPYRIGHT file at the top level of this repository contains the
|
||||
# full copyright notices and license terms.
|
||||
|
||||
from trytond.model import ModelView, ModelSQL, fields
|
||||
|
||||
|
||||
class Book(ModelSQL, ModelView):
|
||||
'Account'
|
||||
__name__ = 'cashbook.book'
|
||||
|
||||
name = fields.Char(string='Name', required=True)
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super(Book, cls).__setup__()
|
||||
cls._order.insert(0, ('name', 'ASC'))
|
||||
|
||||
# end Book
|
Loading…
Add table
Add a link
Reference in a new issue