Update documentation of product classification
This commit is contained in:
@@ -25,44 +25,57 @@ Version 6.6.0 - 2022-10-31
|
|||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 6.4.0 - 2022-05-02
|
Version 6.4.0 - 2022-05-02
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
* Add support for Python 3.10
|
* Add support for Python 3.10
|
||||||
* Remove support for Python 3.6
|
* Remove support for Python 3.6
|
||||||
|
|
||||||
Version 6.2.0 - 2021-11-01
|
Version 6.2.0 - 2021-11-01
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 6.0.0 - 2021-05-03
|
Version 6.0.0 - 2021-05-03
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 5.8.0 - 2020-11-02
|
Version 5.8.0 - 2020-11-02
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
* Remove support for Python 3.5
|
* Remove support for Python 3.5
|
||||||
|
|
||||||
Version 5.6.0 - 2020-05-04
|
Version 5.6.0 - 2020-05-04
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 5.4.0 - 2019-11-04
|
Version 5.4.0 - 2019-11-04
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 5.2.0 - 2019-05-06
|
Version 5.2.0 - 2019-05-06
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 5.0.0 - 2018-10-01
|
Version 5.0.0 - 2018-10-01
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
* Remove support for Python 2.7
|
* Remove support for Python 2.7
|
||||||
|
|
||||||
Version 4.8.0 - 2018-04-23
|
Version 4.8.0 - 2018-04-23
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 4.6.0 - 2017-10-30
|
Version 4.6.0 - 2017-10-30
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 4.4.0 - 2017-05-01
|
Version 4.4.0 - 2017-05-01
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 4.2.0 - 2016-11-28
|
Version 4.2.0 - 2016-11-28
|
||||||
|
--------------------------
|
||||||
* Bug fixes (see mercurial logs for details)
|
* Bug fixes (see mercurial logs for details)
|
||||||
|
|
||||||
Version 4.0.0 - 2016-05-02
|
Version 4.0.0 - 2016-05-02
|
||||||
|
--------------------------
|
||||||
* Initial release
|
* Initial release
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
******
|
||||||
|
Design
|
||||||
|
******
|
||||||
|
|
||||||
|
The *Product Classification Module* introduces and extends the following concepts:
|
||||||
|
|
||||||
|
.. _model-product.template:
|
||||||
|
|
||||||
|
Product Template
|
||||||
|
================
|
||||||
|
|
||||||
|
When the *Product Classification Module* is activated, product templates gain
|
||||||
|
some extra properties.
|
||||||
|
These include a :guilabel:`Classification` to link with an implementation of
|
||||||
|
:class:`~trytond.modules.product_classification.product.ClassificationMixin`.
|
||||||
|
|
||||||
|
.. seealso::
|
||||||
|
|
||||||
|
The `Product Template <product:model-product.template>` concept is
|
||||||
|
introduced by the :doc:`Product Module <product:index>`.
|
||||||
@@ -1,6 +1,13 @@
|
|||||||
|
#############################
|
||||||
Product Classification Module
|
Product Classification Module
|
||||||
#############################
|
#############################
|
||||||
|
|
||||||
The Product Classification module defines the tools for other modules to create
|
The *Product Classification Module* provides the tools for other modules to
|
||||||
classifications of products.
|
implemented classifications of products.
|
||||||
It adds a reference field *classification* to the product template.
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
design
|
||||||
|
reference
|
||||||
|
releases
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
*************
|
||||||
|
API Reference
|
||||||
|
*************
|
||||||
|
|
||||||
|
Classification
|
||||||
|
==============
|
||||||
|
|
||||||
|
.. class:: trytond.modules.product_classification.product.ClassificationMixin
|
||||||
|
|
||||||
|
A :class:`~trytond:trytond.model.DeactivableMixin` that defines the
|
||||||
|
requirements to implement a product classification.
|
||||||
|
|
||||||
|
classification_tree
|
||||||
|
===================
|
||||||
|
|
||||||
|
.. function:: trytond.modules.product_classification.product.classification_tree(name)
|
||||||
|
|
||||||
|
A function that returns a
|
||||||
|
:class:`~trytond.modules.product_classification.product.ClassificationMixin`
|
||||||
|
which implements :func:`~trytond:trytond.model.tree`.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
.. _releases-index:
|
||||||
|
|
||||||
|
=============
|
||||||
|
Release notes
|
||||||
|
=============
|
||||||
|
|
||||||
|
.. include:: ../CHANGELOG
|
||||||
@@ -11,9 +11,12 @@ from setuptools import find_packages, setup
|
|||||||
|
|
||||||
|
|
||||||
def read(fname):
|
def read(fname):
|
||||||
return io.open(
|
content = io.open(
|
||||||
os.path.join(os.path.dirname(__file__), fname),
|
os.path.join(os.path.dirname(__file__), fname),
|
||||||
'r', encoding='utf-8').read()
|
'r', encoding='utf-8').read()
|
||||||
|
content = re.sub(
|
||||||
|
r'(?m)^\.\. toctree::\r?\n((^$|^\s.*$)\r?\n)*', '', content)
|
||||||
|
return content
|
||||||
|
|
||||||
|
|
||||||
def get_require_version(name):
|
def get_require_version(name):
|
||||||
@@ -57,7 +60,8 @@ setup(name=name,
|
|||||||
download_url=download_url,
|
download_url=download_url,
|
||||||
project_urls={
|
project_urls={
|
||||||
"Bug Tracker": 'https://bugs.tryton.org/',
|
"Bug Tracker": 'https://bugs.tryton.org/',
|
||||||
"Documentation": 'https://docs.tryton.org/',
|
"Documentation": (
|
||||||
|
'https://docs.tryton.org/latest/modules-product-classification'),
|
||||||
"Forum": 'https://www.tryton.org/forum',
|
"Forum": 'https://www.tryton.org/forum',
|
||||||
"Source Code": 'https://code.tryton.org/tryton',
|
"Source Code": 'https://code.tryton.org/tryton',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user