odoo10-addon-product-profile


Nameodoo10-addon-product-profile JSON
Version 10.0.1.0.1 PyPI version JSON
download
home_pagehttp://www.akretion.com/
SummaryAllow to configure a product in 1 click
upload_time2020-06-23 05:10:59
maintainer
docs_urlNone
authorAkretion, Odoo Community Association (OCA)
requires_python~=2.7
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
   :target: https://www.gnu.org/licenses/agpl
   :alt: License: AGPL-3

===============
Product Profile
===============

This module provides easier products configuration (in one click).
It allows to configure a product template with only one field.

 .. figure:: static/description/field.png
   :alt: profile field on product
   :width: 600 px

**Main use case**: a lot of modules are installed (mrp, purchase, sale, pos)
and products configuration becomes harder for end users: too many fields to take care of.

You are concerned that at any time a product might be not configured correctly: this module is your friend.

Thanks to this module, a lot of complexity becomes hidden (default behavior) to the end user and usability is optimal.

It eases as well the data migration by only specifying the profile field instead of all fields which depend on it.

Note: This module is meant to be used by skilled people in database fields creation within the ERP framework.

Additional feature: a default value can be attached to a profile (see § Configuration, part 3)


Configuration
=============

1. Create your own profile here: 
   Sales > Configuration > Product > Product Profiles

   .. figure:: static/description/list.png
     :alt: profile list
     :width: 600 px

2. To have more fields available to attach to this profile you must define
   these fields in the model 'product.profile' in your own module
   If the field name (and its type) is the same than those in 'product.template'
   then values of these will be populated automatically
   in 'product.template'
   Example of fields declaration in your own module:

   .. code-block:: python

    class ProductProfile(models.Model):
      """ Require dependency on sale, purchase and point_of_sale modules
      """

      _inherit = 'product.profile'

      def _get_types(self):
          return [('product', 'Stockable Product'),
                  ('consu', 'Consumable'),
                  ('service', 'Service')]

      sale_ok = fields.Boolean(
          string='Can be Sold',
          help="Specify if the product can be selected in a sales order line.")
      purchase_ok = fields.Boolean(
          string='Can be Purchased')
      available_in_pos = fields.Boolean()

3. Second behavior: you might want to add a default behavior to these fields:
   in this case use prefix "profile_default\_" for your field name
   in 'product.profile' model.

   .. code-block:: python

    class ProductProfile(models.Model):
      profile_default_categ_id = fields.Many2one(
            'product.category',
            string='Default category')
       profile_default_route_ids = fields.Many2many(
           'stock.location.route',
           string=u'Default Routes',
           domain="[('product_selectable', '=', True)]",
           help="Depending on the modules installed, this will allow "
              "you to define the route of the product: "
              "whether it will be bought, manufactured, MTO/MTS,...")

   In this case 'categ_id' field (from product.template) is populated
   with 'profile_default_categ_id' value but can be updated manually 
   by the user.
   Careful: each time you change profile, the default value is also populated
   whatever the previous value. Custom value is only keep if don't 
   change the profile.

4. Insert data (xml or csv) and define values for each field defined above
   for each configuration scenario


Usage
=====

Assign a value to the profile field in the product template form.
Then, all fields which depend on this profile will be set to the right value at once.

If you deselect the profile value, all these fields keep the same value and you can change them manually 
(back to standard behavior).

Install **Product Profile Example** module to see a use case in action.

Profiles are also defined as search filter and group.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/product-attribute/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* David BEAL <david.beal@akretion.com>
* Sébastien BEAU <sebastien.beau@akretion.com>
* Abdessamad HILALI <abdessamad.hilali@akretion.com>

Iconography
-----------

https://www.iconfinder.com/icondesigner

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.



            

