This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64 | |
| import sys | |
| import time | |
| BATCH_SIZE = 50 | |
| last_id = 0 | |
| processed = 0 | |
| batch_no = 0 | |
| Attachment = env['ir.attachment'].with_context(active_test=False) | |
| print("Starting attachment file_size backfill…") | |
| sys.stdout.flush() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <t t-if="website.id == 1"> | |
| <!-- Content for the first website--> | |
| </t> | |
| <t t-if="website.id == 2"> | |
| <!-- Content for the second website--> | |
| </t> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| map = fields.Monetary(string='Informative Words Here', copy=False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # You need to import the logger: | |
| import logging | |
| _logger = logging.getLogger(__name__) | |
| # Then something like this: | |
| _logger.info('FYI: This is happening') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log(jQuery().jquery); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sshfs -o allow_other,default_permissions "COMPUTER_NAME\USER@YOUR.IP.ADDRESS:/Users/USER/Desktop/SHARED_FOLDER" /mnt/MOUNT_POINT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat index.html | sed -n 's/.*href="\([^"]*\)".*/\1/p' |