mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract_layout_category_hide_detail: black, isort, prettier
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user