========================
Purchase Work Acceptance
========================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:d645ef4e95a02ac0974e6357ae9334fb019f0d639fa42dd02fe2ae399115ee21
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
    :target: https://odoo-community.org/page/development-status
    :alt: Alpha
.. |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/16.0/purchase_work_acceptance
    :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-16-0/purchase-workflow-16-0-purchase_work_acceptance
    :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=16.0
    :alt: Try me on Runboat

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

This module introduces the ability to define a quantity control point on Receipts and Vendor Bills by
Work Acceptance. Only the products and services that have been included in a Work Acceptance can be
received and/or invoiced.

.. IMPORTANT::
   This is an alpha version, the data model and design can change at any time without warning.
   Only for development or testing purpose, do not use in production.
   `More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
   :local:

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

** Show Button Create WA on Purchase Order **

#. Go to *Purchase > Configuration > Settings*
#. Check 'Enable WA on Purchase Order'

** Show WA Reference fields on Receipt **

#. Go to *Purchase > Configuration > Settings*
#. Check 'Enable WA on Goods Receipt'

** Control Receipt by Work Acceptance**

#. Go to *Purchase > Configuration > Settings*
#. Check 'Enforce WA on Goods Receipt'

** Show WA Reference fields on Vendor Bill **

#. Go to *Purchase > Configuration > Settings*
#. Check 'Enable WA on Vendor Bill'

** Control Vendor Bill by Work Acceptance**

#. Go to *Purchase > Configuration > Settings*
#. Check 'Enforce WA on Vendor Bill'

Note:

* You can check 'Enable WA on Goods Receipt' and 'Enable WA on Vendor Bill' after checked 'Enable WA on Purchase Order'
* You can check 'Enforce WA on Goods Receipt' after checked 'Enable WA on Goods Receipt'
  * But you can bypass WA on some Picking Operation by setting 'WA not required' on Operation Type
* You can check 'Enforce WA on Vendor Bill' after checked 'Enable WA on Vendor Bill'

Usage
=====

** Usual process of Purchasing with Work Acceptance **

#. Create a New Purchase Order
#. Confirm the Purchase Order
#. Create a new Work Acceptance
#. Accept the Work Acceptance
#. Receive the products following a specific Work Acceptance
#. Create the Vendor Bill following a specific Work Acceptance

** Create a Work Acceptance **

#. Create Purchase Order normally
#. After 'Confirm Order' (Status = 'Purchase'), Click button 'Create WA'
#. Accept order

** Control Receipt by Work Acceptance **

#. After 'Confirm Order' in Purchase Order, a smart button 'Receipt' will appear on the Purchase Order
#. Click 'Receipt' to go to the Transfer
#. Select the Work Acceptance relating to this picking in the field 'WA Reference'.
   The quantity done filled automatically for the items that have been already accepted.

** Control Vendor Bill by Work Acceptance **

#. After once the products and/or services have been accepted, Click 'Create Bill'
#. You will be prompted to select a Work Acceptance. Select it and Click 'Post'

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_work_acceptance%0Aversion:%2016.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
~~~~~~~

* Ecosoft

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

* `Ecosoft <http://ecosoft.co.th>`__:

  * Pimolnat Suntian <pimolnats@ecosoft.co.th>

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.

.. |maintainer-ps-tubtim| image:: https://github.com/ps-tubtim.png?size=40px
    :target: https://github.com/ps-tubtim
    :alt: ps-tubtim

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-ps-tubtim| 

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/16.0/purchase_work_acceptance>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
