optimize search-queries, line: fix state-selection
This commit is contained in:
parent
6550baa468
commit
7a4fd94981
6 changed files with 20 additions and 20 deletions
|
@ -9,7 +9,7 @@ from trytond.pool import Pool
|
|||
from trytond.pyson import Eval, If
|
||||
from trytond.report import Report
|
||||
from trytond.i18n import gettext
|
||||
from .line import sel_bookingtype, STATES, DEPENDS
|
||||
from .line import sel_bookingtype, sel_linestate, STATES, DEPENDS
|
||||
from .book import sel_state_book
|
||||
from .mixin import SecondCurrencyMixin, MemCacheIndexMx
|
||||
|
||||
|
@ -90,7 +90,7 @@ class SplitLine(SecondCurrencyMixin, MemCacheIndexMx, ModelSQL, ModelView):
|
|||
selection=sel_bookingtype), 'on_change_with_bookingtype')
|
||||
state = fields.Function(fields.Selection(
|
||||
string='State', readonly=True,
|
||||
selection=sel_linetype), 'on_change_with_state')
|
||||
selection=sel_linestate), 'on_change_with_state')
|
||||
cashbook = fields.Function(fields.Many2One(
|
||||
string='Cashbook',
|
||||
readonly=True, states={'invisible': True}, model_name='cashbook.book'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue