Odoo Help

6
7
Sudhir Arya (ERP Harbor Consulting Services)
On 10/5/13, 3:23 PM

Context: is a dictionary which contains some information like: user language, company, timezone, etc by default. You can pass any kind of data/information in context as per your need either from xml or from py (mehtods) and then based on that extra information you can write your process code.

Domain: is a condition(s) which is used to filter your data or for searching. For more information about domain see this: How to filter datas in OpenERP using domain list.

1
AJ Schrafel Paper Corp
On 10/4/13, 6:05 PM

Essentially - domain is a filter you cannot expand beyond - context is a filter you can expand to the point that domain allows.

Context is used to pass the filter parameters created by the user to functions. domain does not.

context is not a filter, it's a dictionary of arbitrary values that depends of the context/screen of the user. It's mostly used to change the value of some fields. (e.g. language, warehouse I am wroking it to change quantities available of products, ...)

Fabien Pinckaers (fp)
on 10/5/13, 4:17 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/4/13, 5:27 PM
Seen: 9178 times
Last updated: 3/12/18, 7:00 AM