Raw data

            {
    "_id": null,
    "home_page": "http://www.akretion.com/",
    "name": "odoo10-addon-product-profile",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "~=2.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Akretion, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": "",
    "platform": "",
    "description": ".. image:: https://img.shields.io/badge/license-AGPL--3-blue.png\n   :target: https://www.gnu.org/licenses/agpl\n   :alt: License: AGPL-3\n\n===============\nProduct Profile\n===============\n\nThis module provides easier products configuration (in one click).\nIt allows to configure a product template with only one field.\n\n .. figure:: static/description/field.png\n   :alt: profile field on product\n   :width: 600 px\n\n**Main use case**: a lot of modules are installed (mrp, purchase, sale, pos)\nand products configuration becomes harder for end users: too many fields to take care of.\n\nYou are concerned that at any time a product might be not configured correctly: this module is your friend.\n\nThanks to this module, a lot of complexity becomes hidden (default behavior) to the end user and usability is optimal.\n\nIt eases as well the data migration by only specifying the profile field instead of all fields which depend on it.\n\nNote: This module is meant to be used by skilled people in database fields creation within the ERP framework.\n\nAdditional feature: a default value can be attached to a profile (see \u00a7 Configuration, part 3)\n\n\nConfiguration\n=============\n\n1. Create your own profile here: \n   Sales > Configuration > Product > Product Profiles\n\n   .. figure:: static/description/list.png\n     :alt: profile list\n     :width: 600 px\n\n2. To have more fields available to attach to this profile you must define\n   these fields in the model 'product.profile' in your own module\n   If the field name (and its type) is the same than those in 'product.template'\n   then values of these will be populated automatically\n   in 'product.template'\n   Example of fields declaration in your own module:\n\n   .. code-block:: python\n\n    class ProductProfile(models.Model):\n      \"\"\" Require dependency on sale, purchase and point_of_sale modules\n      \"\"\"\n\n      _inherit = 'product.profile'\n\n      def _get_types(self):\n          return [('product', 'Stockable Product'),\n                  ('consu', 'Consumable'),\n                  ('service', 'Service')]\n\n      sale_ok = fields.Boolean(\n          string='Can be Sold',\n          help=\"Specify if the product can be selected in a sales order line.\")\n      purchase_ok = fields.Boolean(\n          string='Can be Purchased')\n      available_in_pos = fields.Boolean()\n\n3. Second behavior: you might want to add a default behavior to these fields:\n   in this case use prefix \"profile_default\\_\" for your field name\n   in 'product.profile' model.\n\n   .. code-block:: python\n\n    class ProductProfile(models.Model):\n      profile_default_categ_id = fields.Many2one(\n            'product.category',\n            string='Default category')\n       profile_default_route_ids = fields.Many2many(\n           'stock.location.route',\n           string=u'Default Routes',\n           domain=\"[('product_selectable', '=', True)]\",\n           help=\"Depending on the modules installed, this will allow \"\n              \"you to define the route of the product: \"\n              \"whether it will be bought, manufactured, MTO/MTS,...\")\n\n   In this case 'categ_id' field (from product.template) is populated\n   with 'profile_default_categ_id' value but can be updated manually \n   by the user.\n   Careful: each time you change profile, the default value is also populated\n   whatever the previous value. Custom value is only keep if don't \n   change the profile.\n\n4. Insert data (xml or csv) and define values for each field defined above\n   for each configuration scenario\n\n\nUsage\n=====\n\nAssign a value to the profile field in the product template form.\nThen, all fields which depend on this profile will be set to the right value at once.\n\nIf you deselect the profile value, all these fields keep the same value and you can change them manually \n(back to standard behavior).\n\nInstall **Product Profile Example** module to see a use case in action.\n\nProfiles are also defined as search filter and group.\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n<https://github.com/OCA/product-attribute/issues>`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smash it by providing detailed and welcomed feedback.\n\nCredits\n=======\n\nImages\n------\n\n* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.\n\nContributors\n------------\n\n* David BEAL <david.beal@akretion.com>\n* S\u00e9bastien BEAU <sebastien.beau@akretion.com>\n* Abdessamad HILALI <abdessamad.hilali@akretion.com>\n\nIconography\n-----------\n\nhttps://www.iconfinder.com/icondesigner\n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Allow to configure a product in 1 click",
    "version": "10.0.1.0.1",
    "project_urls": {
        "Homepage": "http://www.akretion.com/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d93af4690126aad81eff738f7e4ae2b82543c9dcbb607b6960dee197a996a80a",
                "md5": "63b60a379e0d1f5b8701bec4f0449c41",
                "sha256": "d7eb4ba5bdedde7d7a1eaeb123edf5480a513b3f510cd8becf40fb3d8e165c55"
            },
            "downloads": -1,
            "filename": "odoo10_addon_product_profile-10.0.1.0.1-py2-none-any.whl",
            "has_sig": false,
            "md5_digest": "63b60a379e0d1f5b8701bec4f0449c41",
            "packagetype": "bdist_wheel",
            "python_version": "py2",
            "requires_python": "~=2.7",
            "size": 249621,
            "upload_time": "2020-06-23T05:10:59",
            "upload_time_iso_8601": "2020-06-23T05:10:59.687334Z",
            "url": "https://files.pythonhosted.org/packages/d9/3a/f4690126aad81eff738f7e4ae2b82543c9dcbb607b6960dee197a996a80a/odoo10_addon_product_profile-10.0.1.0.1-py2-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-06-23 05:10:59",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "odoo10-addon-product-profile"
}
        
Elapsed time: 0.08352s