Skip to main content

The project intend to get a fully qt ui version for odoo, providing form a search view to be used in non web environment, like Allocation extension.

Project description

from PySide2 import QtWidgets# Welcome On Odoo Qt Project

The project intend to get a fully qt ui version for odoo, providing form a search view to be used in non web environment, like Allocation extension.

License Logo

bitbucket

Here's an example of some Python code to show an odoo Login Form:

Login

import sys
from PySide2 import QtWidgets
from PySide import QtGui
from OdooQtUi.connector import MainConnector

app = QtWidgets.QApplication(sys.argv)
connectorObj = MainConnector()
connectorObj.loginWithDial()    # Perform show of the login form


app.exec_()

Here's an example of some Python code to show an odoo Form: Selection_115.png

import sys
from PySide2 import QtWidgets
from OdooQtUi.connector import MainConnector

app = QtWidgets.QApplication(sys.argv)
connectorObj = MainConnector()
connectorObj.loginWithDial()    # Perform show of the login form

tmplViewObj = connectorObj.initFormViewObj('product.template')
tmplViewObj.loadIds([10])   # Edit Form on product.teplate with id =10

dialog = QtWidgets.QDialog()
lay = QtWidgets.QVBoxLayout()
lay.addWidget(tmplViewObj)
dialog.setLayout(lay)
dialog.exec_()
app.exec_()

Here's an example of some Python code to show a odoo tree view: Selection_118.png

import sys
from PySide2 import QtWidgets
from OdooQtUi.connector import MainConnector

app = QtWidgets.QApplication(sys.argv)
connectorObj = MainConnector()
connectorObj.loginWithDial()    # Perform show of the login form

tmplViewObj = tryListView('product.template', viewFilter=True)

dialog = QtWidgets.QDialog()
lay = QtWidgets.QVBoxLayout()
lay.addWidget(tmplViewObj)
dialog.setLayout(lay)
dialog.exec_()
app.exec_()

Have fun!

Github-flavored Markdown to write your content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for OdooQtUi, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size OdooQtUi-0.0.1-py3-none-any.whl (191.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size OdooQtUi-0.0.1.tar.gz (169.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page