I need to overload a method which is already overloaded by another module. Those modules are not linked but both depends of a common module. How to know in which order those overloaded methods will be called ?
In the module purchase request, there’s a method to create purchase and purchase line from selected purchase_request lines. In the module purchase_request_quotation this method (compute_purchase_line) is overloaded to add a unit_price if there’s a best quotation. I would like to add a such method on the purchase_requisition module, to take care of the unit_price of the purchase_requisition (if not empty of course) when creating the purchase. (but if there’s the purchase_request_quotation, i think the price of the best quotation should update the price of the requisition). So how to know or to define order for executing the purchase_requisition overloaded method before the purchase_request_quotation overloaded method ?