Part of stoqlib.domain.product View In Hierarchy
| Method | facet_IStorable_add | Undocumented |
| Method | remove | Deletes this product from the database. |
| Method | can_remove | Whether we can delete this sellable from the database. |
| Method | retain | Undocumented |
| Method | get_history | Returns the list of ProductHistory
for this product. |
| Method | get_main_supplier_name | Undocumented |
| Method | get_main_supplier_info | Gets a list of main suppliers for a Product, the main supplier |
| Method | get_suppliers_info | Returns a list of suppliers for this product |
| Method | get_components | Returns the products which are our components. |
| Method | get_production_cost | Return the production cost of a Product. The production cost |
| Method | is_supplied_by | If this product is supplied by the given supplier, returns the |
| Method | is_composed_by | Returns if we are composed by a given product or not. |
Inherited from Domain:
| Method | __init__ | Undocumented |
| Method | _create | Undocumented |
| Method | user | Undocumented |
| Class Method | iselect | Like select, but search on the adapter implementing the interface iface |
| Class Method | iselectBy | Like selectBy, but search on the adapter implementing the interface iface |
| Class Method | iselectOne | Like selectOne, but search on the adapter implementing the interface iface |
| Class Method | iselectOneBy | Like selectOneBy, but search on the adapter implementing the interface iface |
| Class Method | iget | Like get, but gets on the adapter implementing the interface iface |
Inherited from AbstractModel (via Domain, BaseDomain):
| Method | __ne__ | Undocumented |
| Method | __eq__ | Undocumented |
| Method | _SO_setValue | Undocumented |
| Method | clone | Get a persistent copy of an existent object. Remember that we can |
| Method | get_connection | Undocumented |
Inherited from AdaptableORMObject (via Domain):
| Class Method | registerFacet | Registers a facet for class cls. |
Inherited from Adaptable (via Domain, AdaptableORMObject):
| Class Method | getFacetType | Fetches a facet type associated with an interface, or raise |
| Class Method | getFacetTypes | Returns facet classes for this object |
| Method | addFacet | Adds a facet implementing iface for the current object |
| Method | removeFacet | Removes a facet from the current object |
| Method | getFacets | Gets a list of facets assoicated with the current object. |
False if the product/service was never sold or received. True otherwise.
| Returns | main supplier info (type: ProductSupplierInfo or None if a product lacks a main suppliers ) | |
| Returns | a list of suppliers (type: list of ProductSupplierInfo ) | |
| Returns | a sequence of Product instances | |
| Returns | the production cost | |