2017-07-07 11:13:15 +02:00
|
|
|
diff -r 62f81d7eb78b account.py
|
|
|
|
--- a/trytond/trytond/modules/account/account.py Fri Jul 07 10:04:01 2017 +0200
|
|
|
|
+++ b/trytond/trytond/modules/account/account.py Fri Jul 07 10:30:29 2017 +0200
|
2017-07-04 09:44:35 +02:00
|
|
|
@@ -1261,7 +1261,7 @@
|
|
|
|
@classmethod
|
|
|
|
def __setup__(cls):
|
|
|
|
super(GeneralLedgerLine, cls).__setup__()
|
|
|
|
- cls._order.insert(0, ('date', 'ASC'))
|
2017-07-10 14:42:58 +02:00
|
|
|
+ cls._order = [('date', 'DESC'), ('id', 'DESC')]
|
2017-07-04 09:44:35 +02:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def table_query(cls):
|
|
|
|
@@ -1308,7 +1308,7 @@
|
|
|
|
line_query, fiscalyear_ids = Line.query_get(line)
|
|
|
|
return line.join(move, condition=line.move == move.id
|
|
|
|
).join(account, condition=line.account == account.id
|
|
|
|
- ).select(*columns, where=line_query)
|
|
|
|
+ ).select(*columns)
|
|
|
|
|
|
|
|
def get_party_required(self, name):
|
|
|
|
return self.account.party_required
|
2017-07-07 11:13:15 +02:00
|
|
|
diff -r 62f81d7eb78b view/general_ledger_line_context_form.xml
|
|
|
|
--- a/trytond/trytond/modules/account/view/general_ledger_line_context_form.xml Fri Jul 07 10:04:01 2017 +0200
|
|
|
|
+++ b/trytond/trytond/modules/account/view/general_ledger_line_context_form.xml Fri Jul 07 10:30:29 2017 +0200
|
|
|
|
@@ -6,4 +6,12 @@
|
|
|
|
<label name="party_cumulate"/>
|
|
|
|
<field name="party_cumulate"/>
|
|
|
|
</xpath>
|
|
|
|
+ <xpath expr="/form/field[@name='fiscalyear']" position="replace"/>
|
|
|
|
+ <xpath expr="/form/label[@name='fiscalyear']" position="replace"/>
|
|
|
|
+ <xpath expr="/form/field[@name='company']" position="replace"/>
|
|
|
|
+ <xpath expr="/form/label[@name='company']" position="replace"/>
|
|
|
|
+ <xpath expr="/form/field[@name='start_period']" position="replace"/>
|
|
|
|
+ <xpath expr="/form/label[@name='start_period']" position="replace"/>
|
|
|
|
+ <xpath expr="/form/field[@name='end_period']" position="replace"/>
|
|
|
|
+ <xpath expr="/form/label[@name='end_period']" position="replace"/>
|
|
|
|
</data>
|