sale_order_show_delivery_address

This commit is contained in:
xtremxpert 2025-04-08 11:11:17 -04:00
parent e97b7186b1
commit 3d89095ad0
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{
"name": "Sale Order Show Delivery Address",
"version": "18.0.1.0.0",
"category": "Sales",
"summary": "Show delivery address on sales orders",
"description": """
This module shows the delivery address on sales orders.
""",
"author": "Bemade Inc",
"website": "https://bemade.org",
"depends": [
"sale", # For portal templates and base functionality
],
"data": [
"views/sale_order_views.xml",
],
"license": "LGPL-3",
"installable": True,
"application": False,
"auto_install": False,
}

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="sale_order_form_delivery_address" model="ir.ui.view">
<field name="name">sale.order.form.delivery.address</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="model">sale.order</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_shipping_id']" position="attributes">
<attribute name="widget">res_partner_many2one</attribute>
</xpath>
<xpath expr="//field[@name='sale_order_template_id']" position="attributes">
<attribute name="widget">res_partner_many2one</attribute>
</xpath>
<xpath expr="//form[1]/sheet[1]/group[@name='sale_header']/group[@name='order_details']/field[@name='date_order'][2]" position="attributes">
<attribute name="force_save">1</attribute>
<attribute name="readonly">state != "draft"</attribute>
</xpath>
</field>
</record>
</odoo>