Class s.d.s.SellableUnit(Domain):

Part of stoqlib.domain.sellable View In Hierarchy

A class used to represent the sellable unit.
Class VariablesdescriptionThe unit description
unit_indexThis column defines if this object represents a custom product unit (created by the user through the product editor) or a 'native unit', like 'Km', 'Lt' and 'pc'. This data is used mainly to interact with stoqdrivers, since when adding an item in a coupon we need to know if its unit must be specified as a description (using CUSTOM_PM constant) or as an index (using UNIT_*). Also, this is directly related to the DeviceSettings editor.

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.
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.