Base Classes

EntityModel

class erp_framework.base.models.EntityModel(*args, **kwargs)[source]

The Main base for ERP framework static models Example: Client , Expense etc..

get_next_slug(suggestion=None)[source]

Get the next slug If it’s a new instance and the slug is not provided, we try and attempt a serial over the already added slugs in relation to the model :return:

save(*args, **kwargs)[source]

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

TransactionModel

class erp_framework.base.models.TransactionModel(*args, **kwargs)[source]
classmethod get_doc_type()[source]

Return the type :return:

property name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

save(*args, **kwargs)[source]

Custom save, it assign the user As owner and the last modifed it sets the type make sure that dlc_date has correct timezone ?! :param force_insert: :param force_update: :param using: :param update_fields: :return:

TransactionItemModel

class erp_framework.base.models.TransactionModel(*args, **kwargs)[source]
classmethod get_doc_type()[source]

Return the type :return:

property name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

save(*args, **kwargs)[source]

Custom save, it assign the user As owner and the last modifed it sets the type make sure that dlc_date has correct timezone ?! :param force_insert: :param force_update: :param using: :param update_fields: :return:

QuantitativeTransactionItemModel

class erp_framework.base.models.TransactionModel(*args, **kwargs)[source]
classmethod get_doc_type()[source]

Return the type :return:

property name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

save(*args, **kwargs)[source]

Custom save, it assign the user As owner and the last modifed it sets the type make sure that dlc_date has correct timezone ?! :param force_insert: :param force_update: :param using: :param update_fields: :return: