Skip to content

Instantly share code, notes, and snippets.

View MaxMorais's full-sized avatar
🏢
Building Solutions in Tech

Maxwell Morais MaxMorais

🏢
Building Solutions in Tech
View GitHub Profile
<style>
table.black {
background-color: #000 !important;
height: 1px;
width: 100%;
}
table.black > tr > td {
color: white;
.panel {
overflow: hidden;
text-align: left;
margin: 0;
border: 0;
-moz-border-radius: 0 0 0 0;
-webkit-border-radius: 0 0 0 0;
border-radius: 0 0 0 0;
}
.panel-header,
This file has been truncated, but you can view the full file.
[
{
"fields": [
{
"fields": [
{
"label": "Value",
"fieldType": "text",
"name": "value"
}
@MaxMorais
MaxMorais / document_tracking.py
Created March 31, 2015 12:48
Module config example
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Documents"),
"icon": "icon-star",
"items": [
{
@MaxMorais
MaxMorais / br_l10n_br_account_chart_template.json
Created March 20, 2015 09:05
Plano de Contas Referencial Brasileiro para o ERPNext
{
"country_code": "br",
"name": "Plano de Contas Referencial Brasileiro",
"is_active": "No",
"tree": {
"1 - ATIVO": {
"1.01 - CIRCULANTE": {
"1.01.01 - DISPONIBILIDADES": {
"1.01.01.01.00 - Caixa": {
"legder_or_group": "Ledger",
@MaxMorais
MaxMorais / extended_controls.js
Created January 28, 2015 21:36
Custom Formatters for frappe ControlData
frappe.ui.form.ControlData = frappe.ui.form.ControlData.extend({
format_for_input: function(v, callback){
v = this._super(v, callback);
if (v+''==='') return '';
switch (this.df.options){
case('Phone'):
if (v+''=='') return '';
// phone may start with + and must only have numbers later, '-' and ' ' are stripped
v = v.replace(/ /g, '').replace(/-/g, '').replace(/\(/g, '').replace(/\)/g, '');
@MaxMorais
MaxMorais / refresh_event_fix.patch
Created December 9, 2014 21:28
Refresh Event Fix Patch
From eeb8334a9238e04d6b411c5759f5a8cb929effa4 Mon Sep 17 00:00:00 2001
From: MaxMorais <[email protected]>
Date: Tue, 9 Dec 2014 16:14:20 -0500
Subject: [PATCH] This commit fix the refresh event for TableControl with more
than 100 fields, and allow the support for nested tables
---
frappe/public/js/frappe/form/control.js | 78 +++++++++++++++++++++++++--------
frappe/public/js/frappe/form/grid.js | 8 ++--
frappe/public/js/frappe/form/layout.js | 11 ++---
def gera_boleto():
import datetime
import pyboleto
from pyboleto.bank.caixa import BoletoCaixa
from pyboleto.pdf import BoletoPDF
import os
listaDadosCaixa = []
for i in range(2):
d = BoletoCaixa()
{background-color: #465455} // barra superior
BUSCA
{background-color: #ECEDEF} // campo busca
{background-color: #5A6668} // botão busca
{background-color: #FFFFFF} // ícone busca
{background-color: #2D2D2D} // fundo
Description
@MaxMorais
MaxMorais / classy.js
Created July 2, 2014 20:25
A pure javascript frappe client
/**
* Classy - classy classes for JavaScript
*
* :copyright: (c) 2011 by Armin Ronacher.
* :license: BSD.
*/
!function (definition) {
if (typeof module != 'undefined' && module.exports) module.exports = definition()
else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)
else this.Class = definition()