跳至内容
菜单
此问题已终结
1 回复
3009 查看

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

形象
丢弃
相关帖文 回复 查看 活动
0
7月 21
2851
1
8月 24
3253
1
4月 24
1969
3
10月 23
8237
1
3月 23
2991