def get_columns(self): return [ Column( 'sellable.code', title=_(u'Code'), data_type=str, searchable=True, ), Column('sellable.description', title=_(u'Description'), data_type=str, expand=True, searchable=True, format_func=self._format_description, format_func_data=True), AccessorColumn('stock', title=_(u'Stock'), data_type=Decimal, accessor=self._get_stock_quantity, width=80), Column('quantity', title=_(u'Transfer'), data_type=Decimal, width=100), AccessorColumn('total', title=_(u'Total'), data_type=Decimal, accessor=self._get_total_quantity, width=80), Column('stock_cost', title=_(u'Cost'), data_type=currency), ]
def get_columns(self): return [ Column('sellable.description', title=_(u'Description'), data_type=str, expand=True, searchable=True), AccessorColumn('stock', title=_(u'Stock'), data_type=Decimal, accessor=self._get_stock_quantity, width=80), Column('quantity', title=_(u'Transfer'), data_type=Decimal, width=100), AccessorColumn('total', title=_(u'Total'), data_type=Decimal, accessor=self._get_total_quantity, width=80), ]
def _get_columns(self): return [Column('group', title=_('Group'), data_type=str, width=100, sorted=True), Column('short_desc', title=_('Parameter'), data_type=str, expand=True), AccessorColumn('field_value', title=_('Current value'), accessor=self._get_parameter_value, data_type=str, width=200)]
def get_columns(self): return [Column('name', _('Name'), data_type=str, sorted=True, width=190, searchable=True), AccessorColumn("branch", BranchStation.get_branch_name, title=_('Branch'), data_type=str, expand=True), Column('is_active', _('Active'), data_type=bool, sorted=False, searchable=False, width=80), ]