prepare test for porting
This commit is contained in:
parent
619a17bcd6
commit
3467c08895
16 changed files with 690 additions and 373 deletions
4
mixin.py
4
mixin.py
|
@ -23,6 +23,8 @@ DEPENDS = ['state', 'state_cashbook']
|
|||
class SecondCurrencyMixin:
|
||||
""" two fields for 2nd currency: amount + rate
|
||||
"""
|
||||
__slots__ = ()
|
||||
|
||||
amount_2nd_currency = fields.Numeric(
|
||||
string='Amount Second Currency',
|
||||
digits=(16, Eval('currency2nd_digits', 2)),
|
||||
|
@ -202,6 +204,8 @@ class SecondCurrencyMixin:
|
|||
class MemCacheIndexMx:
|
||||
""" add index to 'create_date' + 'write_date'
|
||||
"""
|
||||
__slots__ = ()
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
super(MemCacheIndexMx, cls).__setup__()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue