### Point of Sale Getting Started and Configuration Source: https://github.com/solluflex/odoo16documentation/blob/16.0/redirects/14.0.txt Guides for getting started with the Point of Sale module and configuring its features, including EPOS SSC and HTTPS setup. Old paths under '/overview' have been redirected to '/configuration'. ```rst applications/sales/point_of_sale/overview/getting_started.rst applications/sales/point_of_sale.rst # point_of_sale/overview/getting_started -> point_of_sale applications/sales/point_of_sale/overview/epos_ssc.rst applications/sales/point_of_sale/configuration/epos_ssc.rst # /overview/* -> /configuration/* applications/sales/point_of_sale/overview/https.rst applications/sales/point_of_sale/configuration/https.rst # /overview/* -> /configuration/* applications/sales/point_of_sale/overview/register.rst applications/sales/point_of_sale.rst # point_of_sale/overview/register -> point_of_sale ``` -------------------------------- ### Odoo Discuss - Getting Started Guide Source: https://github.com/solluflex/odoo16documentation/blob/16.0/redirects/15.0.txt Provides an introductory guide to using the Odoo Discuss application, covering initial setup and basic functionalities for team communication. ```rst applications/productivity/discuss/overview/get_started.rst ``` -------------------------------- ### Run Odoo Server (Windows) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Starts the Odoo server on Windows. It navigates to the Odoo Community installation directory, then executes the odoo-bin script with PostgreSQL user, password, addons path, and database name. Assumes Python is in the system PATH. ```doscon C:\> cd CommunityPath/ C:\> python odoo-bin -r dbuser -w dbpassword --addons-path=addons -d mydb ``` -------------------------------- ### Odoo Menu Navigation Examples Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/applications/finance/accounting/get_started.rst Illustrates how to navigate Odoo's interface to access specific settings and features. ```APIDOC Menu Navigation: - Accessing Settings: Accounting > Configuration > Settings - Accessing Fiscal Periods Settings: Accounting > Configuration > Settings > Fiscal Periods - Adding a Bank Account: Accounting > Configuration > Add a Bank Account - Accessing Invoices: Accounting > Customers > Invoices ``` -------------------------------- ### Run Odoo Server (Linux) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Starts the Odoo server on Linux. It navigates to the Odoo Community installation directory, then executes the odoo-bin script with specified addons path and database name. Assumes Python 3 is used. ```console $ cd /CommunityPath $ python3 odoo-bin --addons-path=addons -d mydb ``` -------------------------------- ### Odoo Module Installation and Update Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/getting_started/02_setup.rst Command-line options for installing or updating Odoo modules when starting the server. ```console -i (comma-separated list) -u (comma-separated list) ``` -------------------------------- ### Playground.js Setup Example Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/discover_js_framework/01_owl_components.rst Example of setting up the main Playground component, including initializing a sample todo item. ```javascript /** @odoo-module **/ import { App } from "@web/core/App"; import { mount } from "@web/runtime/mount"; import { Playground } from "./playground"; const props = {}; mount(App, document.body, { props }); // In playground.js or similar file: setup() { this.todo = { id: 3, description: "buy milk", done: false }; } ``` -------------------------------- ### Run Odoo Server (Mac OS) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Starts the Odoo server on Mac OS. It navigates to the Odoo Community installation directory, then executes the odoo-bin script with specified addons path and database name. Assumes Python 3 is used. ```console $ cd /CommunityPath $ python3 odoo-bin --addons-path=addons -d mydb ``` -------------------------------- ### Odoo Server Launch Script Example Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/howtos/website_themes/setup.rst An example of a shell script to run the Odoo server with various command-line arguments for configuration. ```xml ./odoo-bin --addons-path=../enterprise,addons --db-filter= -d --without-demo=all -i website --dev=xml ``` -------------------------------- ### NGINX Static File Serving with Git Source Installation Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/deploy.rst Example NGINX `root` and `try_files` directives for serving static files when Odoo is installed from Git sources. This configuration accounts for both community and enterprise addons paths. ```nginx root /opt/odoo; try_files /community/odoo/addons$uri /community/addons$uri /enterprise$uri @odoo; ``` -------------------------------- ### Install Documentation Dependencies Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/contributing/documentation.rst Installs the necessary Python packages for building the documentation using pip. ```console pip install -r requirements.txt ``` -------------------------------- ### Install Odoo Dependencies (Windows) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs Odoo dependencies on Windows using pip. Requires administrator privileges. It first installs setuptools and wheel, then installs all packages listed in the requirements.txt file. ```doscon C:\> cd \CommunityPath C:\> pip install setuptools wheel C:\> pip install -r requirements.txt ``` -------------------------------- ### NGINX Static File Serving with Debian Package Installation Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/deploy.rst Example NGINX `root` and `try_files` directives for serving static files when Odoo is installed via Debian packages. Assumes a standard addons path. ```nginx root /usr/lib/python3/dist-packages/odoo/addons; try_files $uri @odoo; ``` -------------------------------- ### Install Make on Linux Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/contributing/documentation.rst Installs the Make utility on Linux systems using the apt package manager. This is a prerequisite for certain build processes. ```console $ sudo apt install make -y ``` -------------------------------- ### Install PostgreSQL on Linux Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs PostgreSQL and its client on Debian/Ubuntu-based systems using the apt package manager. Requires root privileges. ```console $ sudo apt install postgresql postgresql-client ``` -------------------------------- ### Example: Debugging a Partner Copy Method Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/getting_started/02_setup.rst An example showing how to use `ipdb.set_trace()` within a Python method (`copy` in this case) to debug the logic for copying a partner record in Odoo. The `emphasize-lines` directive highlights the line where the debugger is triggered. ```python import ipdb; ipdb.set_trace() self.ensure_one() chosen_name = default.get('name') if default else '' new_name = chosen_name or _('%s (copy)') % self.name default = dict(default or {}, name=new_name) return super(Partner, self).copy(default) ``` -------------------------------- ### Install Odoo Dependencies on Debian/Ubuntu Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs Odoo's required system libraries and packages on Debian/Ubuntu systems using apt. This script automates the process by parsing a control file. ```console $ cd odoo #CommunityPath $ sudo ./setup/debinstall.sh ``` -------------------------------- ### Odoo Module Development: Getting Started Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials.rst Learn to develop your own module with the Odoo framework. This tutorial is designed for newcomers to Odoo development. ```python # Example of a basic Odoo module structure # __init__.py # from . import models # from . import controllers # models/models.py # from odoo import models, fields # class MyModule(models.Model): # _name = 'my.module' # _description = 'My Custom Module' # name = fields.Char(string='Name', required=True) ``` -------------------------------- ### PostgreSQL User Creation and Privileges (pgAdmin) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Guides through creating a PostgreSQL user with login and database creation privileges using the pgAdmin GUI on Windows. This involves navigating the pgAdmin interface to create a new login/group role. ```APIDOC pgAdmin User Creation: 1. Open pgAdmin. 2. Connect to the PostgreSQL server. 3. Navigate to Object -> Create -> Login/Group Role. 4. Enter Role Name (e.g., 'odoo'). 5. In the Definition tab, enter a password (e.g., 'odoo'). 6. In the Privileges tab, set 'Can login?' to 'Yes' and 'Create database?' to 'Yes'. 7. Click Save. ``` -------------------------------- ### Odoo Setup Instructions Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/master_odoo_web_framework.rst Instructions for setting up the Odoo development environment for this tutorial. This involves cloning the Odoo tutorials repository, adding it to the Odoo addons path, and starting a new Odoo database with specific modules. ```bash # Clone the official Odoo tutorials repository git clone https://github.com/odoo/tutorials cd tutorials git checkout {CURRENT_MAJOR_BRANCH} # Add the cloned repository to the Odoo addons path odoo-bin --addons-path=/path/to/tutorials # Start a new Odoo database and install modules # (Assuming 'awesome_tshirt' and 'awesome_gallery' are in the addons path) odoo-bin -d my_odoo_db -i awesome_tshirt,awesome_gallery ``` -------------------------------- ### Clone Odoo Tutorials Repository Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/getting_started/02_setup.rst Clones the odoo/tutorials repository to your local machine. This is the first step in setting up a custom addons directory for development. ```console $ git clone git@github.com:odoo/tutorials.git ``` -------------------------------- ### Build and Preview Documentation Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/contributing/documentation.rst These commands build the documentation using 'make' and then open the generated HTML file in a web browser for preview. 'make help' provides a list of available commands. ```console make open _build/index.html make help ``` -------------------------------- ### Owl Component Best Practices: setup vs constructor Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/reference/frontend/owl_components.rst Illustrates the correct and incorrect ways to initialize component logic in Owl. Emphasizes using the `setup` method over the `constructor` for component initialization. ```javascript // correct: class MyComponent extends Component { setup() { // initialize component here } } // incorrect. Do not do that! class IncorrectComponent extends Component { constructor(parent, props) { // initialize component here } } ``` -------------------------------- ### Reordering Rules Setup - Odoo Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/applications/inventory_and_mrp/inventory/warehouses_storage/replenishment/reordering_rules.rst Guides users through configuring reordering rules in Odoo, starting with product type settings and leading to the creation of new reordering rules. ```APIDOC APIDOC: title: Reordering Rules Setup description: Steps to configure reordering rules in Odoo. steps: - title: Product type configuration description: Ensure the product is set to 'Storable Product' and has replenishment routes defined. details: - Navigate to Inventory app -> Products -> Products. - Select or create a product. - Set 'Product Type' to 'Storable Product' on the 'General Information' tab. - Select replenishment routes on the 'Inventory' tab. - If using 'Buy' route: Enable 'Can be Purchased' and specify vendor/price on the 'Purchase' tab. - If using 'Manufacture' route: Ensure at least one Bill of Materials (BoM) is associated with the product. - title: Create new reordering rules description: Define the parameters for reordering rules. details: - Navigate to Inventory app -> Configuration -> Reordering Rules. - Click 'New'. - Fill in the following fields: - Product: The product requiring replenishment. - Location: The specific storage location. - Min Quantity: The minimum stock level that triggers replenishment. - Max Quantity: The target stock level after replenishment. ``` -------------------------------- ### Odoo.sh Project Creation Steps Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/odoo_sh/getting_started/create.rst This section details the process of creating a new project on Odoo.sh, from initial platform deployment to database import. It includes steps like signing in with GitHub, authorizing the application, and configuring project settings. ```rst .. _odoosh-gettingstarted-create: =================== Create your project =================== Deploy your platform ==================== Go to `Odoo.sh `_ and hit the *Deploy your platform* button. .. image:: create/deploy.png :align: center Sign in with Github =================== Sign in with your Github account. If you do not have an account yet, hit the *Create an account* link. .. image:: create/github-signin.png :align: center Authorize Odoo.sh ================= Grant Odoo.sh the required accesses to your account by clicking the *Authorize* button. .. image:: create/github-authorize.png :align: center Odoo.sh basically needs: * to know your Github login and email, * to create a new repository in case you decide to start from scratch, * to read your existing repositories, including the ones of your organizations, in case you want to start from an existing repository, * to create a webhook to be notified each time you push changes, * to commit changes to make your deployment easier, merging branches or adding new `submodules `_ for example. Submit your project =================== Choose if you want to start from scratch by creating a new repository, or if you want to use an existing repository. Then, choose a name or select the repository you want to use. Choose the Odoo version you want to use. If you plan to import an existing database or an existing set of applications, you might need to choose the according version. If you start from scratch, use the latest version. Enter your *subscription code*. This is also called *subscription referral*, *contract number* or *activation code*. It should be the code of your Enterprise subscription that includes Odoo.sh. Partners can use their partnership codes to start a trial. Should their clients start a project, they ought to get an Enterprise subscription including Odoo.sh and use its subscription code. The partner will get 50% of the amount back as commission. Contact your sales representative or account manager in order to get it. When submitting the form, if you are notified your subscription is not valid, it either means: * it is not an existing subscription, * it is not a partnership subscription, * it is an enterprise subscription, but which does not include Odoo.sh, * it is neither a partnership subscription or an enterprise subscription (e.g. an online subscription). In case of doubt with your subscription, please contact the `Odoo support `_. .. image:: create/deploy-form.png :align: center You're done ! ============= You can start using Odoo.sh. Your first build is about to be created. You will soon be able to connect to your first database. .. image:: create/deploy-done.png :align: center .. _odoo_sh_import_your_database: Import your database ==================== You can import your database in your Odoo.sh project as long as it is in a :doc:`supported version ` of Odoo. Push your modules in production ------------------------------- If you use community or custom modules, add them in a branch in your Github repository. Databases hosted on the Odoo.com online platform do not have any custom modules. Users of these databases can therefore skip this step. You can structure your modules as you wish, Odoo.sh will automatically detect the folders containing Odoo addons. For instance, you can put all your modules folder in the root directory of your repository, or group the modules in folders by categories that you define (accounting, project, ...). For community modules available in public Git repositories, you can also consider to add them using :ref:`Submodules `. Then, either :ref:`make this branch the production branch `, or :ref:`merge it into your production branch `. Download a backup ----------------- On-premise databases ~~~~~~~~~~~~~~~~~~~~ Access the URL :file:`/web/database/manager` of your on-premise database and download a backup. .. Warning:: If you cannot access the database manager, it may have been disabled by your system administrator. See the :ref:`database manager security documentation `. You will need the master password of your database server. If you do not have it, contact your system administrator. .. image:: create/create-import-onpremise-backup.png :align: center Choose a zip including the filestore as the backup format. .. image:: create/create-import-onpremise-backup-dialog.png :align: center Odoo Online databases ~~~~~~~~~~~~~~~~~~~~~ `Access your databases manager `_ and download a backup of your database. .. image:: create/create-import-online-backup.png :align: center .. Warning:: ``` -------------------------------- ### Database Setup and Operations Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/howtos/website_themes/setup.rst Commands for creating a database, importing SQL dumps, and resetting user credentials in Odoo. ```bash createdb ``` ```bash psql < dump.sql ``` ```bash psql \c update res_users set login='admin', password='admin' where id=2; ``` ```bash psql update res_users set top_secret='' where id=2; ``` -------------------------------- ### Odoo Delivery Guide Module Installation Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/applications/finance/fiscal_localizations/chile.rst Instructions for installing the 'Chile - E-Invoicing Delivery Guide' module in Odoo. ```APIDOC Delivery Guide Module Installation: - Go to Apps menu. - Search for 'Chile (l10n_cl)'. - Click 'Install' on 'Chile - E-Invoicing Delivery Guide' module. - Dependency: 'Chile - E-Invoicing Delivery Guide' requires 'Chile -'. ``` -------------------------------- ### Odoo Accounting Onboarding Steps Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/applications/finance/accounting/get_started.rst Details the four main steps presented in the Odoo Accounting onboarding banner: setting up periods, connecting bank accounts, configuring taxes, and setting up the chart of accounts. ```APIDOC Accounting Onboarding Banner: Steps: 1. Accounting Periods: Define fiscal year opening/closing dates and tax return periodicity. - Default: Jan 1st to Dec 31st. - Accessible via: Accounting > Configuration > Settings > Fiscal Periods. 2. Bank Account: Connect bank accounts for automatic statement synchronization or manual configuration. - Manual Configuration Fields: - Name: Bank account name in Odoo. - Account Number: Bank account number (e.g., IBAN). - Bank: Bank details (Name, Identifier Code/BIC/SWIFT). - Code: Journal's Short Code. - Journal: Link to an existing bank journal or create a new one. - Add more accounts via: Accounting > Configuration > Add a Bank Account. - More info: Link to Odoo documentation on bank accounts. 3. Taxes: Create, activate, deactivate, or modify existing taxes. Pre-configured taxes are available based on the installed localization package. - More info: Link to Odoo documentation on taxes. 4. Chart of Accounts: Add accounts and set initial opening balances. Access full settings via the 'Setup' button. - More info: Link to Odoo documentation on Chart of Accounts configuration. ``` -------------------------------- ### Install rtlcss (Linux) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs the rtlcss package globally using npm on Linux. This package is required for languages with a right-to-left interface. It assumes Node.js and npm are already installed. ```console $ sudo npm install -g rtlcss ``` -------------------------------- ### Run Odoo Server from Source Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/getting_started/02_setup.rst Launches the Odoo server using the odoo-bin script. It specifies the addons path to include custom modules and the database to use for the current session. ```console $ cd $HOME/src/odoo/ $ ./odoo-bin --addons-path="addons/,../enterprise/,../tutorials" -d rd-demo ``` -------------------------------- ### Odoo Module Structure Example Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/getting_started/01_architecture.rst This example demonstrates the typical directory structure of an Odoo module, including directories for models, data, and essential manifest and initialization files. ```bash module ├── models │ ├── *.py │ └── __init__.py ├── data │ └── *.xml ├── __init__.py └── __manifest__.py ``` -------------------------------- ### Install Odoo Dependencies (Mac OS) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs Odoo dependencies on Mac OS using pip3. It first installs setuptools and wheel, then installs all packages listed in the requirements.txt file. Non-Python dependencies must be installed using a package manager like Homebrew or MacPorts. ```console $ cd /CommunityPath $ pip3 install setuptools wheel $ pip3 install -r requirements.txt ``` -------------------------------- ### Http Service Usage Example Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/reference/frontend/services.rst Illustrates how to use the Http Service to fetch data using a GET request and send data using a POST request. It demonstrates calling `get` and `post` methods with example URLs and data. ```javascript const httpService = useService("http"); const data = await httpService.get("https://something.com/posts/1"); // ... await httpService.post("https://something.com/posts/1", { title: "new title", content: "new content" }); ``` -------------------------------- ### Start Odoo Server Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/backend.rst Initiates the Odoo server process. This is the primary command to run Odoo. ```bash odoo-bin ``` -------------------------------- ### Install rtlcss (Windows) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs the rtlcss package globally using npm on Windows. This package is required for languages with a right-to-left interface. It assumes Node.js is installed. After installation, the npm directory needs to be added to the system's PATH environment variable. ```doscon C:\> npm install -g rtlcss ``` -------------------------------- ### Install Required System Libraries for Python Dependencies Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs essential system libraries required for compiling Python packages used by Odoo on Debian/Ubuntu systems. ```console $ sudo apt install python3-pip libldap2-dev libpq-dev libsasl2-dev ``` -------------------------------- ### Odoo Command-Line Arguments Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/howtos/website_themes/setup.rst Description of common Odoo command-line arguments for server configuration, module management, and development. ```APIDOC --addons-path Comma-separated list of directories in which modules are stored. These directories are scanned for modules. -d --database database(s) used when installing or updating modules. --db-filter Hides databases that do not match the filter. -i --init Comma-separated list of modules to install before running the server. (requires -d) -u --update Comma-separated list of modules to update before running the server. (requires -d) --without-demo Disables demo data loading for modules installed comma-separated; use `all` for all modules. (requires -d and -i) --dev Comma-separated list of features. For development purposes only. :ref:`More info ` ``` -------------------------------- ### Preset Example: Disabling Language Selector Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/howtos/website_themes/theming.rst An example of deactivating the language selector in the portal footer using presets.xml. ```xml ``` -------------------------------- ### Verify Pip Version Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Checks the installed pip version, which is required for managing Python packages for Odoo. ```console $ pip3 --version ``` ```doscon C:\> pip --version ``` -------------------------------- ### Start Odoo Server with Addons Path Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/website.rst Starts the Odoo server, specifying the path to custom modules. This is necessary for Odoo to recognize and load new modules. ```console $ ./odoo-bin --addons-path addons,my-modules ``` -------------------------------- ### Install rtlcss (Mac OS) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs the rtlcss package globally using npm on Mac OS. This package is required for languages with a right-to-left interface. It assumes Node.js is installed via a package manager like Homebrew or MacPorts. ```console $ sudo npm install -g rtlcss ``` -------------------------------- ### Add Odoo Repository and Install on Fedora Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/packages.rst Adds the official Odoo repository and installs the Odoo Community edition on Fedora systems. It also enables and starts the Odoo service. ```console $ sudo dnf config-manager --add-repo=https://nightly.odoo.com/{CURRENT_MAJOR_BRANCH}/nightly/rpm/odoo.repo $ sudo dnf install -y odoo $ sudo systemctl enable odoo $ sudo systemctl start odoo ``` -------------------------------- ### Odoo Database Import - Odoo SaaS Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/howtos/website_themes/setup.rst Instructions for importing an Odoo database from Odoo SaaS. This involves navigating to a specific URL to initiate the database dump. ```APIDOC Odoo SaaS Database Dump: URL: /saas_worker/dump Description: Access this URL to initiate a database dump for Odoo SaaS instances. ``` -------------------------------- ### Install Odoo RPM Package on Fedora Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/packages.rst Installs the Odoo .rpm package on Fedora systems using the 'dnf' package manager. It also enables and starts the Odoo service. ```console $ sudo dnf localinstall odoo_{CURRENT_MAJOR_BRANCH}.latest.noarch.rpm $ sudo systemctl enable odoo $ sudo systemctl start odoo ``` -------------------------------- ### Google Analytics Setup Steps Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/applications/websites/website/reporting/analytics.rst This outlines the initial steps for setting up Google Analytics for an Odoo website. It covers account creation, property setup, and platform selection within the Google Analytics interface. ```APIDOC 1. Sign in or create a Google account: https://analytics.google.com 2. Create a new property: - If new: Click 'Start measuring'. - If existing: Go to Admin -> '+ Create Property'. 3. Complete property creation, business details, and objectives. 4. Data Collection step: Choose 'Web' platform. ``` -------------------------------- ### Mixed Markup Example (Menu and GUI) Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/contributing/documentation/rst_guidelines.rst This example demonstrates the combined use of `menuselection` for navigation and `guilabel` for UI elements within a single instruction. ```text To configure the bill control policy, navigate to :menuselection:`Purchase --> Configuration --> Settings`, and scroll down to the :guilabel:`Invoicing` section. Under :guilabel:`Bill Control`, select either :guilabel:`Ordered quantities` or :guilabel:`Received quantities`. ``` -------------------------------- ### Preset Example: Displaying Product Categories Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/howtos/website_themes/theming.rst An example of deactivating the display of product categories in the eCommerce section using presets.xml. ```xml ``` -------------------------------- ### Git Fetch and Rebase Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/getting_started/02_setup.rst Commands to fetch all remote changes and rebase the current branch onto the latest changes for both Odoo and enterprise repositories. ```console cd $HOME/src/odoo git fetch --all --prune git rebase --autostash odoo/{BRANCH} cd $HOME/src/enterprise git fetch --all --prune git rebase --autostash enterprise/{BRANCH} ``` -------------------------------- ### Custom SCSS Styling Example Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/howtos/website_themes/theming.rst An example of SCSS code within a custom theme file, demonstrating styling for blockquotes. ```scss blockquote { } ``` -------------------------------- ### Odoo Controller for 'Hello, world' Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/website.rst Defines a simple Odoo controller that handles a specific URL route and returns a 'Hello, world' string. This demonstrates basic request handling. ```python # -*- coding: utf-8 -*- from odoo import http class Academy(http.Controller): @http.route('/academy/academy/', auth='public') def index(self, **kw): return "Hello, world" ``` -------------------------------- ### Create Odoo Addon Directory Structure Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/tutorials/getting_started/03_newapp.rst This exercise outlines the creation of the necessary directory and files for a new Odoo module. It includes creating the main module directory and the essential __init__.py and __manifest__.py files. ```bash mkdir -p /home/$USER/src/tutorials/estate touch /home/$USER/src/tutorials/estate/__init__.py touch /home/$USER/src/tutorials/estate/__manifest__.py ``` -------------------------------- ### Preset Example: Aligning Menu Items Center Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/howtos/website_themes/theming.rst An example of activating a view to center menu items horizontally using presets.xml. ```xml ``` -------------------------------- ### Verify Python Version Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Checks the installed Python version to ensure it meets Odoo's requirement of Python 3.7 or later. ```console $ python3 --version ``` ```doscon C:\> python --version ``` -------------------------------- ### Install Python Dependencies with Pip Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/administration/on_premise/source.rst Installs Odoo's Python dependencies from the requirements.txt file. This method requires system libraries for compilation and is not recommended for production environments due to potential security and dependency issues. ```console $ cd /CommunityPath $ pip install -r requirements.txt ``` -------------------------------- ### Widget Lifecycle: start Method Source: https://github.com/solluflex/odoo16documentation/blob/16.0/content/developer/reference/frontend/javascript_reference.rst Documentation for the Widget.start method. This method is called after rendering is complete and is used for post-rendering tasks, such as initializing third-party libraries. It must return a promise. ```APIDOC Widget.start() - Called automatically after the widget's rendering is complete. - Useful for specialized post-rendering work (e.g., library setup). - Must return a promise to indicate when its work is done. - Returns: promise ```