add menu, groups, planner-list, forms...
This commit is contained in:
parent
cd79072e2c
commit
ebb1efe7a8
15 changed files with 526 additions and 0 deletions
20
cashbook.py
Normal file
20
cashbook.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# This file is part of the cashbook-planner 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.pool import PoolMeta
|
||||
from trytond.model import fields
|
||||
from trytond.pyson import Eval, Bool
|
||||
|
||||
|
||||
class Cashbook(metaclass=PoolMeta):
|
||||
__name__ = 'cashbook.book'
|
||||
|
||||
planner = fields.One2Many(
|
||||
string='Scheduled Bookings', model_name='cashbook.planner',
|
||||
field='cashbook', depends=['btype'],
|
||||
states={'invisible': ~Bool(Eval('btype'))})
|
||||
|
||||
# end Cashbook
|
Loading…
Add table
Add a link
Reference in a new issue