purchase-workflow icon indicating copy to clipboard operation
purchase-workflow copied to clipboard

[15.0][ADD] purchase_request_employee: new module to enhance purchase requests with employee information

Open alan196 opened this issue 2 years ago • 1 comments

Description

This pull request proposes a new module called purchase_request_employee that enhances the Purchase Request functionality in Odoo. The module adds a new field that allows the selection of the employee who requested the purchase. This is useful in situations where not all employees are registered as users in the system, or when a supervisor creates a request on behalf of someone else.

The requested_employee_id field is added to the Purchase Request model, and the requested_employee_ids field is added to the Purchase Order model. When a Purchase Request is created, the user can select the employee who requested the purchase. When a Purchase Order is created from a Purchase Request, the requested_employee_ids field is populated with the selected employee, making it easier to track who requested the purchase.

The module has been developed following the Odoo development guidelines and has been tested to ensure that it works correctly.

Changelog

Added requested_employee_id field to the Purchase Request model. Added requested_employee_ids field to the Purchase Order model. The selected employee is passed on to the related Purchase Orders, making it easier to track who requested the purchase. Maintains a more accurate record of purchase requests and their respective authors.

Tests

The module has been tested by creating Purchase Requests with different requested employees, and checking that the requested_employee_ids field of the corresponding Purchase Orders is populated correctly.

alan196 avatar Apr 14 '23 00:04 alan196

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Sep 29 '24 12:09 github-actions[bot]