Skip to content

Instantly share code, notes, and snippets.

View aipladmin's full-sized avatar

AIPL Admin aipladmin

View GitHub Profile
class lalshah_items(models.Model):
_name = 'lalshah_items.lalshah_items'
_description = 'lalshah_items.lalshah_items'
_rec_name = 'item_name'
item_name = fields.Char(string="Item Name")
item_description = fields.Text(string="Item Description")
item_unit = fields.Char(string="Unit")
item_hsn = fields.Integer(string="HSN")
@aipladmin
aipladmin / app.py
Created September 11, 2020 04:18 — forked from maccman/app.py
Stripe Flask Example
import os
from flask import Flask, render_template, request
import stripe
stripe_keys = {
'secret_key': os.environ['SECRET_KEY'],
'publishable_key': os.environ['PUBLISHABLE_KEY']
}
stripe.api_key = stripe_keys['secret_key']