20 lines
529 B
Python
20 lines
529 B
Python
# -*- 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
|