Saravanan666/pypi-org huggingface dataset:
Package: odooku-odoo-website-slides
DISCLAIMER: All files packaged by this application are Copyright (c) 2004-2017 Odoo S.A. Original LICENSE and COPYRIGHT file is included. The purpose of these packages is to provide an easy and reliable installation method for Odoo.[![Build Status](https://travis-ci.org/odooku/odooku-odoo.svg?branch=11.0)](https://travis-ci.org/odooku/odooku-odoo)## Installation` pip installodooku-odoo-addons`This will install the full Odoo suite. If you want to keep installation and dependency size to a minimal, feel free to install the seperate packages like so:` pip installodooku-odoo-[app]`Available options are:mailaccount_invoicingboardcalendarcontactscrmfleethrhr_attendancehr_expensehr_holidayshr_recruitmentprojecthr_timesheetim_livechatlunchmaintenancemass_mailingstockmrpsale_managementmrp_repairnotepoint_of_salepurchasewebsitesurveywebsite_blogwebsite_eventwebsite_forumwebsite_salewebsite_slidesextraaddons## Build requirementsWhile the Odoo source code does not require any distribution libraries, it’s dependencies do. In order for them to build successfully follow instructions below:#### Ubuntu 16.04 LTS` sudoapt-getinstalllibpq-devlibxml2-devlibxslt1-devlibldap2-devlibsasl2-devlibssl-dev`#### OSX` brew install postgresql `## External dependenciesAt runtime Odoo will always require the LESSC compiler, and most likely wkhtmltopdf.#### lessc
This package does not install the LESSC compiler for you.#### wkhtmltopdf
This package does not install the wkhtmltopdf binary for you.## Update policyTags under the release branch are published to pypi periodically. The source for these builds are found at [the Odoo github repository](https://github.com/odoo/odoo). A commit is pinned and tested, while the version number is simply bumped.#### Frequency
Due to the large size of these packages, pypi pushes will be done once every month. If you require more frequent updates, concider running the setup script manually or using your own pypi server.#### Version format
[ODOO_VERSION].[BUMP] For Odoo 11 the version format will be 11.0.[BUMP]## Using the setup script#### Install directlyRunning the setup.py script through pip will install the full Odoo suite:` [ODOO_VERSION=] [ODOO_URL=] pip install . `In order to install seperate features run like so:`FEATURE=<feature>pip install . `This will always require the ‘base’ feature. In order to install the ‘account’
app you should run:` FEATURE=base pip install . FEATURE=mail pip install . FEATURE=account pip install . `The best method to locally install is to use the ‘bdist_wheel’ helper script.
This will generate wheels for all features. Which you can then install using
automatic dependency resolving:` ./bdist_wheel.bash pip install--find-linksfile://$(pwd)/distodooku-odoo-<feature>`#### Installing without all languagesSpecify a comma seperated set of languages will reduce the install size
even further.` [LANGUAGES=] pip install . `
Package: odooless
OdoolessAn Odoo-like serverless ORM for AWS DynamoDBInstallationpip install odoolessGetting StartedDefine AWS credentials as environment variablesfromodoolessimportModel,DBDB._region_name='us-west-2'# AWS regionDB._endpoint_url='http://localhost:8000'# Omit for AWS cloud DynamoDBDB._aws_access_key_id='test'# AWS access key idDB._aws_secret_access_key='test'# AWS secret access keyModel DefinitionTo create a new modelfromodoolessimportmodelsclassUsers(models.Model):_name='Users'# dynamodb table name_limit=80# define default limit number of records to get from db_fields=[Field(name='id',index=True,hidden=False,string='ID',type='S',# supported field types are Binary as B, Integer as N, String as Sindex=True# create global secondary index for this attribute),]MethodsCurrently available methodscreatefrommodelsimportUserssomeUser=Users().create({'key':'value',})# create single recordsomeUsers=Users().create([{'key':'value',},{'key':'value',},...])# or create multiple recordsreadfrommodelsimportUserssomeUsers=Users().read(id,fields)# returns recordsetsearchfrommodelsimportUsersdomain=[('field1','=','value0'),('field2','>=','value1'),('field3','<=','value2'),('field4','IN',['value0','value1','value2',]),('field5','between',['value0','value1',]),('field5','contains','value'),('field5','begins_with','value'),....]someUsers=users.search(field0=value,domain)# the search method takes index attribute name as a keyword parameter along with a domain that does not include this attribute and returns list of recordsforuserinsomeUsers:print(user.name)search_readfrommodelsimportUsersdomain=[('field1','=','value0'),('field2','>=','value1'),('field3','<=','value2'),('field4','IN',['value0','value1','value2',]),('field5','between',['value0','value1']),('field5','contains','value'),('field5','begins_with','value'),....]# currently simple query operators soon will add full polish-notation supportfields=['field1','field2',....]someUsers=Users().search_read(field0=value,domain,fields)# the search method takes index attribute name as a keyword parameter along with a domain that does not include this attribute and returns list of recordsforuserinsomeUsers:print(user.name)writefrommodelsimportUsersusers.write({'id':'UUIDv4''key':'value',})# you can update single record by passing its id to model methodusers.write([{'id':'UUIDv4''key':'value',},{'id':'UUIDv4''key':'value',},...])# you can update multiple records by passing id of recordsomeUser=Users().read(ids)foruserinsomeUsers:user.write({'key':'value',})# no need to include id if you use update on the instancedeletefrommodelsimportUserssomeUser=Users().delete(ids)# you can delete single or multiple records
Package: odoolv
odoo log viewerThis package help you to viewodoolog file online in a browserAs an odoo developer you might need to know what is going on in your odoo log file.
odoo log files are stored in/var/log/odoo/folder in a linux server.
This package is created based on http.server of python. All needed files such as html and javascript files are embeded
to the package.Instructions1. Install:pip install odoolv2. run program:2.1 from python:importodoolvodoolv.run()2.2 from linux console:$odoolvserverstartedon:9000
x.x.x.x--[24/Jan/202319:55:04]"GET / HTTP/1.1"200-
x.x.x.x--[24/Jan/202319:55:04]"GET /log.js HTTP/1.1"200-3. browse the following address:http://<your_server_address>:90004. How to useWhile server is installed and running, you can have access as an http connection on port 9000.
odoo default log folder and log file name are embedded as default value. So, you will receive logs immediately.Each time you refresh your server page onhttp://<your_server_address>:9000, you will receive the last 10 records
of the log file. After that, it will fetch all new log records, every second.This package is simulating pycharm run view. This way, it always keeps the scroll the page on bottom automatically.If you scroll up a little, the reading process would be stopped. It means that you would not be intrupted by data refresh
while you are reading some lines.Besides, on the page header, there is a checkbox which you make you able to stop the auto fetch process.
Package: odoomaker
bobtemplates.odoois a set ofmr.bobtemplates to use when developing Odoo addons.It provides the following templates:addon: an addon skeletton, with optional OCA README and iconmodel: an Odoo model with accompanying form, tree, action, menu,
demo data and ACLtest: a test classwizard: a wizard with transient model, view and actionThe following are candidates (pull requests welcome):reportcontrollerwidgetInstallpipinstallbobtemplates.odooQuickstartCAUTION: it is recommanded to backup or vcs commit your current
directory before running these commands, so you can easily see
what has been generated and/or changed.Create a new addon in the current directory:mrbobbobtemplates.odoo:addonNow go to the newly created addon directory and run this to
add a new model, with associated views, demo data, and acl:mrbobbobtemplates.odoo:modelAdd a test class:mrbobbobtemplates.odoo:testTip: read themr.bob user guide.
In particular it explains how to set default values to avoid
retyping the same answers at each run (such as the copyright
author).Useful linkspypi page:https://pypi.python.org/pypi/bobtemplates.odoocode repository:https://github.com/acsone/bobtemplates.odooreport issues at:https://github.com/acsone/bobtemplates.odoo/issuesCreditsAuthor:Stéphane Bidoul (ACSONE)Inspired byhttps://github.com/plone/bobtemplates.plone.Contributors:Adrien Peiffer (ACSONE)Olivier Laurent (ACSONE)Mohamed CherkaouiThomas Binsfeld (ACSONE)MaintainerThis module is maintained by ACSONE SA/NV.
Package: odoo-manager
odoo-managerSetupDependenciespython3 -m pip install --user --upgrade setuptools wheel
python3 -m pip install --user --upgrade twine
python3 -m pip install --user --upgrade pytest
python3 -m pip install --user --upgrade docoptInstall Test Version Locallypython3 -m pip install -e .[test]DistributionGenerating Distributionpython3 setup.py sdist bdist_wheelUploading Distributionpython3 -m twine upload dist/odoo_manager-{current_version}.tar.gzUsageodoo-manager --help
Package: odoo-module-un-install-equitania
Odoo-module-un-install====================================================================================This is a simple python library to install/uninstall modules in an Odoo environment.It is a helper tool for our Odoo modules.https://www.myodoo.de/myodoo-grundpaket.InstallationOdoo-module-un-install requires:Python (>= 3.6)click (>= 8.1.3)OdooRPC (>= 0.9.0)PyYaml (>= 5.4.1)Use the package managerpipto install odoo-module-un-install.pipinstallodoo-module-un-install-equitaniaUsage$odoo-un-install--help
usage:odoo-un-install[--help][--server_path][--module_path][--uninstall_modules][--install_modules]Optionalarguments:--server_pathServerconfigurationfolder--module_pathModulesfolder--uninstall_modulesUninstallmodules(y/n)--install_modulesInstallmodules(y/n)--helpShowthismessageandexit.Exampleodoo-un-install--server_path=./connection_yaml--module_path=./module_yaml--uninstall_modules=y--install_modules=y# v12 basis dbsodoo-un-install--server_path=$HOME/gitbase/dev-helpers/yaml/v12-yaml-con--module_path=$HOME/gitbase/helper_script/v12/yaml--uninstall_modules=y--install_modules=y# v13 basis dbsodoo-un-install--server_path=$HOME/gitbase/dev-helpers/yaml/v13-yaml-con--module_path=$HOME/gitbase/helper_script/v13/yaml--uninstall_modules=y--install_modules=yThis project is licensed under the terms of theAGPLv3license.
Package: odoo-reporting-helper
Odoo Reporting HelperORHCommand Line ToolRequirementsWkhtmltopdf download page:https://wkhtmltopdf.org/downloads.htmlInstallation script :https://raw.githubusercontent.com/JazzCore/python-pdfkit/master/ci/before-script.shSee options :https://wkhtmltopdf.org/usage/wkhtmltopdf.txtInstallationInstall from PyPI:pipinstallodoo-reporting-helperQuickstartClean and prepare HTMLorhclean<source><destination>Options:-s, --include-stylesheets  Compile and include external stylesheets in HTML
                             report.
  -j, --include-javascripts  Keep JS scripts.
  -c, --cookies TEXT         Cookies
  -l, --limit-memory         Set memory limit.Merge stylesheets (optional)orhmerge<source><destination>Generate PDFPDF Report :orhconvert<source><destination>--formatA3--landscape--ignore-header--ignore-footer
Package: odoo-resource-assesor
Odoo Resource AssessorThis tool calculates the Odoo configuration based on the available system resources. It is designed to automate the configuration process by calculating the optimal number of worker processes and memory limits for Odoo based on the server's specifications.InstallationTo install the Odoo Resource Assessor, run the following command:pipinstallodoo_resource_assesorUsageTo assess the resources and get a recommended Odoo configuration, simply execute the tool:resource-assesorFor assessing the current system automatically, use the--selfflag to have the script determine the available system resources:resource-assesor--selfYou can check all the features by passing--helpflag:$resource-assesor--help

usage:resource_assesor.py[-h][--cpuCPU][--ramRAM][--limit-time-cpuLIMIT_TIME_CPU][--limit-time-realLIMIT_TIME_REAL][--outputOUTPUT][--self]CalculateOdooconfiguration.

optionalarguments:-h,--helpshowthishelpmessageandexit--cpuCPUNumberofCPUs--ramRAMAmountofRAMinGB--limit-time-cpuLIMIT_TIME_CPULimittimeCPU(defaultto600)--limit-time-realLIMIT_TIME_REALLimittimereal(defaultto1200)--outputOUTPUTOutputfilepathtowritetheconfiguration--selfRunquietlyandusethecurrentmachine'sresourcesFeaturesAutomatically calculates the number of HTTP workers for Odoo.Determines optimal memory limits based on system's RAM.Can use the current system's resources with the--selfflag for convenience.ContributingContributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make aregreatly appreciated.If you have a suggestion that would make this better, please fork the repository and create a pull request. You can also simply open an issue with the tag "enhancement".Don't forget to give the project a star! Thanks again!Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.AcknowledgmentsThanks to the Odoo community for continuous support and inspiration.Special thanks to all contributors who help maintain and improve this project.Inspired byHost your Odoo server on the public Internet: do's and don'tstalk by Nicolas Martinelli at Odoo Experience '23
Package: odoo-rest-framework
Odoo REST FrameworkVersion : 1.2.0Package :pip3 install odoo-rest-frameworkpackage link :https://pypi.org/project/odoo-rest-framework/github link :https://github.com/HanZawNyein/odoo-rest-framework.gitAuthor :Han Zaw NyeinAuthor_email:hanzawnyineonline@gmail.comDescription :Store user access token for one-time-loginController Code Examplefrom odoo import http
from .odoo_rest_framework import (
    login_required,
    jwt_http,
    fields_extractor,
    read_serializer
)
from odoo.http import request


class Testing(http.Controller):
    @login_required(route='/api/testing/', csrf=False, methods=['GET'])
    def testing(self, limit=5, offset=1, *args, **kwargs):
        model_res_partner = request.env['res.partner']
        # all_fields = fields_extractor(model_res_partner)
        all_partner = model_res_partner.search_read([], fields=['id','name'], limit=limit, offset=offset)
        all_partner = read_serializer(all_partner)
        return jwt_http.response(data=all_partner, message='Holidays')Response Example{
    "success": true,
    "message": "Holidays",
    "data": [
        {
            "id": 37,
            "name": "Brandon Freeman"
        },
        {
            "id": 44,
            "name": "Colleen Diaz"
        }
    ]
}
Package: odoorpc-toolbox
odoorpc-toolbox====================================================================================This is a simple python library that extends the functionality of Odoo RPC and contains helper functions.Installationodoo-fast-report-mapper requires:Python (>= 3.8)OdooRPC (>= 0.9.0)PyYaml (>= 5.4.1)Use the package managerpipto install odoorpc-toolbox.pipinstallodoorpc-toolboxUsageYou need to have a Yaml file with the connection parameters.The library contains two packages:odoo_connection with OdooConnection That contains only the connection to the RPC with already setup Parameters.base_helper with EqOdooConnection That is an extension of the OdooConnection with useful functions.examplebase_path = os.path.dirname(os.path.abspath(__file__))
helper = base_helper.EqOdooConnection(base_path + '/config.yaml')
odoo = helper.odoo
RES_PARTNER = odoo.env['res.partner']OptionsThis project is licensed under the terms of theAGPLv3license.
Package: odoo-runner
Odoo RunnerSmall wrapper for running headless Odoo scripts.Installpip install odoo-runnerExampletest.py:#! /usr/bin/env pythonimportsysfromodoo_runnerimportOdooRunnerdefstart(env):returnenv['res.partner'].search_count([])if__name__=="__main__":args=sys.argv[1:]runner=OdooRunner(args,start)partner_count=runner.run()print("Number of partners:",partner_count)sys.exit(0)running:PYTHONPATH=/path/to/odoo/src/./test.py-c/path/to/odoo.conf--logfile=''
Package: odoo-selenium
odoo-seleniumThis package provides utilities that make it easy to quickly write and develop Odoo tests using Selenium.UsageJust importSeleniumCaseand make your Unit Test a subclass of it. Simple as that!
Here is an example that demonstrates it:fromselenium.webdriver.common.byimportByfromodoo.testsimporttaggedfromodoo_seleniumimportSeleniumCase@tagged("-at_install","post_install")classTestSelenium(SeleniumCase):deftest_login_page(self):self.navigate("/web/login")email_input=self.driver.find_element(By.ID,"login")self.assertEqual("Email",email_input.get_attribute("placeholder"))DevelopmentIf you wish to contribute, it is easy to set up a development environment. Being a simple library meant to be
integrated with Odoo, all that is needed is to clone the source code and start hacking away. Below you can find
a simple overview of the project and its structure.Project StructureThe project is divided in three sections, the library itself, tests and the supporting Docker files to run the test
suite.srcAll library code should reside inside this folder. This is the code that will be imported by users on their Odoo tests.tests_odooThese are Odoo modules and form part of the test suite. Because this package is meant to be used as a utility library
for Odoo, testing does not really make sense without Odoo. These modules only provide tests to be run in Odoo and verify
the library integrates well and does not randomly explode.Running the Test SuiteSince an Odoo instance is required to run the test suite, the project relies on Docker to provide this instance and
other required infrastructure, like a PostgreSQL server. Running on a Docker container also means the project itself
is installed as users would, meaning this environment is as close to possible as the 'real world'.To run the test suite you can simply issue the following command:dockercompose-f.docker/chrome-compose.yamlup--build--abort-on-container-exit--force-recreateMake sure the working directory when running said command is the repository's root. Docker automatically checks for
changed files so nothing needs to be performed on your part (other than running the command above), this makes testing
iterative changes really easy and quick.By default, the test suite runs against the newest Odoo version. To run the test suite with a different Odoo version it
is as easy as specifying it:ODOO_VERSION=15dockercompose-f.docker/chrome-compose.yamlup--build--abort-on-container-exit--force-recreateThe command above will run tests against Odoo 15.0. Images are tagged as:vauxoo/odoo-selenium:${ODOO_VERSION}so
if you wanted to inspect the image built above, you can simply use:dockerrun-it--rm--entrypoint=/bin/bashvauxoo/odoo-selenium:15Note: If your tests fail, and you see old code being referenced, you are using an old image! That's why--force-recreateis used.MaintainerThis project is maintained byVauxoo.A Latin American company that provides training, coaching,
development and implementation of enterprise management
systems and bases its entire operation strategy in the use
of Open Source Software and its main product Odoo.
Package: odoo-sphinx-autodoc
This package provides a sphinx extension that allows to use “openerp.addons.*” with sphinx autodoc feature.Optionssphinxodoo_addons : List of addons name to load (if empty, no addon will be loaded)sphinxodoo_root_path : Path of the Odoo root directorysphinxodoo_addons_path : List of paths were Odoo addons to load are located
Package: odoo-technical-analysis
Odoo Technical AnalysisOTACommand Line ToolInstallationInstall from PyPI:pipinstallodoo-technical-analysisQuickstartAnalyzepathis the local repository you want to inspect.otaanalyze<path>--saveSend reportotasend<json_file>--localID=$(otasend<json_file>--local)Download reportsPDF Report :otadownload"$ID"pdf--templatedefault--localDocument :otadownload"$ID"docx--templatedoc--local
Package: odoo_tests_openerp_scripts
===============================odoo_tests===============================.. image:: https://badge.fury.io/py/odoo_tests_openerp_scripts.png:target: http://badge.fury.io/py/odoo_tests_openerp_scriptsTest openerp_scripts to be used with Anybox Odoo recipe.* Free software: GNU GPL v3.0 licenseFeatures--------* Buildout.cfg example to use this package.::[buildout]parts = odoo[odoo]eggs = odoo_tests_openerp_scriptsrecipe = anybox.recipe.openerp[bzr]:serverversion = git https://github.com/odoo/odoo.git odoo_server 7.0openerp_scripts = test_odoo=test_odoo arguments=sessioncreate_db arguments=sessiondrop_db arguments=sessionThis buildout config will produce 3 scripts in the environment. test_odoo, create_db and drop_db.test_odoo^^^^^^^^^^^^^^^^^^^^^Must be used with -d database_name -u module_name* -i might be used instead of -u.* all might be used instead of module_namecreate_db^^^^^^^^^^^^^^^^^^^^^create_db -h for usage.drop_db^^^^^^^^^^^^^^^^^^^^^drop_db -h for usage.
Package: odootools
Python Package for OdooPython package contains some tools for OdooFree software: GNU General Public License v3Documentation:https://odootools.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-02-26)First release on PyPI.
Package: odoo-tools
Odoo ToolsA library that provide command line tools to manage an Odoo
environment. The main purpose of the library is to provide
a programmatic API that lets you build tools to automate
management of odoo environment.How to installpip install odoo-toolsDocumentationYou can check the documentation hostedhere.Example of useIt can be used to find modules in addons paths. It can be
used to discover addons paths in directory in a way to provide
an easy way to manage odoo.cfg files without having to break your
head managing things.For example remove all modules that can't be installed in every
configured addons paths:env = Environment()

for module in env.modules.list(filters={'non_installable'}):
    module.remove()Define addons paths based on paths in /var/lib/addons:env = Environment()
env.context.custom_paths.add(Path("/var/lib/addons"))
env.set_config('addons_path', env.addons_paths())This will not simply add/var/lib/addonsto theaddons_path. It
will search into this folder for directories that have installable
addons in them.addons_paths()returns all possible addons paths
detected based on the environment variables, odoorc file and actual
state of the environment. So it returns everything you need to start
odoo later.
Package: odootools-docker
Odootools DockerIntegrate itself into odootools to generate a Dockerfile that can completely configure
a base Docker Image.The Dockerfile is built by generating a context from certain configuration.The context itself is simply a JSON serialized text that can be obtained
from provided utilities or anywhere that can output a JSON to stdout.When the context is ready, it can be passed to the render function that
will load all required templates to generate the Dockerfile.Here's a simple example to build an Odoo15 image.odootools docker context -v 15 | odootools docker renderHere's an example adding whtmltopdf utilities:odootools docker context -v 15 \
| odootools docker wkhtmltopdf \
| odootools docker renderWorking with odootools DockerOdootools docker is a bit more than just a script to build docker images. It
can be extended by defining your own templates that can get loaded based on the
provided context.The external templates can be provided in the context through the keytemplate_dirs.Then thestepslist can be used to add/remove steps in the context. Those are the main
templates that will get loaded by the Dockerfile renderer in the provided order.For example:{
  "template_dirs": "/custom/templates",
  "steps": [
    "a",
    "b",
    "c",
  ]
}Will lookup for the template namea.jinja,b.jinja,c.jinjafrom/custom/templatesfirst, then from the installed packageodootools_docker.It's possible to completely overwrite the way the context is rendered.