Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions purchase_order_date_approve_editable/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

====================================
Purchase Order Date Approve Editable
====================================

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

.. |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/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-solvosci%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/solvosci/purchase-workflow/tree/17.0/purchase_order_date_approve_editable
:alt: solvosci/purchase-workflow

|badge1| |badge2| |badge3|

Extends the standard Purchase Order functionality to allow users to
manually edit the Approval Date ('date_approve') after a purchase order
has been confirmed.

By default, Odoo sets this field as readonly. This module makes it
editable until the order is locked (state 'done').

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/solvosci/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/solvosci/purchase-workflow/issues/new?body=module:%20purchase_order_date_approve_editable%0Aversion:%2017.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
-------

* Solvos

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

- `Solvos <https://www.solvos.es>`__:

- Carlos García <carlos.garcia@solvos.es>

Maintainers
-----------

This module is part of the `solvosci/purchase-workflow <https://github.com/solvosci/purchase-workflow/tree/17.0/purchase_order_date_approve_editable>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions purchase_order_date_approve_editable/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions purchase_order_date_approve_editable/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# © 2026 Solvos Consultoría Informática (<http://www.solvos.es>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Purchase Order Date Approve Editable",
"summary": """
Allows editing the Approval Date on Purchase Orders
""",
"author": "Solvos," "Odoo Community Association (OCA)",
"license": "AGPL-3",
"version": "17.0.1.0.0",
"category": "Purchase",
"website": "https://github.com/OCA/purchase-workflow",
"depends": [
"purchase",
],
"data": [
"views/purchase_views.xml",
],
"installable": True,
}
1 change: 1 addition & 0 deletions purchase_order_date_approve_editable/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import purchase_order
10 changes: 10 additions & 0 deletions purchase_order_date_approve_editable/models/purchase_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# © 2026 Solvos Consultoría Informática (<http://www.solvos.es>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import fields, models


class PurchaseOrder(models.Model):
_inherit = "purchase.order"

date_approve = fields.Datetime(tracking=True, readonly=False)
3 changes: 3 additions & 0 deletions purchase_order_date_approve_editable/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions purchase_order_date_approve_editable/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Solvos](https://www.solvos.es):
- Carlos García \<carlos.garcia@solvos.es\>
6 changes: 6 additions & 0 deletions purchase_order_date_approve_editable/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Extends the standard Purchase Order functionality to allow users
to manually edit the Approval Date ('date_approve') after a purchase order
has been confirmed.

By default, Odoo sets this field as readonly.
This module makes it editable until the order is locked (state 'done').
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading