[IMP] contract_layout_category_hide_detail: black, isort, prettier

This commit is contained in:
Víctor Martínez
2020-10-16 11:39:39 +02:00
parent a419f4083f
commit 7e2cd62617
7 changed files with 40 additions and 41 deletions

View File

@@ -1,17 +1,11 @@
# Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields
from odoo import fields, models
class ContractAbstractContractLine(models.AbstractModel):
_inherit = 'contract.abstract.contract.line'
_inherit = "contract.abstract.contract.line"
show_details = fields.Boolean(
string="Show details",
default=True
)
show_subtotal = fields.Boolean(
string="Show subtotal",
default=True
)
show_details = fields.Boolean(string="Show details", default=True)
show_subtotal = fields.Boolean(string="Show subtotal", default=True)

View File

@@ -6,7 +6,7 @@ from odoo import api, models
class ContractLine(models.Model):
_inherit = 'contract.line'
_inherit = "contract.line"
@api.multi
def _prepare_invoice_line(self, invoice_id=False, invoice_values=False):
@@ -16,7 +16,6 @@ class ContractLine(models.Model):
# 'vals' will be equal to {}
if vals:
vals.update(
show_details=self.show_details,
show_subtotal=self.show_subtotal,
show_details=self.show_details, show_subtotal=self.show_subtotal,
)
return vals