Skip to content

Commit

Permalink
syntax highlighting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Apr 2, 2012
1 parent f522e4e commit 643375c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -141,7 +141,7 @@ ProductProduct.find([1,2])
ProductProduct.find([1])
ProductProduct.find(:all)
ProductProduct.find(:last)
```ruby
```

OpenERP domain support (same as OpenERP):

Expand Down Expand Up @@ -190,7 +190,7 @@ Inherited relations support:

```ruby
ProductProduct.find(1).categ_id #where categ_id is inherited from the ProductTemplate
```ruby
```

Please notice that loaded relations are cached (to avoid hitting OpenERP over and over)
until the root object is reloaded (after save/update for instance).
Expand All @@ -203,7 +203,7 @@ ProductProduct.find(1, :fields=>["state", "id"])
ProductProduct.find(:all, :fields=>["state", "id"])
ProductProduct.find([1,2], :fields=>["state", "id"])
ProductProduct.find(:all, :fields=>["state", "id"])
```ruby
```

even in relations:

Expand All @@ -219,7 +219,7 @@ pc = ProductCategory.new(:name => 'Categ From Rails!')
pc.create
pc.id
#$ => 14
```ruby
```


Update:
Expand Down Expand Up @@ -288,6 +288,7 @@ Call aribtrary method:
$ or object.call(method_name, args*) #were args is an aribtrary list of arguments

Class methods from are osv.py/orm.py proxied to OpenERP directly (as the web client does):

```ruby
ResPartner.name_search('ax', [], 'ilike', {})
ProductProduct.fields_view_get(132, 'tree', {})
Expand Down

0 comments on commit 643375c

Please sign in to comment.