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 -*- | |
# Part of Odoo. See LICENSE file for full copyright and licensing details. | |
from odoo import api, models | |
from odoo.http import request | |
class Http(models.AbstractModel): | |
_inherit = 'ir.http' |
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 -*- | |
# Default Method | |
# Get Unique product details => group by reapit_product_id and sum by quantity | |
grpby_key = 'product_id' | |
sum_key = 'qty' | |
data = [ | |
{'product_id': 1, 'desc': 'Desc1', 'qty': 2, 'unit_price': 2, 'total': 4}, |
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 | |
DBNAME='odoo10_sample' | |
DATETIME=$(date +"%Y%m%d%H%M%S") | |
DBFILENAME=${DBNAME}_${DATETIME} | |
HOMEDIR=`echo $HOME` | |
MANAGEDIR='/tmp' # Here i am using tmp folder for test | |
BACKUPDIR=$MANAGEDIR'/DBBACKUP' | |
FILESTORE_PATH=$HOMEDIR'/.local/share/Odoo/filestore/' |