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 urllib | |
| testfile = urllib.URLopener() | |
| testfile.retrieve("http://www.sat.gob.mx/informacion_fiscal/tablas_indicadores/Documents/tc_2015.xls", "tc_2015.xls") |
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
| - | |
| Setting Full width on theme_avantgarde. Due to the geniuses odoos guys I am | |
| trying to disable one and enable the oposite instead use the model method. | |
| - | |
| !python {model: ir.ui.view}: | | |
| self.write(cr, uid, [ref('theme_avantgarde.avantgarde_option_layout_fullwidth')], {'active': True}, context={'active_test': True}) | |
| self.write(cr, uid, [ref('theme_avantgarde.avantgarde_option_layout_boxed')], {'active': False}, context={'active_test': True}) |
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
| language: python | |
| python: | |
| - "2.7" | |
| env: | |
| - VERSION="8.0" ODOO_REPO="vauxoo/odoo" INCLUDE="lodi" | |
| - VERSION="8.0" ODOO_REPO="vauxoo/odoo" UNIT_TEST="1" | |
| virtualenv: |
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
| <!-- Customization modal --> | |
| <template id="avantgarde_custom_modal_less" inherit_id="website.assets_frontend" active="True"> | |
| <xpath expr="//link[last()]" position="after"> | |
| <link href="/theme_avantgarde/static/src/less/customize_modal.less" rel="stylesheet" type="text/less"/> | |
| </xpath> | |
| </template> |
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
| File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/fiscal.py", line 181, in totalize | |
| result = self._driver.coupon_totalize(discount, surcharge, taxcode) | |
| File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP25.py", line 635, in coupon_totalize | |
| type, int(value * Decimal('1e2')))) | |
| File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP4000.py", line 227, in _send_command | |
| self._check_error(retval) | |
| File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP25.py", line 365, in _check_error | |
| status.check_error() | |
| File "/usr/local/lib/python2.7/site-packages/stoqdrivers/printers/bematech/MP4000.py", line 544, in check_error | |
| self._check_error_in_dict(self.st2_codes, self.st2) |
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
| #!/bin/bash | |
| #---------- | |
| # Akkarin's Simple S3 Screenshot Script | |
| # | |
| # Requirements: | |
| # - shutter | |
| # - awscli | |
| # - zenity | |
| # | |
| # Note: The directory defined in $SCREENSHOT_PATH needs to exist! |
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
| <template id="product_box" name="product"> | |
| <hi><t t-esc="title"/></h1> | |
| <div> | |
| <t t-set="counter" t-value=1/> | |
| <t t-foreach="products" t-as="p"> | |
| <t t-call="product_detail_vertical"/> | |
| </t> | |
| </div> | |
| </template> |
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
| print dir(invoice.ups) | |
| for e in dir(invoice.ups): | |
| if not e.startswith('__'): | |
| print '---- attr: ', e | |
| print type(invoice.ups.__getattribute__(e)) | |
| print invoice.ups.__getattribute__(e) |
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
| # coding: utf-8 | |
| import click | |
| '''Command line interface for cfdilib | |
| ''' | |
| class Config(object): | |
| def __init__(self): | |
| self.verbose = False |