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
<?xml version="1.0" encoding="UTF-8"?> | |
<odoo> | |
<data> | |
<record id="student_menu_action" model="ir.actions.act_window"> | |
<field name="name">Students</field> | |
<field name="res_model">student.student</field> | |
<field name="view_type">form</field> | |
<field name="view_mode">tree,form</field> | |
<field name="domain">[]</field> | |
<field name="help" type="html"> |
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 -*- | |
{ | |
"name": "assettracking", | |
"summary": """ | |
Asset tracking includes the functionality of inventory module""", | |
"description": """ | |
Asset tracking system was used in in-house production for NECTEC project | |
""", | |
"author": "NECTEC", | |
"website": "https://www.nectec.or.th/en/", |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<odoo> | |
<data> | |
<record id="student_menu_action" model="ir.actions.act_window"> | |
<field name="name">Students</field> | |
<field name="res_model">student.student</field> | |
<field name="view_type">form</field> | |
<field name="view_mode">tree,form</field> | |
<field name="domain">[]</field> | |
<field name="help" type="html"> |
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
Run your CMD as administration and copy and paste the command below and hit enter. | |
"C:\Program Files (x86)\Odoo 12.0\python\python.exe" "C:\Program Files (x86)\Odoo 12.0\server\odoo-bin" scaffold manageasset "C:\Users\User\Desktop\custom_addons" | |
<*==============================================*> | |
Command explanation: | |
"C:\Program Files (x86)\Odoo 12.0\python\python.exe" "C:\Program Files (x86)\Odoo 12.0\server\odoo-bin": this command is the respository of your odoo12 instalation -It used to be odoo-bin. | |
"scaffold": will create the module. |
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
Error message: | |
None | |
Traceback (most recent call last): | |
File "C:\Program Files (x86)\Odoo 12.0\server\odoo\api.py", line 1039, in get | |
value = self._data[key][field][record._ids[0]] | |
KeyError: 2 | |
During handling of the above exception, another exception occurred: |
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
print("Please, give your module name") | |
x = input() | |
print("insert 1 to use default directory, 2 to use your custom addon directory") | |
y = input() | |
if int(y) == 1: | |
print("Command to create the module. * Copy and paste in cmd - run cmd as administration") | |
directory = r"C:\Users\User\Desktop\custom_addons" | |
command = "\"C:\Program Files (x86)\Odoo 12.0\python\python.exe\""+" \"C:\Program Files (x86)\Odoo 12.0\server\odoo-bin\""+ " scaffold " + x | |
print(command + f' "{directory}"') | |
else: |
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
var utility = ['pink bag','pink book','pink pen','pink shirt','pink shoe']; | |
var shop = [{'shopname':'aa shop','sell':'pink bag','price':30000,'distance':2},{'shopname':'bb shop','sell':'pink shirt','price':10000,'distance':3},{'shopname':'cc shop','sell':'pink shoe','price':15000,'distance':1},{'shopname':'dd shop','sell':'pink skirt','price':25000,'distance':0.5}] | |
var how ={'grab':5000,'own motor':2000}; | |
var moneyihave = 50000; | |
var findperfectgift = async(moneyihave)=>{ | |
findshop(moneyihave,(whatshop,whattobuy,moneyileft)=>{ | |
findhow(moneyileft,(moneytopay,howigo)=>{ |
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
/// closure in javascript | |
// using parentheses | |
{ | |
const value = 0 | |
} | |
//console.log(value); | |
OlderNewer