Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3182 Переглядів

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.


Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
лип. 21
3061
1
серп. 24
3447
1
квіт. 24
2173
3
жовт. 23
8473
MOQ on Sales orders Вирішено
1
бер. 23
3119