domain: server
language: python
class Item class
Use the set_fields
method to define and store internally the fields
parameter that will be used by the
open
method, when its own fields
parameter is not specified. The
open
method clears internally stored parameter value.
The fields
is arbitrary argument list of field names.
You can specify the fields as a list, the way the set_fields method on the client does or as non-keyworded arguments.
The result of the execution of following code snippets wil be the same:
item.open(fields=['id', 'invoicedate'])
item.set_fields('id', 'invoicedate')
item.open()
item.set_fields(['id', 'invoicedate'])
item.open()