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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
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
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
2
11月 22
|
5254 | ||
|
1
6月 22
|
7522 | ||
|
0
8月 21
|
95 | ||
|
0
7月 21
|
172 | ||
|
0
5月 21
|
1291 |