I want to make invoice date field editable for admins
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
Hello Jain,
Hope you are doing well.
This field is read only in account_invoice file of account module. So, if you want to edit this field after validating invoice, then you have to inherit account.invoice model and override date_invoice field.
from odoo import models, fields, API
class Account Invoice(models.Model):
    _inherit = "account.invoice"
    date_invoice = fields.Date(string='Invoice Date', index=True,
        help="Keep empty to use the current date", copy=False)  
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
| 
            
                Create Journal Entries   whit code
            
            
                    Çözüldü
            
         |  | 2 Ağu 25  | 7078 | |
|  | 1 Haz 22  | 8995 | ||
|  | 0 Ağu 21  | 95 | ||
|  | 0 Tem 21  | 172 | ||
|  | 0 May 21  | 2204 | 
