Skip to content

Instantly share code, notes, and snippets.

Avatar

Yoinier Hernandez Nieves YnievesDotNet

View GitHub Profile
View error.log
Environment:
Request Method: GET
Request URL: http://proxy.local/accounts/login/
Django Version: 1.8.17
Python Version: 2.7.5
Installed Applications:
('django.contrib.admin',
@YnievesDotNet
YnievesDotNet / Save.php
Created Feb 28, 2017
Save extra data on vTigerCRM 6
View Save.php
<?php
class Module_Save_Action extends Vtiger_Save_Action {
public function process(Vtiger_Request $request) {
$recordModel = $this->getRecordModelFromRequest($request);
$accountId = (int)$request->get('module_tks_account');
$accountModel = Vtiger_Record_Model::getInstanceById($accountId, 'Accounts');
$fieldList = array(
View product_cum_model.py
from odoo import models, fields
class ProductTemplate(models.Model):
_inherit = "product.template"
cum = fields.Char(
'CUM Code', size=40
)