Posts

Showing posts from September, 2017

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      ...

Install Package using Python

Install Python Package using Python😀 .Py : try:      import xlsx writter except:      os.system("pip install xlsxwritter")      import xlsxwritter

Python Amount-In-Words

Amount In Words in Python Step-1:             *First You have to import inflect package. Step-2:              *Create one variable and initialise inflect.engine() Step-3:              *Get Values from User. Step-4:              *Call the number_to_words() Step-5:              *Print the value. Program: >>> import inflect >>> kd=inflect.engine() >>> value=10 >>> value=kd.number_to_words(value) >>> value 'ten'