===============================
Purchase Order General Discount
===============================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/11.0/purchase_order_general_discount
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-11-0/purchase-workflow-11-0-purchase_order_general_discount
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/142/11.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
This module allows to set a general discount in a purchase order. This general
discount is applied to each line order.
You can also set a default general discount on suppliers and configure to wich
line field the discount will be applied.
**Table of contents**
.. contents::
:local:
Configuration
=============
You can set in settings another discount field to be applied.
For example, if we had `purchase_triple_discount`, we could set the general
discount in discount3 to be applied after all other discounts.
To do so:
#. Go to *Purchases > Configuration > Settings* and *Purchase Discount Field*
#. Select the discount you'd wish to use. `purchase_triple_discount` fields
will appear when the module is installed.
There's a method at `res.company` called `_get_purchase_discount_fields` that
can be used to extend more line discount fields. For example, if we had the
field `discount4`, we could extend it like this:
.. code-block:: python
@api.model
def _get_purchase_discount_fields(self):
discount_fields = super()._get_purchase_discount_fields()
discount_fields += [('discount4', _('Discount 4'))]
return discount_fields
Usage
=====
To set a partner default general discount you need to:
#. Go to a partner and set the general discount in *Sales & Purchases* tab.
To set a general discount in a purchase order you need to:
#. Create a purchase order.
#. Either select a partner with a purchase general discount defined or set one
in the summary section of the order.
#. This discount will be applied to every line.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_order_general_discount%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Tecnativa
Contributors
~~~~~~~~~~~~
* `Tecnativa <https://www.tecnativa.com>`_:
* David Vidal
* Pedro M. Baeza
* Rafael Blasco
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
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.
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/11.0/purchase_order_general_discount>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Raw data
{
"_id": null,
"home_page": "https://github.com/OCA/purchase-workflow",
"name": "odoo11-addon-purchase-order-general-discount",
"maintainer": "",
"docs_url": null,
"requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
"maintainer_email": "",
"keywords": "",
"author": "Tecnativa, Odoo Community Association (OCA)",
"author_email": "support@odoo-community.org",
"download_url": "",
"platform": "",
"description": "===============================\nPurchase Order General Discount\n===============================\n\n.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! This file is generated by oca-gen-addon-readme !!\n !! changes will be overwritten. !!\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n :target: https://odoo-community.org/page/development-status\n :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github\n :target: https://github.com/OCA/purchase-workflow/tree/11.0/purchase_order_general_discount\n :alt: OCA/purchase-workflow\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n :target: https://translation.odoo-community.org/projects/purchase-workflow-11-0/purchase-workflow-11-0-purchase_order_general_discount\n :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png\n :target: https://runbot.odoo-community.org/runbot/142/11.0\n :alt: Try me on Runbot\n\n|badge1| |badge2| |badge3| |badge4| |badge5| \n\nThis module allows to set a general discount in a purchase order. This general\ndiscount is applied to each line order.\n\nYou can also set a default general discount on suppliers and configure to wich\nline field the discount will be applied.\n\n**Table of contents**\n\n.. contents::\n :local:\n\nConfiguration\n=============\n\nYou can set in settings another discount field to be applied.\nFor example, if we had `purchase_triple_discount`, we could set the general\ndiscount in discount3 to be applied after all other discounts.\n\nTo do so:\n\n#. Go to *Purchases > Configuration > Settings* and *Purchase Discount Field*\n#. Select the discount you'd wish to use. `purchase_triple_discount` fields\n will appear when the module is installed.\n\nThere's a method at `res.company` called `_get_purchase_discount_fields` that\ncan be used to extend more line discount fields. For example, if we had the\nfield `discount4`, we could extend it like this:\n\n.. code-block:: python\n\n @api.model\n def _get_purchase_discount_fields(self):\n discount_fields = super()._get_purchase_discount_fields()\n discount_fields += [('discount4', _('Discount 4'))]\n return discount_fields\n\nUsage\n=====\n\nTo set a partner default general discount you need to:\n\n#. Go to a partner and set the general discount in *Sales & Purchases* tab.\n\nTo set a general discount in a purchase order you need to:\n\n#. Create a purchase order.\n#. Either select a partner with a purchase general discount defined or set one\n in the summary section of the order.\n#. This discount will be applied to every line.\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_order_general_discount%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Tecnativa\n\nContributors\n~~~~~~~~~~~~\n\n* `Tecnativa <https://www.tecnativa.com>`_:\n\n * David Vidal\n * Pedro M. Baeza\n * Rafael Blasco\n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\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\nThis module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/11.0/purchase_order_general_discount>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n",
"bugtrack_url": null,
"license": "AGPL-3",
"summary": "General discount per purchase order",
"version": "11.0.1.1.1",
"project_urls": {
"Homepage": "https://github.com/OCA/purchase-workflow"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "05bedfe4d8cf46a3267fb025c12e284d9c9ac9e94c5751af8fd36d1df306e8b6",
"md5": "bdf7b668a612959b893a0d8abda32523",
"sha256": "ca41970d164579f586ec2edd76ebee2b2b0495cb7f057407e331efc562fbf39c"
},
"downloads": -1,
"filename": "odoo11_addon_purchase_order_general_discount-11.0.1.1.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "bdf7b668a612959b893a0d8abda32523",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
"size": 31652,
"upload_time": "2019-12-12T05:45:45",
"upload_time_iso_8601": "2019-12-12T05:45:45.316022Z",
"url": "https://files.pythonhosted.org/packages/05/be/dfe4d8cf46a3267fb025c12e284d9c9ac9e94c5751af8fd36d1df306e8b6/odoo11_addon_purchase_order_general_discount-11.0.1.1.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2019-12-12 05:45:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "OCA",
"github_project": "purchase-workflow",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "odoo11-addon-purchase-order-general-discount"
}