Hi everyone,
In the Sale Order form, there’s a field called Delivery Date, which is currently located under the Other Info tab. This placement feels unintuitive. It would be much better and easier to use if this field were placed directly below the Quotation Date.
I tried moving it via Studio, but unfortunately, it wasn’t that simple. So, I need to find another way.
I found the relevant group in the sale.order.form:
<group name="sale_shipping" string="Shipping">
<label for="commitment_date" string="Delivery Date"/>
<div name="commitment_date_div" class="o_row">
<field name="commitment_date" readonly="state == 'cancel' or locked"/>
<span name="expected_date_span" class="text-muted">
Expected: <field name="expected_date" class="oe_inline" widget="date"/>
</span>
</div>
</group>
However, simply copying and pasting this to a different location doesn’t seem like a good idea and won’t work. Also, I prefer not to modify the base sale.order.form directly.
Instead, I was considering creating a new view or using an inherited view to make the adjustments, but I haven’t been able to get it to work.
I looked around the community but couldn’t find a related topic or solution. I previously created a custom field where our sales team can set the week number, but this approach doesn’t work well for planning. If we use the Delivery Date correctly, Odoo can group orders by weeks, making it easier to plan deliveries.
I believe I can keep that custom field and use the information from this post: Display in a Field the Week Number of the Commitment Date to have it both ways.
However, replacing the Delivery Date field seems more complicated than I initially thought.
Any tips or tricks would be greatly appreciated!
Thanks in advance,