Posts

Showing posts with the label ODOO

How to Return a View Using Python

  How to Return a View Using Python    @api.multi     def invoice_view_form(self):         ir_model = self.env['ir.model.data']         tree_view_id = ir_model.get_object_reference('account','invoice_tree')[1]         form_view_id = ir_model.get_object_reference('account','invoice_form')[1]         inv_ids = self.env['account.invoice'].search([('sale_id','=',self.id)])                 return {             'name': "Invoices",             'view_type': 'form',             'domain' : [('sale_id','=',self.id)],             'view_mode': 'tree,form',             'view_id': wiz_view_id,             'views' : [(wiz_view_id,'tree'),(form_view_id,'form')], ...

How to Delete Menuitem-Odoo

How to Delete Menu item Delete base menuitem is simple. We just need to use delete tag and we need to add the menu item id. Syntax     <delete model="ir.ui.menu" id="Menuitem_id" /> Example <delete model="ir.ui.menu" id="base.module_mi" />

Google Drive Integration

Image
Google Drive Integration in ODOO Install Google Drive Module from apps. Goto settings and select General Settings. At the Bottom you can see Google Integrations. click Generate Google Authorization Code and it will navigate to gmail account and login your account . click allow to give access copy the following code and pase inside of odoo>general settings>google drive> After that u have to configure template For that create one Document file or PPT or Google sheet in Google Drive Save the file .Right click one the file u can see Share option click that and copy the link in Odoo click Configure u r template or goto settings>google drive>templates>add Enter Template name and choose module name like sale.order or crm.lead paste the link in template url.Save it and Goto that model Click Action(On the Top-Middle Form) You can see your google drive template name. Click That At first Time You w...

Learn Python

Websites for learn Python 1) https://supportuae.wordpress.com/ 2) http://www.wikihow.com/Open-Ports-in-Linux-Server-Firewall 3) http://www.nevprobusinesssolutions.com/odoo-how-to-overide-orm-method-name_get/ 4) https://stackoverflow.com/questions/36729200/hide-some-lines-in-odoo- treeview 5)http://databit-odoo-technical.readthedocs.io/en/latest/howtos/themes.html

How to update or reset password in odoo

How to update or reset password in odoo: Step 1:            # Goto Python terminal. Or Type ctrl+alt+t . Step 2:             # Goto postgres user.                       ⇛ sudo su postgres Step 3:             #Goto your Database(DB)                      ⇛ psql database_name Step 4:            #Enter a Query                        ⇛ select * from res_users; Step 5:            # Find Your username from the results and note it down Your  id            Result:                      id     bool     username      ...

Uninstall ODOO module using terminal

How to Uninstall Module from commend line: step-1 :        Goto Terminal>Type sudo su postgres step-2:         Type "psql database_name" step-3:               update ir_module_module set state='to remove' where name='module_name' and state='installed';

Create Sequence number

Create Sequence Number in ODOO Sequence number: In Xml: <?xml version="1.0" encoding="utf-8"?> <openerp>     <data noupdate="1">   #no change         <!-- Sequences for sale.order -->         <record id="customer_lead" model="ir.sequence.type">             <field name="name">sequence customer</field>             <field name="code">customer.sequence</field>         </record>         <record id="seq_cust_name" model="ir.sequence">             <field name="name">sequence customer</field>            ...

Odoo Autostart-Server

ODOO Auto-Start Server 1)   Locate openerp-server.conf file from odoo server files.                  Default path  :  /opt/openerp/server/install/openerp-server.conf                  Manual Search  from terminal:            locate openerp-server.conf 2) Open file and set following basic parameters for default configuration: [options] ; This is the password that allows database operations: ; admin_passwd = admin db_host = False db_port = False db_user = odoo db_password = False dbfilter = .* xmlrpc_port = 8069 addons_path = /usr/lib/python2.7/dist-packages/openerp/addons ; (Custom addons path can be added and separated by commas (,)) 3)Check your odoo server is running from above configured openerp-server.conf file. 4)     Create new script f...

How to Install Odoo

OpenERP Installation Manual: --------------------------- Step 1: Copy the openerp folder in a location. Ex: /opt/odoo-8 Step 2: Python Installation Files:(dependancy files) From Terminal sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata \ python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid \ python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing \ python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject \ python-webdav python-werkzeug python-xlwt python-yaml python-zsi Step 3: Postgresql Install: sudo apt-get install postgresql Note:    (sudo apt-get install postgresql 9.3) Create user in postgesql database: sudo su postgres createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt user_name CREATE ROLE selvakd LOGIN ENCRYPTED PASSWORD 'password' SUPERUS...