[MIG] contract_layout_category_hide_detail: Migration to 13.0

This commit is contained in:
Víctor Martínez
2020-10-16 11:43:13 +02:00
parent 7e2cd62617
commit f6101cddfa
5 changed files with 45 additions and 6 deletions

View File

@@ -2,15 +2,14 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
from odoo import models
class ContractLine(models.Model):
_inherit = "contract.line"
@api.multi
def _prepare_invoice_line(self, invoice_id=False, invoice_values=False):
vals = super()._prepare_invoice_line(invoice_id, invoice_values)
def _prepare_invoice_line(self, move_form):
vals = super()._prepare_invoice_line(move_form)
# If the line has skip_zero_qty field (provided by contract_variable
# quantity module) set to 'True' and 'quantity' field' is zero then
# 'vals' will be equal to {}