endi.forms.price_study package

Submodules

endi.forms.price_study.chapter module

endi.forms.price_study.chapter.get_chapter_add_edit_schema()

Build the schema used to add or edit a PriceStudyChapter

endi.forms.price_study.common module

endi.forms.price_study.discount module

endi.forms.price_study.discount.customize_schema(schema)

Customize the fields to set custom default/missing/validators

Paramètres:

schema (obj) – A SQLAlchemySchemaNode instance

Renvoie:

The modified schema

endi.forms.price_study.discount.get_discount_add_edit_schema(type_)

Build a schema for discount add edit

endi.forms.price_study.price_study module

endi.forms.price_study.price_study.get_price_study_add_edit_schema()

endi.forms.price_study.product module

endi.forms.price_study.product.customize_product_schema(schema, edit=True)

Customize the fields to set custom default/missing/validators

Paramètres:

schema (obj) – A SQLAlchemySchemaNode instance

Renvoie:

The modified schema

endi.forms.price_study.product.get_product_add_schema(type_)
endi.forms.price_study.product.get_product_edit_schema(factory, excludes=(), edit=True)

Build a PriceStudyProduct edit schema regarding the given factory

Paramètres:

factory (class) – A model class

endi.forms.price_study.work_item module

endi.forms.price_study.work_item.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.price_study.work_item.get_work_item_add_edit_schema(add=False)

Module contents