Hello
How can I in 
Requests for Quotation display date_approve without time ?
For example: 
Confirmation Date: 09/11/2024 11:38:22
I want it to show:  only date like this:
Confirmation Date: 09/11/2024
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
Hello
How can I in 
Requests for Quotation display date_approve without time ?
For example: 
Confirmation Date: 09/11/2024 11:38:22
I want it to show:  only date like this:
Confirmation Date: 09/11/2024
Hello,
When i your purchase order, open Studio
Then select the Confirmation Date field --> On the right, uncheck "Show Time"

Hello 2600kg,
Hope you are doing well.
Please use this code in your local module.
Python Code :
// Code In Comment
I Hope this information proves helpful to you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Python Code :
class PurchaseOrder(models.Model):
    _inherit = 'purchase.order'
date_approve_date = fields.Date(
        string="Confirmation Date",
        compute='_compute_date_approve_date',
        store=True
    )
@api.depends('date_approve')
    def _compute_date_approve_date(self):
        for record in self:
            record.date_approve_date = record.date_approve.date() if record.date_approve else False
XML : 
<record id="purchase_order_inherited" model="ir.ui.view">
    <field name="name">purchase.order.inherited.custom.form</field>
    <field name="model">purchase.order</field>
    <field name="inherit_id" ref="purchase.purchase_order_form"/>
    <field name="arch" type="xml">
        </xpath>
            <xpath expr="//div[@name='date_approve']/field[@name='date_approve']" position="attributes">
            <attribute name="invisible">1</attribute>
        </xpath>
<xpath expr="//group/label[@for='date_approve']" position="attributes">
            <attribute name="for">date_approve_date</attribute>
        </xpath>
<xpath expr="//div[@name='date_approve']/field[@name='date_approve']" position="before">
            <field name="date_approve_date"/>
        </xpath>
    </field>
</record>
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|  | 1 sept 25  | 764 | ||
|  | 1 ene 25  | 2205 | ||
|  | 1 nov 24  | 2604 | ||
| 
            
                Odoo apps module
            
            
                    Resuelto
            
         |  | 4 sept 24  | 3474 | |
|  | 0 ago 24  | 2440 |