Angkor Wat temple in Cambodia

Angkor Wat is a temple complex in Cambodia and the largest religious monument in the world, on a site measuring 162.6 hectares (1,626,000 m2; 402 acres).

Kep twon in Cambodia

Kep is a seaside resort area in Cambodia and includes the small town of the same name which is the capital of Kep Province.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

31 January, 2018

How to config module of odoo from scratch with window os in localhost








There are many ways that we could build a module from scratch and I would like to show all of you by using a method.
Odoo provides a mechanism to help set up a new module, odoo-bin has a subcommand scaffold to create an empty module:


Go to command prompt in window then type
odoo-bin scaffold
eg. odoo-bin scaffold openacademy addons
After we create, it provide us with structures:




Then go to openacademy/__manifest__.py copy or type:

# -*- coding: utf-8 -*-
{
'name': "Open Academy",

'summary': """Manage trainings""",

'description': """
Open Academy module for managing trainings:
- training courses
- training sessions
- attendees registration
""",
'author': "My Company",
'website': "http://www.yourcompany.com",

# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml
# for the full list
'category': 'Test',
'version': '0.1',

# any module necessary for this one to work correctly
'depends': ['base'],

# always loaded
'data': [
# 'security/ir.model.access.csv',
'templates.xml',
'views/openacademy.xml',

],
# only loaded in demonstration mode
'demo': [
'demo.xml',
],
}
Then go to openacademy/__init__.py copy and type:
# -*- coding: utf-8 -*-
from . import controllers
from . import models
Then go to openacademy/controllers.py
# -*- coding: utf-8 -*-
from odoo import http
Then go to openacademy/models.py

from odoo import models, fields, api
class Course(models.Model):
_name = 'openacademy.course'
name = fields.Char(string="Title", required=True)
description = fields.Text()
Then go to openacademy/views/openacademy.xml


<?xml version="1.0" encoding="UTF-8"?>
<odoo>
        <!-- window action -->
        <!--
            The following tag is an action definition for a "window action",
            that is an action opening a view or a set of views
        -->
        <record model="ir.actions.act_window" id="course_list_action">
            <field name="name">Courses</field>
            <field name="res_model">openacademy.course</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
            <field name="help" type="html">
                <p class="oe_view_nocontent_create">Create the first course
                </p>
            </field>
        </record> 
        <!-- top level menu: no parent -->
        <menuitem id="main_openacademy_menu" name="Open Academy"/>
        <!-- A first level in the left side menu is needed
             before using action= attribute -->
        <menuitem id="openacademy_menu" name="Open Academy"
                  parent="main_openacademy_menu"/>
        <!-- the following menuitem should appear *after*
             its parent openacademy_menu and *after* its
             action course_list_action -->
        <menuitem id="courses_menu" name="Courses" parent="openacademy_menu"
                  action="course_list_action"/>
        <!-- Full id location:
             action="openacademy.course_list_action"
             It is not required when it is the same module -->
</odoo>

After we copy and past code follow this structure ready. You could to (http://localhost:8069/web) then login by username and password that you config then go to setting menu -> click Activate the developer mode then click on App -> click Update App List then search Open Academy after you will see Open Academy module display and you could install it.

25 September, 2015

How to store customer profile in CIM (Customer Information Manager) authorize.net

With Customer Information Manager of authorize.net, we can store customer, payment and shipping profile in CIM for next payment without requiring user to input all information in credit card again. You could visit this url (http://developer.authorize.net/api/cim/) and download of library and read it. So, it could help you to implement with it. If you need more any help from me, please contact me by email chouchantha@gmail.com or Skype (chanthachou).

07 June, 2011

Layout of E-Technologynew


Hi, everybody this is new layout of E-Technology that I just create it. It will talk about technology in Cambodia or around the world.



Please visit E-technologynew for more information.

07 October, 2009

All website will audible(talk) soon

Just remember yesterday that was the 40th Birthday of the Internet and we are now on 2nd-3rd generation of Internet world.

when it was starting at California University between two computers, not any single person could though about today’s world. gradually many chapters added in this world wide web like hacking, virus, pornography, black mailing etc.
but one thing is for sure that there are not much disadvantageous as it’s advantage.

one more chapter will added soon in this history book. soon all website over the world wide will be we can listen, means completely audible. we have to just select the text and all thing go automatically. but if any websites owner who don’t care about it will run at the straight road.
This project is given to the BarrierBreak Technologies which company will take 10 to 15 % cost of it’s ordinary. however for using this service websites must have content with some basic guidelines of the web world.

18 August, 2009

BarCamp Phnom Penh 09


BarCamp Phnom Penh 09 Team will open seminar about technology and new discovery, celebrating on 03 to 04 October 2009 at PAÑÑASASTRA University of Cambodia, #184 Preah Norodom Blv (South of Independence Monument). People want to join it please enroll soon.

17 August, 2009

Free domain and Hosting



Nowadays, There are some of free domain and hosting such as www.000webhost.com and www.ueuo.com. So, many people especially with students they can create domain and hosting with all of them.They will provide FTP account for us to hosting that is why make us easy to control our domain.


Related Posts Plugin for WordPress, Blogger...