gui Package

admin Module

Main gui definition for admin application.

class stoq.gui.admin.Tasks(app)[source]

Bases: object

set_model(model)[source]
add_defaults()[source]
add_item(label, name, pixbuf=None, cb=None)[source]

@param label: Label to show in the interface @param name: Name to use to store internally and use by callbacks @param pixbuf: a pixbuf or stock-id/icon-name for the item @param cb: callback

on_item_activated(icon_view, path)[source]
hide_item(name)[source]
run_task(name)[source]
class stoq.gui.admin.AdminApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = 'Administrative'
gladefile = 'admin'
ACTION_TASKS = {'SearchFiscalBook': 'fiscal_books', 'ConfigurePaymentMethods': 'payment_methods', 'SearchUserProfile': 'user_profiles', 'SearchComputer': 'stations', 'ConfigureInvoices': 'invoice_layouts', 'SearchUser': 'users', 'ConfigureCertificates': 'certificates', 'ConfigureGridGroup': 'grid_group', 'SearchBranch': 'branches', 'ConfigurePlugins': 'plugins', 'SearchRole': 'employee_roles', 'SearchEvents': 'events', 'StoqLinkConnect': 'stoq_link_connect', 'ConfigureDevices': 'devices', 'ConfigureUIForm': 'ui_form', 'ConfigurePaymentCategories': 'payment_categories', 'SearchCfop': 'cfop', 'ConfigureGridAttribute': 'grid_attribute', 'ConfigureParameters': 'parameters', 'ConfigureSaleToken': 'sale_token', 'ConfigureSintegra': 'sintegra', 'SearchTaxTemplate': 'tax_templates', 'SearchEmployee': 'employees', 'ConfigureTaxes': 'taxes', 'ConfigureInvoicePrinters': 'invoice_printers', 'ConfigureClientCategories': 'client_categories'}
action_permissions = {'ConfigureInvoicePrinters': ('InvoicePrinter', 1), 'SearchTaxTemplate': ('ProductTaxTemplate', 1), 'ConfigureInvoices': ('InvoiceLayout', 1)}
create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
setup_focus()[source]
new_activate()[source]
search_activate()[source]
on_NewUser__activate(action)[source]
on_SearchCostCenters__activate(action)[source]
on_SearchDuplicatedPersons__activate(action)[source]

accounts Module

Base class for sharing code between accounts payable and receivable.

class stoq.gui.accounts.FilterItem(name, value, color=None, item_id=None)[source]

Bases: object

