Odoo program development is based on Python code, but Odoo has been optimized by a large number of experts, making development more convenient. We will regularly update content about Odoo development, so readers should stay tuned.
Below, analyze the customer requirements:
1. In the native Odoo system, clicking the icon in the upper right corner allows you to see which step a sales order is currently at in the system: whether it is in the material procurement stage, the production and manufacturing stage, the warehouse packing and picking stage, or if the package is already prepared and awaiting sales confirmation for shipment readiness; it may also be that part of the goods have been shipped, while other goods are at other stages of the system. Odoo makes it very convenient to check these.
However, many customers feel that clicking in adds an extra step. I want to know how many sales orders I still have to deliver for the current month or day — in other words, I need to clearly see the delivery status of sales orders in a single list.
2. The initial design function was to directly compare the delivery quantity with the sales quantity in the sales order details; however, many issues were later discovered, especially in the wholesale and retail industry, where customers frequently change the required quantity in sales orders. Therefore, directly comparing the sales quantity with the delivery quantity is not comprehensive.
3. Improve the odoo implementation plan: a. Filter out customer outbound orders based on warehouse settings, determine the delivery status based on the completion progress of these statuses, and at the same time, combine the previous delivery quantity and sales quantity to determine whether there is an overshipment situation.
Basic function implementation framework: throughself.env['stock.picking'].search([()])Write the conditions according to the functional requirements to complete it.
