mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 17:32:00 +02:00
19.0 vanilla
This commit is contained in:
parent
0a7ae8db93
commit
991d2234ca
416 changed files with 646602 additions and 300844 deletions
13
odoo-bringout-oca-ocb-base/odoo/_monkeypatches/csv.py
Normal file
13
odoo-bringout-oca-ocb-base/odoo/_monkeypatches/csv.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import csv
|
||||
|
||||
|
||||
def patch_module():
|
||||
""" The default limit for CSV fields in the module is 128KiB,
|
||||
which is not quite sufficient to import images to store
|
||||
in attachment. 500MiB is a bit overkill, but better safe
|
||||
than sorry I guess
|
||||
"""
|
||||
class UNIX_LINE_TERMINATOR(csv.excel):
|
||||
lineterminator = '\n'
|
||||
csv.field_size_limit(500 * 1024 * 1024)
|
||||
csv.register_dialect("UNIX", UNIX_LINE_TERMINATOR)
|
||||
Loading…
Add table
Add a link
Reference in a new issue