mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] contract_layout_category_hide_detail: Migration to 13.0
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user