İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3063 Görünümler

Is there a way of making the invoice date the same as the sales order date?


I've found this question previously asked for Odoo v8 - https://www.odoo.com/forum/help-1/invoice-date-same-as-sales-order-date-110292, however I can't figure out how todo this in Odoo 14 on odoo.sh.


Avatar
Vazgeç
En İyi Yanıt

Hi,

Since you are using odoo 14 in sh, it support the custom modules.So you can add the following code in your existing custom module if any or you can create new custom module for this and you can deploy on odoo.sh.

class SaleOrder(models.Model):
_inherit = 'sale.order'

def _prepare_invoice(self):
res = super(SaleOrder, self)._prepare_invoice()
res['invoice_date'] = self.date_order
return res

Hope it helps

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Tem 21
2930
1
Ağu 24
3320
1
Nis 24
2055
3
Eki 23
8320
1
Mar 23
3025