endi.forms.sale_product package

Submodules

endi.forms.sale_product.category module

endi.forms.sale_product.category.get_sale_product_category_add_edit_schema()

Build an add/edit schema for sale product categories

Renvoie:

An SQLAlchemySchemaNode

endi.forms.sale_product.sale_product module

Sale product related form schemas

endi.forms.sale_product.sale_product.customize_sale_product_and_sale_product_work_schema(schema, edit=True)

Customize the sale product schema to add custom validators and defaults

Paramètres:

schema (obj) – The SQLAlchemySchemaNode instance

endi.forms.sale_product.sale_product.get_sale_product_add_edit_schema(factory, includes=None, edit=True)

Build a Sale product add edit schema

Renvoie:

A colanderalchemy.SQLAlchemySchemaNode schema

endi.forms.sale_product.sale_product.get_sale_product_list_schema()

Build a colander schema for sale product listing

endi.forms.sale_product.sale_product.get_stock_operation_add_edit_schema()

Build a stock operation add edit schema

endi.forms.sale_product.work module

Work item related form schemas

endi.forms.sale_product.work.check_label_if_no_sale_product_id(form, values)

On add, if no label is provided, we need a base_sale_product_id

endi.forms.sale_product.work.customize_work_item_schema(schema, from_work_schema=False, add=False)

Customize the work item schema to add custom validators and defaults

Paramètres:
  • schema – The schema to customize

  • from_work_schema (bool) – Is this customization done a SaleProductWork

schema, in this case we add special functionnalities

Renvoie:

schema

endi.forms.sale_product.work.get_work_item_add_edit_schema(add=False)

Build a work item add edit schema :return:

Module contents