I created a new field called Booking Number on the Receipt form.
This field is related to the Booking Number of the Purchase Order through the related field: purchase_id.x_booking_number.
After that, I wanted to create another Booking Number field on the Delivery Order form to link it with the Booking Number of the Sale Order.
However, I discovered that the Receipt and Delivery Order share the same view in Odoo.
I don’t want to have two separate Booking Number fields on this shared interface.
Is there a way to make the same Booking Number field dynamically receive the value from either the Purchase Order or the Sale Order, depending on the type of transfer?
Hello,
Yes, you can refer Operation Type field on the same model..
You should be able to use computed fields for this: https://odootricks.tips/computed-fields/