mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] product_contract: pre-commit auto fixes
This commit is contained in:
@@ -5,7 +5,6 @@ from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
|
||||
_inherit = "res.company"
|
||||
|
||||
create_contract_at_sale_order_confirmation = fields.Boolean(
|
||||
|
||||
@@ -5,7 +5,6 @@ from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
create_contract_at_sale_order_confirmation = fields.Boolean(
|
||||
|
||||
@@ -49,9 +49,7 @@ class SaleOrder(models.Model):
|
||||
def _prepare_contract_value(self, contract_template):
|
||||
self.ensure_one()
|
||||
return {
|
||||
"name": "{template_name}: {sale_name}".format(
|
||||
template_name=contract_template.name, sale_name=self.name
|
||||
),
|
||||
"name": f"{contract_template.name}: {self.name}",
|
||||
"partner_id": self.partner_id.id,
|
||||
"company_id": self.company_id.id,
|
||||
"contract_template_id": contract_template.id,
|
||||
|
||||
Reference in New Issue
Block a user