Commit e7104477 by François C.

Raise limit of returned statement lines (3000 by default, if nothing is specified)

parent 3e493613
Pipeline #1022 passed with stage
in 21 seconds
...@@ -27,7 +27,7 @@ class CagetteSales(models.Model): ...@@ -27,7 +27,7 @@ class CagetteSales(models.Model):
# Get payment lines # Get payment lines
cond = [['statement_id', 'in', statements]] cond = [['statement_id', 'in', statements]]
fields = ["partner_id", "amount", "journal_id", "create_date", "date"] fields = ["partner_id", "amount", "journal_id", "create_date", "date"]
payments = self.o_api.search_read('account.bank.statement.line', cond, fields, order="create_date ASC") payments = self.o_api.search_read('account.bank.statement.line', cond, fields, order="create_date ASC", limit=50000)
item = None item = None
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment