===============================
Purchase Order General Discount
===============================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bb49e22b60ead8ab9c1c33a8829bc5ab47d995dcf6adf21d26e69078fbf60514
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/12.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-12-0/purchase-workflow-12-0-purchase_order_general_discount
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=12.0
:alt: Try me on Runboat
|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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_order_general_discount%0Aversion:%2012.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
* Carlos Roca
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/12.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": "odoo12-addon-purchase-order-general-discount",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": "",
"keywords": "",
"author": "Tecnativa, Odoo Community Association (OCA)",
"author_email": "support@odoo-community.org",
"download_url": "",
"platform": null,
"description": "===============================\nPurchase Order General Discount\n===============================\n\n.. \n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! This file is generated by oca-gen-addon-readme !!\n !! changes will be overwritten. !!\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! source digest: sha256:bb49e22b60ead8ab9c1c33a8829bc5ab47d995dcf6adf21d26e69078fbf60514\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/12.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-12-0/purchase-workflow-12-0-purchase_order_general_discount\n :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n :target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=12.0\n :alt: Try me on Runboat\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 to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_order_general_discount%0Aversion:%2012.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 * Carlos Roca\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/12.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": "12.0.1.0.0.99.dev7",
"project_urls": {
"Homepage": "https://github.com/OCA/purchase-workflow"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5aa2d03357d10c1887636cc55f6b85bfe4f586da83a2eb5f600c57452663a0bf",
"md5": "d5e41c693b1e85f8b6c459fb0d22b535",
"sha256": "0dd00e9a4aac2979ca1d137118e18b000ebee0a6cd92f6cdd7b463f9b58cde43"
},
"downloads": -1,
"filename": "odoo12_addon_purchase_order_general_discount-12.0.1.0.0.99.dev7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d5e41c693b1e85f8b6c459fb0d22b535",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 33424,
"upload_time": "2023-10-11T05:53:56",
"upload_time_iso_8601": "2023-10-11T05:53:56.240000Z",
"url": "https://files.pythonhosted.org/packages/5a/a2/d03357d10c1887636cc55f6b85bfe4f586da83a2eb5f600c57452663a0bf/odoo12_addon_purchase_order_general_discount-12.0.1.0.0.99.dev7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-11 05:53:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "OCA",
"github_project": "purchase-workflow",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "odoo12-addon-purchase-order-general-discount"
}