Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3048 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
lug 21
2914
1
ago 24
3311
1
apr 24
2043
3
ott 23
8310
1
mar 23
3019