mirror of
https://github.com/NaN-tic/trytond-analytic_line_state.git
synced 2023-12-14 03:33:02 +01:00
Renamed function to don't colision with default values methods
This commit is contained in:
parent
7863b90e32
commit
ef5b0fab32
10
analytic.py
10
analytic.py
|
@ -357,16 +357,16 @@ class AnalyticLine:
|
|||
def default_state():
|
||||
return 'draft'
|
||||
|
||||
def default_move_line_field(field_name):
|
||||
def _default_move_line_field(field_name):
|
||||
@staticmethod
|
||||
def default_value():
|
||||
return Transaction().context.get(field_name)
|
||||
return default_value
|
||||
|
||||
default_debit = default_move_line_field('debit')
|
||||
default_credit = default_move_line_field('credit')
|
||||
default_journal = default_move_line_field('journal')
|
||||
default_party = default_move_line_field('party')
|
||||
default_debit = _default_move_line_field('debit')
|
||||
default_credit = _default_move_line_field('credit')
|
||||
default_journal = _default_move_line_field('journal')
|
||||
default_party = _default_move_line_field('party')
|
||||
|
||||
@staticmethod
|
||||
def default_date():
|
||||
|
|
Loading…
Reference in a new issue