[FIX] account_quotation_sale_order_invoice_title : fix _prepare_invoice_values signature
Some checks failed
pre-commit / pre-commit (pull_request) Has been cancelled
Some checks failed
pre-commit / pre-commit (pull_request) Has been cancelled
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Account Quotation Sale Order Invoice Title",
|
"name": "Account Quotation Sale Order Invoice Title",
|
||||||
"version": "18.0.1.0.0",
|
"version": "18.0.1.0.1",
|
||||||
"category": "Accounting",
|
"category": "Accounting",
|
||||||
"summary": "Add title field in Quotations, Sale Orders and Invoices",
|
"summary": "Add title field in Quotations, Sale Orders and Invoices",
|
||||||
"author": "Elabore",
|
"author": "Elabore",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from odoo import models
|
|||||||
class SaleAdvancePaymentInv(models.TransientModel):
|
class SaleAdvancePaymentInv(models.TransientModel):
|
||||||
_inherit = "sale.advance.payment.inv"
|
_inherit = "sale.advance.payment.inv"
|
||||||
|
|
||||||
def _prepare_invoice_values(self, order, so_line):
|
def _prepare_invoice_values(self, order, so_line, accounts):
|
||||||
res = super()._prepare_invoice_values(order, so_line)
|
res = super()._prepare_invoice_values(order, so_line, accounts)
|
||||||
res["move_title"] = order.so_title
|
res["move_title"] = order.so_title
|
||||||
return res
|
return res
|
||||||
|
|||||||
Reference in New Issue
Block a user