class stoq.gui.accounts.BaseAccountWindow(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

create_ui()[source]
search_completed(results, states)[source]
add_payment(category=None)[source]
show_details(payment_view)[source]

Shows some details about the payment, allowing to edit a few properties

show_comments(payment_view)[source]

Shows a dialog with comments saved on the payment @param payment_view: an OutPaymentView or InPaymentView instance

change_due_date(payment_view, order)[source]

Receives a payment_view and change the payment due date related to the view.

Parameters:
  • payment_view – an OutPaymentView or InPaymentView instance
  • order – a Sale or Purchase instance related to this payment. This will be used to show the identifier of the order
change_status(payment_view, order, status)[source]

Show a dialog do enter a reason for status change

Parameters:
  • payment_view – an OutPaymentView or InPaymentView instance
  • order – a Sale or Purchase instance related to this payment. This will be used to show the identifier of the order
  • status – The new status to set the payment to
create_main_filter()[source]
add_filter_items(category_type, options)[source]
on_PaymentFlowHistory__activate(action)[source]
on_PaymentCategories__activate(action)[source]

calendar Module

stoq/gui/calendar.py:

Calendar application.
stoq.gui.calendar.parse_javascript_date(jsdate)[source]
class stoq.gui.calendar.CalendarView(app)[source]

Bases: stoqlib.gui.widgets.webview.WebView

web_open_uri(kwargs)[source]
set_daemon_uri(uri)[source]
load()[source]
go_prev()[source]
show_today()[source]
go_next()[source]
change_view(view_name)[source]
refresh()[source]
get_events()[source]
update_events(**events)[source]
class stoq.gui.calendar.CalendarApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = 'Calendar'
gladefile = 'calendar'
create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
print_activate()[source]
export_spreadsheet_activate()[source]
on_NewClientCall__activate(action)[source]
on_NewPayable__activate(action)[source]
on_NewReceivable__activate(action)[source]
on_NewWorkOrder__activate(action)[source]
on_Back__activate(action)[source]
on_Today__activate(action)[source]
on_Forward__activate(action)[source]
on_ViewMonth__activate(action)[source]
on_ViewWeek__activate(action)[source]
on_ViewDay__activate(action)[source]

config Module

First time installation wizard for Stoq

Stoq Configuration dialogs

Current flow of the database steps:

class stoq.gui.config.BaseWizardStep(wizard, previous=None)[source]

Bases: stoqlib.gui.base.wizards.WizardStep, kiwi.ui.delegates.GladeSlaveDelegate

A wizard step base class definition

domain = 'stoq'
gladefile = None
class stoq.gui.config.DatabaseLocationStep(wizard, previous=None)[source]

Bases: stoq.gui.config.BaseWizardStep

gladefile = 'DatabaseLocationStep'
post_init()[source]
next_step()[source]
on_radio_local__activate(radio)[source]
on_radio_network__activate(radio)[source]
class stoq.gui.config.DatabaseSettingsStep(wizard, previous, focus_dbname=True)[source]

Bases: stoqlib.gui.base.wizards.WizardEditorStep

gladefile = 'DatabaseSettingsStep'
model_type

alias of DatabaseSettings

proxy_widgets = ('address', 'port', 'username', 'password', 'dbname')
post_init()[source]
validate_step()[source]
setup_proxies()[source]
next_step()[source]
on_authentication_type__content_changed(*args)[source]
on_dbname__validate(widget, value)[source]
class stoq.gui.config.InstallationModeStep(wizard, previous=None)[source]

Bases: stoq.gui.config.BaseWizardStep

gladefile = 'InstallationModeStep'
model_type

alias of object

post_init()[source]
next_step()[source]
on_empty_database_radio__activate(radio)[source]
on_example_database_radio__activate(radio)[source]
class stoq.gui.config.LinkStep(wizard, previous)[source]

Bases: stoqlib.gui.base.wizards.WizardEditorStep

Stoq link registration step

gladefile = 'LinkStep'
model_type

alias of Settable

proxy_widgets = ['name', 'email', 'phone', 'register_now']
post_init()[source]
setup_proxies()[source]
next_step()[source]
on_image_eventbox__motion_notify_event(widget, event)[source]
on_image_eventbox__button_press_event(widget, event)[source]
on_register_now__toggled(widget)[source]
on_email__validate(widget, value)[source]
on_phone__validate(widget, value)[source]
on_phone__activate(widget)[source]
class stoq.gui.config.PasswordStep(wizard, previous)[source]

Bases: stoq.gui.config.BaseWizardStep

gladefile = 'AdminPasswordStep'
get_slave()[source]
setup_slaves()[source]
post_init()[source]
class stoq.gui.config.PostgresAdminPasswordStep(wizard, previous)[source]

Bases: stoq.gui.config.PasswordStep

Ask a password for posgres administration user.

title_label = "PostgresSQL 'postgres' password"
get_title_label()[source]
get_description_label()[source]
get_slave()[source]
next_step()[source]
class stoq.gui.config.InstallPostgresStep(wizard, previous)[source]

Bases: stoq.gui.config.BaseWizardStep

Since we are going to sell the TEF funcionality, we cant enable the plugin right away. Just ask for some user information and we will contact.

gladefile = 'InstallPostgresStep'
next_step()[source]
class stoq.gui.config.CreateDatabaseStep(wizard, previous=None)[source]

Bases: stoq.gui.config.BaseWizardStep

gladefile = 'CreateDatabaseStep'
post_init()[source]
next_step()[source]
class stoq.gui.config.FinishInstallationStep(wizard, previous=None)[source]

Bases: stoq.gui.config.BaseWizardStep

gladefile = 'FinishInstallationStep'
has_next_step()[source]
post_init()[source]
class stoq.gui.config.FirstTimeConfigWizard(options, config=None)[source]

Bases: stoqlib.gui.base.wizards.BaseWizard

title = 'Stoq - Installation'
size = (711, 400)
get_win32_postgres_port()[source]
try_connect(settings, warn=True)[source]
check_incomplete_database()[source]
load_config_and_call_setup()[source]
connect_for_settings(step=None)[source]
write_pgpass()[source]
cancel(*args)[source]
finish(run=True)[source]

delivery Module

Delivery app definition.

class stoq.gui.delivery.DeliveryApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

Delivery app

app_title = u'Deliveries'
gladefile = 'delivery'
search_spec

alias of DeliveryView

search_label = u'matching:'
create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
search_completed(results, states)[source]
create_filters()[source]
get_columns()[source]
set_open_inventory()[source]
on_search__result_item_popup_menu(search, item, event)[source]
on_search__result_selection_changed(search)[source]
on_search__result_item_activated(search, item)[source]
on_Edit__activate(action)[source]
on_Cancel__activate(action)[source]
on_Pick__activate(action)[source]
on_Pack__activate(action)[source]
on_Send__activate(action)[source]
on_Receive__activate(action)[source]
on_Products__activate(action)[source]
on_Transporters__activate(action)[source]
on_Services__activate(action)[source]
on_Clients__activate(button)[source]

financial Module

stoq/gui/financial/financial.py:

Implementation of financial application.
class stoq.gui.financial.FinancialSearchResults[source]

Bases: stoqlib.gui.search.searchresultview.SearchResultListView

search_completed(results)[source]
class stoq.gui.financial.MonthOption[source]

Bases: stoqlib.gui.search.searchoptions.DateSearchOption

name = None
year = None
month = None
get_interval()[source]
class stoq.gui.financial.TransactionPage(model, app, parent)[source]

Bases: object

get_toplevel()[source]
show()[source]
refresh()[source]
append_transactions(transactions)[source]
update_totals()[source]
on_dialog__opened(dialog)[source]
on_dialog__account_added(dialog)[source]
add_transaction_dialog()[source]
class stoq.gui.financial.FinancialApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = 'Financial'
gladefile = 'financial'
create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
print_activate()[source]
export_spreadsheet_activate()[source]
get_current_page()[source]
refresh_pages()[source]
key_escape()[source]
key_control_w()[source]
on_accounts__row_activated(ktree, account_view)[source]
on_accounts__selection_changed(ktree, account_view)[source]
on_accounts__right_click(results, result, event)[source]
on_Edit__activate(button)[source]
after_notebook__switch_page(notebook, page, page_id)[source]
new_activate()[source]
on_NewAccount__activate(action)[source]
on_NewTransaction__activate(action)[source]
on_DeleteAccount__activate(action)[source]
on_DeleteTransaction__activate(action)[source]
on_Import__activate(action)[source]
on_ConfigurePaymentMethods__activate(action)[source]

inventory Module

Main gui definition for inventory application.

class stoq.gui.inventory.InventoryApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = 'Inventory'
gladefile = 'inventory'
search_spec

alias of Inventory

search_labels = 'Matching:'
report_table

alias of InventoryReport

create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
create_filters()[source]
get_columns()[source]
on_NewInventory__activate(action)[source]
on_CountingAction__activate(action)[source]
on_AdjustAction__activate(action)[source]
on_Details__activate(action)[source]
on_results__selection_changed(results, product)[source]
on_results__right_click(results, result, event)[source]
on_results__double_click(results, inventory)[source]
on_Cancel__activate(widget)[source]
on_Export__activate(widget)[source]
on_PrintProductListing__activate(button)[source]

launcher Module

Application to launcher other application.

class stoq.gui.launcher.LauncherApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

gladefile = 'launcher'
app_title = 'Stoq'
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
setup_focus()[source]
new_activate()[source]
on_iconview__item_activated(iconview, path)[source]

payable Module

stoq/gui/payable/payable.py:

Implementation of payable application.
class stoq.gui.payable.PayableApp(window, store=None)[source]

Bases: stoq.gui.accounts.BaseAccountWindow

app_title = 'Accounts payable'
gladefile = 'payable'
search_spec

alias of OutPaymentView

search_label = 'matching:'
report_table

alias of PayablePaymentReport

editor_class

alias of OutPaymentEditor

payment_category_type = u'payable'
create_actions()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
create_filters()[source]
get_columns()[source]
search_for_date(date)[source]
on_results__row_activated(klist, payable_view)[source]
on_results__right_click(results, result, event)[source]
on_results__selection_changed(results, selected)[source]
on_Comments__activate(action)[source]
on_Details__activate(action)[source]
on_Pay__activate(action)[source]
on_Edit__activate(action)[source]
on_PrintReceipt__activate(action)[source]
on_AddPayment__activate(action)[source]
on_CancelPayment__activate(action)[source]
on_SetNotPaid__activate(action)[source]
on_ChangeDueDate__activate(action)[source]
on_BillCheckSearch__activate(action)[source]

pos Module

Main interface definition for pos application.

class stoq.gui.pos.TemporarySaleItem(sellable, quantity, price=None, notes=None, can_remove=True, quantity_decreased=0, batch=None, parent_item=None, estimated_fix_date=None, deliver=False, original_sale_item=None)[source]

Bases: object

classmethod from_sale_item(item)[source]
full_description
total
quantity_unit
class stoq.gui.pos.PosApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = 'Point of Sales'
gladefile = 'pos'
create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
setup_focus()[source]
can_change_application()[source]
can_close_application()[source]
get_columns()[source]
set_open_inventory()[source]
add_sale_item(item)[source]

Add a TemporarySaleItem item to the sale.

Parameters:item – a temporary item <TemporarySaleItem> to add to the sale. If the caller wants to store extra information about the sold items, it can create a subclass of TemporarySaleItem and pass that class here. This information will propagate when <POSConfirmSaleEvent> is emitted.
checkout(cancel_clear=False, save_only=False)[source]

Initiate the sale checkout process.

Parameters:cancel_clear – If we should cancel the sale if the checkout is cancelled.
on_CancelOrder__activate(action)[source]
on_Clients__activate(action)[source]
on_Sales__activate(action)[source]
on_SearchSalesPersonSales__activate(action)[source]
on_SoldItemsByBranchSearch__activate(action)[source]
on_ProductSearch__activate(action)[source]
on_ServiceSearch__activate(action)[source]
on_DeliverySearch__activate(action)[source]
on_ConfirmOrder__activate(action)[source]
on_NewDelivery__activate(action)[source]
on_PaymentReceive__activate(action)[source]
on_TillClose__activate(action)[source]
on_TillOpen__activate(action)[source]
on_TillVerify__activate(action)[source]
on_DetailsViewer__activate(button)[source]
on_LoanClose__activate(action)[source]
on_WorkOrderClose__activate(action)[source]
on_NewTrade__activate(action)[source]
on_advanced_search__clicked(button)[source]
on_add_button__clicked(button)[source]
on_barcode__activate(entry)[source]
on_sale_token__activate(entry)[source]
after_barcode__changed(editable)[source]
on_quantity__activate(entry)[source]
on_quantity__validate(entry, value)[source]
on_sale_items__selection_changed(sale_items, sale_item)[source]
on_remove_item_button__clicked(button)[source]
on_delivery_button__clicked(button)[source]
on_checkout_button__clicked(button)[source]
on_save_button__clicked(button)[source]
on_edit_item_button__clicked(button)[source]
on_sale_items__row_activated(sale_items, sale_item)[source]

production Module

Main gui definition for production application.

class stoq.gui.production.ProductionApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = u'Production'
gladefile = 'production'
search_spec

alias of ProductionOrder

search_label = u'matching:'
report_table

alias of ProductionReport

create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
create_filters()[source]
get_columns()[source]
print_report(*args, **kwargs)[source]
set_open_inventory()[source]
on_EditProduction__activate(widget)[source]
on_ProductionDetails__activate(widget)[source]
on_FinalizeProduction__activate(widget)[source]
on_CancelProduction__activate(widget)[source]
on_results__selection_changed(results, selected)[source]
on_results__has_rows(widget, has_rows)[source]
on_results__row_activated(widget, order)[source]
on_results__right_click(results, result, event)[source]
on_NewProduction__activate(action)[source]
on_StartProduction__activate(action)[source]
on_ProductionPurchaseQuote__activate(action)[source]
on_SearchProduct__activate(action)[source]
on_SearchService__activate(action)[source]
on_SearchProductionItem__activate(action)[source]
on_SearchProductionHistory__activate(action)[source]

purchase Module

Main gui definition for purchase application.

class stoq.gui.purchase.PurchaseApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = 'Purchase'
gladefile = 'purchase'
search_spec

alias of PurchaseOrderView

search_label = 'matching:'
report_table

alias of PurchaseReport

action_permissions = {'Services': ('Service', 1), 'ProductUnits': ('ProductUnit', 1), 'Products': ('Product', 1), 'NewProduct': ('Product', 2)}
create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
search_completed(results, states)[source]
set_open_inventory()[source]
create_filters()[source]
get_columns()[source]
print_report(*args, **kwargs)[source]
search_for_date(date)[source]
on_results__right_click(results, result, event)[source]
on_results__row_activated(klist, purchase_order_view)[source]
on_results__selection_changed(results, selected)[source]
on_Details__activate(action)[source]
on_Edit__activate(action)[source]
on_Cancel__activate(action)[source]
on_Confirm__activate(button)[source]
on_Finish__activate(action)[source]
on_ExportFilizola__activate(action)[source]
on_StockCost__activate(action)[source]
on_CloseInConsignment__activate(action)[source]
on_SearchInConsignmentItems__activate(action)[source]
on_Categories__activate(action)[source]
on_SearchQuotes__activate(action)[source]
on_SearchPurchasedItems__activate(action)[source]
on_SearchStockItems__activate(action)[source]
on_SearchClosedStockItems__activate(action)[source]
on_Suppliers__activate(action)[source]
on_Products__activate(action)[source]
on_ProductUnits__activate(action)[source]
on_ProductManufacturers__activate(action)[source]
on_Services__activate(action)[source]
on_Transporter__activate(action)[source]
on_ProductsSoldSearch__activate(action)[source]
on_ProductsPriceSearch__activate(action)[source]
on_NewOrder__activate(action)[source]
on_NewQuote__activate(action)[source]
on_NewProduct__activate(action)[source]
on_NewConsignment__activate(action)[source]

receivable Module

stoq/gui/receivable/receivable.py:

Implementation of receivable application.
class stoq.gui.receivable.ReceivableApp(window, store=None)[source]

Bases: stoq.gui.accounts.BaseAccountWindow

app_title = 'Accounts receivable'
gladefile = 'receivable'
search_spec

alias of InPaymentView

search_label = 'matching:'
report_table

alias of ReceivablePaymentReport

editor_class

alias of InPaymentEditor

payment_category_type = u'receivable'
create_actions()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
create_filters()[source]
get_columns()[source]
search_for_date(date)[source]
on_results__row_activated(klist, receivable_view)[source]
on_results__selection_changed(receivables, selected)[source]
on_results__right_click(results, result, event)[source]
on_Details__activate(button)[source]
on_Receive__activate(button)[source]
on_Comments__activate(action)[source]
on_PrintReceipt__activate(action)[source]
on_AddReceiving__activate(action)[source]
on_CancelPayment__activate(action)[source]
on_SetNotPaid__activate(action)[source]
on_ChangeDueDate__activate(action)[source]
on_BillCheckSearch__activate(action)[source]
on_CardPaymentSearch__activate(action)[source]
on_Renegotiate__activate(action)[source]
on_Edit__activate(action)[source]
on_PrintDocument__activate(action)[source]
on_ExportBills__activate(action)[source]

sales Module

Implementation of sales application.

class stoq.gui.sales.FilterItem(name, value=None)[source]

Bases: object

class stoq.gui.sales.SalesApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = 'Sales'
gladefile = 'sales_app'
search_spec

alias of SaleView

search_label = 'matching:'
report_table

alias of SalesReport

cols_info = {u'confirmed': 'confirm_date', u'ordered': 'open_date', u'returned': 'return_date', u'quote': 'open_date', u'initial': 'open_date', u'cancelled': 'cancel_date', u'renegotiated': 'close_date'}
action_permissions = {'SalesPrintInvoice': ('app.sales.print_invoice', 1)}
create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
set_open_inventory()[source]
create_filters()[source]
get_columns()[source]
on_results__selection_changed(results, sale)[source]
on_results__has_rows(results, has_rows)[source]
on_results__right_click(results, result, event)[source]
on_SaleQuote__activate(action)[source]
on_WorkOrderQuote__activate(action)[source]
on_SalesCancel__activate(action)[source]
on_ChangeClient__activate(action)[source]
on_ChangeSalesperson__activate(action)[source]
on_SalesPrintInvoice__activate(action)[source]
on_LoanNew__activate(action)[source]
on_LoanClose__activate(action)[source]
on_LoanSearch__activate(action)[source]
on_LoanSearchItems__activate(action)[source]
on_ReturnedSaleSearch__activate(action)[source]
on_SearchUnconfirmedSaleItems__activate(action)[source]
on_SearchClient__activate(button)[source]
on_SearchProduct__activate(button)[source]
on_SearchCommission__activate(button)[source]
on_SearchClientCalls__activate(action)[source]
on_SearchCreditCheckHistory__activate(action)[source]
on_SearchService__activate(button)[source]
on_SearchSoldItemsByBranch__activate(button)[source]
on_SearchSalesByPaymentMethod__activate(button)[source]
on_SearchDelivery__activate(action)[source]
on_SearchSalesPersonSales__activate(action)[source]
on_SearchClientsWithSale__activate(action)[source]
on_SearchClientsWithCredit__activate(action)[source]
on_SearchSoldItemsByClient__activate(action)[source]
on_Edit__activate(action)[source]
on_Details__activate(action)[source]
on_Return__activate(action)[source]
on_sale_toolbar__sale_edited(widget, sale)[source]
on_sale_toolbar__sale_returned(widget, sale)[source]

services Module

Main gui definition for services application

class stoq.gui.services.WorkOrderResultKanbanView[source]

Bases: stoqlib.gui.widgets.kanbanview.KanbanView

status_question_map = {u'in-progress': u'This will reopen the order. Are you sure?', u'cancelled': u'This will cancel the selected order. Any reserved items will return to stock. Are you sure?', u'waiting': u'This will inform the order that we are waiting. Are you sure?'}
need_reason = [(u'finished', u'waiting'), (u'finished', u'in-progress'), (u'in-progress', u'waiting')]
attach(search, columns)[source]
search_completed(results)[source]
get_settings()[source]
render_item(column, renderer, work_order_view)[source]
class stoq.gui.services.ServicesApp(*args, **kwargs)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

Services app

app_title = u'Services'
gladefile = 'services'
search_spec

alias of WorkOrderView

search_label = u'matching:'
report_table

alias of WorkOrdersReport

create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
search_completed(results, states)[source]
create_filters()[source]
get_columns()[source]
set_open_inventory()[source]
search_for_date(date)[source]
add_filters(filter_items, kind, mapper)[source]

Add additional filter option.

Parameters:filter_items – list of tuple (name, value, color)

:param kind:the kind of filter :param mapper: a dictionary containing the query for each option

new_order(category=None, available_categories=None)[source]
on_search__result_item_popup_menu(search, item, event)[source]
on_search__result_item_activated(search, item)[source]
on_search__result_selection_changed(search)[source]
on_NewOrder__activate(action)[source]
on_SendOrders__activate(action)[source]
on_ReceiveOrders__activate(action)[source]
on_Edit__activate(action)[source]
on_Finish__activate(action)[source]
on_Cancel__activate(action)[source]
on_Details__activate(action)[source]
on_Approve__activate(action)[source]
on_Pause__activate(action)[source]
on_Work__activate(action)[source]
on_Reject__activate(action)[source]
on_UndoRejection__activate(action)[source]
on_Reopen__activate(action)[source]
on_DeliverOrder__activate(action)[source]
on_PrintQuote__activate(action)[source]
on_PrintReceipt__activate(action)[source]
on_Products__activate(action)[source]
on_Services__activate(action)[source]
on_Categories__activate(action)[source]
on_Clients__activate(button)[source]
on_ViewList__toggled(action)[source]
on_ViewKanban__toggled(action)[source]

stock Module

Main gui definition for stock application.

class stoq.gui.stock.StockApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = 'Stock'
gladefile = 'stock'
search_spec

alias of ProductFullStockView

search_labels = 'Matching:'
report_table

alias of SimpleProductReport

pixbuf_converter = <kiwi.ui.proxywidget._PixbufConverter object>
create_actions()[source]
create_ui()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
set_open_inventory()[source]
create_filters()[source]
get_columns()[source]
on_image_viewer_closed(window, event)[source]
on_results__has_rows(results, product)[source]
on_results__selection_changed(results, product)[source]
on_results__right_click(results, result, event)[source]
on_ProductStockHistory__activate(button)[source]
on_ManageStock__activate(action)[source]
on_PrintLabels__activate(button)[source]
on_EditProduct__activate(button)[source]
on_NewReceiving__activate(button)[source]
on_NewTransfer__activate(button)[source]
on_NewStockDecrease__activate(action)[source]
on_StockInitial__activate(action)[source]
on_StockPictureViewer__toggled(button)[source]
on_LoanNew__activate(action)[source]
on_LoanClose__activate(action)[source]
on_LoanSearch__activate(action)[source]
on_LoanSearchItems__activate(action)[source]
on_SearchPurchaseReceiving__activate(button)[source]
on_SearchTransfer__activate(action)[source]
on_SearchTransferItems__activate(action)[source]
on_SearchPendingReturnedSales__activate(action)[source]
on_SearchReturnedItems__activate(action)[source]
on_SearchPurchasedStockItems__activate(action)[source]
on_SearchStockItems__activate(action)[source]
on_SearchBrandItems__activate(action)[source]
on_SearchBrandItemsByBranch__activate(action)[source]
on_SearchBatchItems__activate(action)[source]
on_SearchClosedStockItems__activate(action)[source]
on_SearchProductHistory__activate(action)[source]
on_SearchStockDecrease__activate(action)[source]

till Module

Implementation of till application.

class stoq.gui.till.TillApp(window, store=None)[source]

Bases: stoq.gui.shell.shellapp.ShellApp

app_title = u'Till'
gladefile = 'till'
search_spec

alias of SaleView

search_labels = u'matching:'
report_table

alias of SalesReport

create_actions()[source]
create_ui()[source]
get_title()[source]
activate(refresh=True)[source]
deactivate()[source]
new_activate()[source]
search_activate()[source]
set_open_inventory()[source]
create_filters()[source]
get_columns()[source]
on_Confirm__activate(action)[source]
on_results__double_click(results, sale)[source]
on_results__selection_changed(results, sale)[source]
on_results__has_rows(results, has_rows)[source]
on_results__right_click(results, result, event)[source]
on_Details__activate(action)[source]
on_Payment__activate(action)[source]
on_Return__activate(action)[source]
on_PaymentReceive__activate(action)[source]
on_TillVerify__activate(button)[source]
on_TillClose__activate(button)[source]
on_TillOpen__activate(button)[source]
on_TillAddCash__activate(action)[source]
on_TillRemoveCash__activate(action)[source]
on_TillDailyMovement__activate(button)[source]
on_SearchClient__activate(action)[source]
on_SearchSale__activate(action)[source]
on_SearchCardPayment__activate(action)[source]
on_SearchSoldItemsByBranch__activate(button)[source]
on_SearchTillHistory__activate(button)[source]
on_SearchFiscalTillOperations__activate(button)[source]
on_SearchClosedTill__activate(button)[source]

update Module

Schema Update Wizard

class stoq.gui.update.UpdateWelcomeStep(store, wizard, previous=None)[source]

Bases: stoqlib.gui.base.wizards.BaseWizardStep

gladefile = 'UpdateWelcomeStep'
post_init()[source]
next_step()[source]
class stoq.gui.update.UpdateSchemaStep(store, wizard, previous=None)[source]

Bases: stoqlib.gui.base.wizards.BaseWizardStep

gladefile = 'UpdateSchemaStep'
post_init()[source]
has_next_step()[source]
class stoq.gui.update.SchemaUpdateWizard[source]

Bases: stoqlib.gui.base.wizards.BaseWizard

title = 'Updating Stoq'
size = (450, 300)
finish()[source]

welcomedialog Module

class stoq.gui.welcomedialog.WelcomeDialog[source]

Bases: stoqlib.gui.base.dialogs.BasicDialog

title = 'Welcome to Stoq'
size = (800, 400)
get_uri()[source]