Git Product home page Git Product logo

odoo's Introduction

Integration Odoo

This is a python script to run some calls using the odoo api.

Features supported:

  • Authenticate demo user.
  • Insert a new customer.
  • Update RG Fisica customer.
  • Present the number of registered customers at the base.
  • List the top ten customers in alphabetical order.
  • List the largest sale made.
  • List the items of the larger sale made.
  • Present the percentage in sales.

How does it work? See below:

Authenticated

To make any call via API you must be authenticated. At the terminal run the following command

python index.py
>>> from index import odooActivities
>>> obj = odooActivities()
>>> obj.authenticate()

After being authenticated you can use the activities available in the script with the Odoo API.

Insert new customer

>>> obj.insert('name', 'email', 'phone', 'zip_code')

Update RG customer

>>> obj.update('number_rg_fisica')

Count number of customers

>>> obj.count()

List customers ordering name

>>> obj.list_customers_ordering_name()

List greatest sale made

>>> obj.list_greatest_sale_made()

List order line greatest sale made

>>> obj.list_order_line_greatest_sale_made()

Show Percentage Sales

>>> obj.show_percentage_sales()

odoo's People

Contributors

denis-souza avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.