Metadata-Version: 2.1
Name: odoo-addon-purchase_create_bill_button
Version: 19.0.1.0.0.2
Requires-Dist: odoo==19.0.*
Summary: Add a direct button to create bills from purchase orders
Home-page: https://github.com/OCA/account-invoicing
License: AGPL-3
Author: Madetosoft, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 5 - Production/Stable
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

===========================
Purchase Create Bill Button
===========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
    :target: https://odoo-community.org/page/development-status
    :alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/license-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%2Faccount--invoicing-lightgray.png?logo=github
    :target: https://github.com/OCA/account-invoicing/tree/19.0/purchase_create_bill_button
    :alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/account-invoicing-19-0/account-invoicing-19-0-purchase_create_bill_button
    :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/account-invoicing&target_branch=19.0
    :alt: Try me on Runboat

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

This module restores the direct "Create Bill" button on purchase order
forms that was available in earlier Odoo versions but was removed in the
v18 to v19 migration by Odoo core.

It adds a button in the header of the purchase order form to quickly
create a vendor bill directly from the purchase order.

**Table of contents**

.. contents::
   :local:

Use Cases / Context
===================

**Business need:** In previous Odoo versions, users could create a
vendor bill directly from a purchase order with a single click using a
dedicated button in the form header. Starting from Odoo v19, this button
was removed from the core ``purchase`` module, forcing users to directly
upload the invoice file.

**Approach:** This module adds back the "Create Bill" button in the
purchase order form by inheriting the ``purchase.purchase_order_form``
view and inserting the button in the same position, right after the
existing action buttons. It respects the same visibility conditions
based on the order state and invoice status.

**Useful information:** This module only depends on the core
``purchase`` module, making it lightweight and easy to install. It is
compatible with any other module that extends purchase order
functionality.

Usage
=====

To use this module, you need to:

1. Go to *Purchases > Orders > Purchase Orders*.
2. Open or create a purchase order.
3. Once the purchase order is confirmed (in *Purchase* state), a
   **Create Bill** button will appear in the form header.
4. Click **Create Bill** to generate the vendor bill directly from the
   purchase order.

Changelog
=========

19.0.1.0.0 (2026-05-26)
-----------------------

- Initial release: Add "Create Bill" button back to purchase order form.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20purchase_create_bill_button%0Aversion:%2019.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
-------

* Madetosoft

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

- Oriol Gracia o.gracia@madetosoft.com
- Juan Arcos j.arcos@madetosoft.com

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-jarcosmts| image:: https://github.com/jarcosmts.png?size=40px
    :target: https://github.com/jarcosmts
    :alt: jarcosmts
.. |maintainer-ograciamts| image:: https://github.com/ograciamts.png?size=40px
    :target: https://github.com/ograciamts
    :alt: ograciamts

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

|maintainer-jarcosmts| |maintainer-ograciamts| 

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/19.0/purchase_create_bill_button>`_ project on GitHub.

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