Skip to content

Commit

Permalink
Merge f73aea3 into 228b115
Browse files Browse the repository at this point in the history
  • Loading branch information
kongrattapong committed Jan 2, 2020
2 parents 228b115 + f73aea3 commit 6353f37
Show file tree
Hide file tree
Showing 114 changed files with 101,637 additions and 0 deletions.
153 changes: 153 additions & 0 deletions purchase_request/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
================
Purchase Request
================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/13.0-mig-purchase_request/purchase_request
: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-13-0-mig-purchase_request/purchase-workflow-13-0-mig-purchase_request-purchase_request
: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/13.0-mig-purchase_request
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

You use this module if you wish to give notification of requirements of
materials and/or external services and keep track of such requirements.

Requests can be created either directly or indirectly.
"Directly" means that someone from the requesting department enters a purchase
request manually.

The person creating the request determines what and how much to order,
and the requested date.

"Indirectly" means that the purchase request initiated by the application
automatically, for example, from procurement orders (MO, SO).

A purchase request is an instruction to Purchasing to procure a certain
quantity of materials services, so that they are available at a
certain point in time.

A line of a request contains the quantity and requested date of the
material to be supplied or the quantity of the service to be performed. You
can indicate the service specifications if needed.

Once request is approved go to the Purchase Request Lines from the menu entry
'Purchase Requests', and also from the 'Purchase' menu.

Select the lines that you wish to initiate the RFQ for, then go to 'More'
and press 'Create RFQ'.

You can choose to select an existing RFQ or create a new one. In the later,
you have to choose a supplier.

In case that you chose to select an existing RFQ, the application will search
for existing lines matching the request line, and will add the extra
quantity to them, recalculating the minimum order quantity,
if it exists for the supplier of that RFQ.

In case that you create a new RFQ, the request lines will also be
consolidated into as few as possible lines in the RFQ.

**Table of contents**

.. contents::
:local:

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

To configure the product follow this steps:

#. Go to a product form.
#. Go to *Inventory* tab.
#. Check the box *Purchase Request* along with the route *Buy*.

With this configuration, whenever a procurement order is created and the supply
rule selected is 'Buy' the application will create a Purchase Request instead
of a Purchase Order.

Usage
=====

Purchase requests are accessible through a new menu entry 'Purchase
Requests', and also from the 'Purchase' menu.

Users can access the list of Purchase Requests or Purchase Request Lines.

It is possible to filter requests by its approval status.

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_request%0Aversion:%2013.0-mig-purchase_request%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
~~~~~~~

* Eficent

Contributors
~~~~~~~~~~~~

* Jordi Ballester Alomar <jordi.ballester@eficent.com>
* Jonathan Nemry <jonathan.nemry@acsone.eu>
* Aaron Henriquez <ahenriquez@eficent.com>
* Adrien Peiffer <adrien.peiffer@acsone.eu>
* Lois Rilo <lois.rilo@eficent.com>
* Héctor Villarreal <hector.villarreal@eficent.com>
* Ben Cai <ben.cai@elico-corp.com>
* Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

.. image:: https://upload.wikimedia.org/wikipedia/en/3/3b/Aleph_Objects_Logo.png
:alt: Aleph Objects, Inc
:target: https://www.alephobjects.com

Images
------

* Enric Tobella (logo)

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/13.0-mig-purchase_request/purchase_request>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions purchase_request/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
32 changes: 32 additions & 0 deletions purchase_request/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2018-2019 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).

{
"name": "Purchase Request",
"author": "Eficent, " "Odoo Community Association (OCA)",
"version": "13.0.1.0.0",
"summary": "Use this module to have notification of requirements of "
"materials and/or external services and keep track of such "
"requirements.",
"category": "Purchase Management",
"depends": ["purchase", "product", "purchase_stock"],
"data": [
"security/purchase_request.xml",
"security/ir.model.access.csv",
"data/purchase_request_sequence.xml",
"data/purchase_request_data.xml",
"reports/report_purchase_request.xml",
"wizard/purchase_request_line_make_purchase_order_view.xml",
"views/purchase_request_view.xml",
"views/purchase_request_line_view.xml",
"views/purchase_request_report.xml",
"views/product_template.xml",
"views/purchase_order_view.xml",
"views/stock_move_views.xml",
"views/stock_picking_views.xml",
],
"demo": ["demo/purchase_request_demo.xml"],
"license": "LGPL-3",
"installable": True,
"application": True,
}
35 changes: 35 additions & 0 deletions purchase_request/data/purchase_request_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018-2019 Eficent Business and IT Consulting Services S.L.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo>

<!-- Request-related subtypes for messaging / Chatter -->
<record id="mt_request_to_approve" model="mail.message.subtype">
<field name="name">Purchase Request to be approved</field>
<field name="res_model">purchase.request</field>
<field name="default" eval="True"/>
<field name="description">Purchase Request to be approved</field>
</record>

<record id="mt_request_approved" model="mail.message.subtype">
<field name="name">Purchase Request approved</field>
<field name="res_model">purchase.request</field>
<field name="default" eval="True"/>
<field name="description">Purchase Request approved</field>
</record>

<record id="mt_request_rejected" model="mail.message.subtype">
<field name="name">Purchase Request rejected</field>
<field name="res_model">purchase.request</field>
<field name="default" eval="True"/>
<field name="description">Purchase Request rejected</field>
</record>

<record id="mt_request_done" model="mail.message.subtype">
<field name="name">Purchase Request done</field>
<field name="res_model">purchase.request</field>
<field name="default" eval="True"/>
<field name="description">Purchase Request is done</field>
</record>

</odoo>
13 changes: 13 additions & 0 deletions purchase_request/data/purchase_request_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018-2019 Eficent Business and IT Consulting Services S.L.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo noupdate="1">

<record id="seq_purchase_request" model="ir.sequence">
<field name="name">Purchase Request</field>
<field name="code">purchase.request</field>
<field name="prefix">PR</field>
<field name="padding">5</field>
</record>

</odoo>
16 changes: 16 additions & 0 deletions purchase_request/demo/purchase_request_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018-2019 Eficent Business and IT Consulting Services S.L.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo noupdate="1">

<record id="base.user_demo" model="res.users">
<field eval="[(4, ref('group_purchase_request_user'))]"
name="groups_id"/>
</record>

<record id="base.user_admin" model="res.users">
<field eval="[(4, ref('group_purchase_request_manager'))]"
name="groups_id"/>
</record>

</odoo>

0 comments on commit 6353f37

Please sign in to comment.