-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Jack-Dane/supported_fields_documentation
Add Documentation for some field types.
- Loading branch information
Showing
7 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Relational Field Examples | ||
|
||
The Record ID field is often referred to `id` on base models. You can get the ID from a record because it will | ||
be one of the parameters in the URL (as `?id=<id>`) when viewing the record. | ||
|
||
## Many2One | ||
|
||
This example will show you how to choose a company for a contact record. This is an example of the companies in the Odoo instance. | ||
|
||
![Odoo Parent Company Many2One](assets/odoo_parent_company_many2one.png) | ||
|
||
CF7 Form: | ||
|
||
``` | ||
[select company "My Company|1" "My Company 2|13"] | ||
``` | ||
|
||
Form Mapping Record: | ||
|
||
![Odoo Parent Company Form Mapping](assets/odoo_parent_company_form_mapping.png) | ||
|
||
# One2Many | ||
|
||
Not supported currently | ||
|
||
# Many2Many | ||
|
||
Not supported currently |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Simple Field Examples | ||
|
||
Most fields are self-explanatory, but this section details some that might not be so obvious. | ||
|
||
## Selection | ||
|
||
Example selection data is the `address_type` field on the `res.partner` (contact) model: | ||
|
||
![Odoo Address Type Selection](assets/odoo_address_type_selection.png) | ||
|
||
CF7 Form: | ||
|
||
``` | ||
[select address-type "Contact|contact" "Invoice Address|invoice" "Delivery Address|delivery" "Private Address|private" "Other Address|other"] | ||
``` | ||
|
||
Form Mapping Record: | ||
|
||
![Odoo Address Type Form Mapping](assets/odoo_address_type_form_mapping.png) |