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:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|  | 2 août 25  | 7069 | ||
|  | 1 juin 22  | 8985 | ||
|  | 0 août 21  | 95 | ||
|  | 0 juil. 21  | 172 | ||
|  | 0 mai 21  | 2198 | 
