Skip to content

Instantly share code, notes, and snippets.

Avatar

Siddique Ahmad SiddiqueAhmad

  • Islamabad, Pakistan
View GitHub Profile
@SiddiqueAhmad
SiddiqueAhmad / Message.xml
Created Jul 1, 2022
axelor model entity listener, using events like preremove
View Message.xml
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.4.xsd">
<module name="message" package="com.axelor.apps.message.db"/>
<entity name="Message">
<entity-listener class="com.edgesyn.message.db.repo.MessageListener"/>
</entity>
@SiddiqueAhmad
SiddiqueAhmad / app.js
Created Feb 12, 2022
upload file and form field
View app.js
var express = require('express')
var app = express()
const multer = require('multer')
const upload = multer({ dest: 'uploads/' })
// POST /login gets urlencoded bodies
app.post('/sample', upload.single('uploaded_file'), function (req, res) {
console.log(req.file)
View keybase.md

Keybase proof

I hereby claim:

  • I am siddiqueahmad on github.
  • I am siddique (https://keybase.io/siddique) on keybase.
  • I have a public key ASAAt-L3WzFSmjlDjnuwYtj0kiT0yjPrerfwIKCROmgEogo

To claim this, I am signing this object:

@SiddiqueAhmad
SiddiqueAhmad / company-dropdown-image.png
Last active Oct 10, 2021
to show company list on top in axelor, company folder is created under webapp folder of new module
@SiddiqueAhmad
SiddiqueAhmad / form.action.js
Last active Jun 16, 2020
related to selection based on dynamic select list
View form.action.js
/*
* Axelor Business Solutions
*
* Copyright (C) 2005-2020 Axelor (<http://axelor.com>).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
View result.json
[{"name":" Schweppes Soft Drink (Ginger Ale,Tonic Water,300ml) ","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/5/4/5472.jpg","price":80,"lastpurchased":38},{"name":"Heinz Beans (Baked Beanz,415g)","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/0/0/003181_1.jpg","price":110,"lastpurchased":84},{"name":"Bounty Chocolate (Bar) 57g","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/b/o/bounty_chocolate_coconut_85_g__1.jpg","price":60,"lastpurchased":47.9166},{"name":"Old Elpaso Tortila 8 Flour Wraps 8 inch 311g","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/4/6/46000273426.jpg","price":350,"lastpurchased":295},{"name":"Mirinda Soft Drink (150ml)","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/0/2/020310090758_untitled-1_20copy.jpg","price":60,"lastpurchased":