Go to file
Denis Ledoux 9996668bad [FIX] web: get conditional user defaults
This is possible to set field conditional defaults, if the field has the attribute "change_default".
The defaults are set by the web client, by calling the method "get_defaults" of ir.values model, when the onchange is triggered on the field on which the condition is.

In 7.0, all onchanges were triggered clientside, one by one. On creation, the defaults of default_get method were pushed in the form, and then, as the values of the fields were changed (from null to the default value), all onchanges on which there was default value were triggered.

In 8.0, onchanges are performed server side, all at once. On creation, the onchange method is triggered by default (wether or not there is a default value for them), for all fields (widget param of method do_onchange of view_forms js is undefined, meaning the onchange is not triggered on a specific field, but on all fields). In such a case, we must call the get_defaults method of ir.values model for all fields (having change_default attribute), in order the conditional defaults to be set in the form view.
2014-12-05 17:41:11 +01:00
addons [FIX] web: get conditional user defaults 2014-12-05 17:41:11 +01:00
debian [FIX] Packaging: Debian: ignore root Makefile 2014-11-10 11:49:02 +01:00
doc [FIX] doc: remaining instances of ruby-style interpolation in templates 2014-12-03 14:21:00 +01:00
openerp [FIX] Use _unknown model for missing models in relation fields 2014-12-04 20:58:46 +01:00
setup [FIX] packaging: redhat dependencies 2014-12-03 11:40:59 +01:00
.gitignore [MERGE] forward port of branch saas-3 up to 8c4a7cb 2014-11-04 12:30:01 +01:00
CONTRIBUTING.md [FIX] CONTRIBUTING: dead link 2014-10-13 11:09:08 +02:00
LICENSE cleanup repo root 2014-05-15 10:43:02 +02:00
MANIFEST.in [FIX] Packaging: MANIFEST.in: include relevant files 2014-11-28 16:40:56 +01:00
Makefile [IMP] *: one Makefile to rules them all. 2014-11-05 19:30:28 +01:00
README.md updated deb-repository URL 2014-11-23 21:08:36 +01:00
odoo.py [FIX] odoo.py windows compatibility 2014-10-02 16:12:19 +02:00
openerp-gevent restore the original gevent detection 2013-09-10 01:19:46 +02:00
openerp-server openerp apps main moved to cli ready for new commands 2012-11-27 01:55:13 +01:00
openerp-wsgi.py [FIX] wsgi deployement with openerp-wsgi.py 2014-03-07 21:00:55 +01:00
requirements.txt [REM] duplicated package in requirements, sort 2014-11-19 17:07:28 +01:00
setup.cfg [FIX] Packaging: RedHat: dependencies management 2014-11-28 16:40:55 +01:00
setup.py [FIX] Packaging: lib name from openerp to odoo 2014-11-28 16:40:56 +01:00

README.md

Build Status

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo development

If you are a developer type the following command at your terminal:

wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python

Then follow the developer tutorial

Packages, tarballs and installers

  • Debian packages

    Add this apt repository to your /etc/apt/sources.list file

      deb http://nightly.odoo.com/8.0/nightly/deb/ ./
    

    Then type:

      $ sudo apt-get update
      $ sudo apt-get install odoo
    

    If you plan to use Odoo with a local database, please make sure to install PostgreSQL before installing the Odoo Debian package.

  • Source tarballs

  • Windows installer

  • RPM package

For Odoo employees

To add the odoo-dev remote use this command:

$ ./odoo.py setup_git_dev

To fetch odoo merge pull requests refs use this command:

$ ./odoo.py setup_git_review