Skip to Content
Menu
This question has been flagged
1 Reply
4864 Views

I want to be able to select manually my sales order date.

I can't find where under "sales.order.form" in python, I am able to change it.

Please help check code below and let me know what should be the revised code.

<group>

                            <field name="partner_id" widget="res_partner_many2one" context="{'res_partner_search_mode': 'customer', 'show_address': 1, 'show_vat': True}" options="{&quot;always_reload&quot;: True}"/>

                            <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}" options="{&quot;always_reload&quot;: True}"/>

                            <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}" options="{&quot;always_reload&quot;: True}"/>

                        </group>

                        <group>

                            <field name="validity_date" attrs="{'invisible': [('state', 'in', ['sale', 'done'])]}"/>

                            <div class="o_td_label" groups="base.group_no_one" attrs="{'invisible': [('state', 'in', ['sale', 'done', 'cancel'])]}">

                                <label for="date_order" string="Quotation Date"/>

                            </div>

                            <field name="date_order" nolabel="1" groups="base.group_no_one" attrs="{'invisible': [('state', 'in', ['sale', 'done', 'cancel'])]}"/>

                            <div class="o_td_label" attrs="{'invisible': [('state', 'in', ['draft', 'sent'])]}">

                                <label for="date_order" string="Order Date"/>

                            </div>

                            <field name="date_order" attrs="{'required': [('state', 'in', ['sale', 'done'])], 'invisible': [('state', 'in', ['draft', 'sent'])]}" nolabel="1"/>

                            <field name="pricelist_id" groups="product.group_product_pricelist" options="{'no_open':True,'no_create': True}"/>

                            <field name="currency_id" invisible="1"/>

                            <field name="payment_term_id" options="{'no_open':True,'no_create': True}"/>

                        </group>


Many thanks in advance

Avatar
Discard
Related Posts Replies Views Activity
1
Oct 24
184
2
Mar 24
692
2
Mar 24
1322
0
Sep 23
354
1
Sep 23
459