[IMP] agreement: black, isort, prettier

This commit is contained in:
newtratip
2021-02-16 11:24:56 +07:00
parent a05ab5d1be
commit 80b64c233a
4 changed files with 14 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
"author": "Akretion, "
"Yves Goldberg (Ygol Internetwork), "
"Odoo Community Association (OCA)",
"website": "https://github.com/oca/contract",
"website": "https://github.com/OCA/contract",
"license": "AGPL-3",
"depends": ["mail"],
"data": [

View File

@@ -20,7 +20,9 @@ class Agreement(models.Model):
track_visibility="onchange",
)
company_id = fields.Many2one(
"res.company", string="Company", default=lambda self: self.env.company,
"res.company",
string="Company",
default=lambda self: self.env.company,
)
is_template = fields.Boolean(
string="Is a Template?",
@@ -30,7 +32,9 @@ class Agreement(models.Model):
"Template agreements don't require a partner.",
)
agreement_type_id = fields.Many2one(
"agreement.type", string="Agreement Type", help="Select the type of agreement",
"agreement.type",
string="Agreement Type",
help="Select the type of agreement",
)
domain = fields.Selection(
"_domain_selection",

View File

@@ -0,0 +1 @@
../../../../agreement

6
setup/agreement/setup.py Normal file
View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)