mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] agreement: black, isort, prettier
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
"author": "Akretion, "
|
"author": "Akretion, "
|
||||||
"Yves Goldberg (Ygol Internetwork), "
|
"Yves Goldberg (Ygol Internetwork), "
|
||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/oca/contract",
|
"website": "https://github.com/OCA/contract",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"depends": ["mail"],
|
"depends": ["mail"],
|
||||||
"data": [
|
"data": [
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ class Agreement(models.Model):
|
|||||||
track_visibility="onchange",
|
track_visibility="onchange",
|
||||||
)
|
)
|
||||||
company_id = fields.Many2one(
|
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(
|
is_template = fields.Boolean(
|
||||||
string="Is a Template?",
|
string="Is a Template?",
|
||||||
@@ -30,7 +32,9 @@ class Agreement(models.Model):
|
|||||||
"Template agreements don't require a partner.",
|
"Template agreements don't require a partner.",
|
||||||
)
|
)
|
||||||
agreement_type_id = fields.Many2one(
|
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 = fields.Selection(
|
||||||
"_domain_selection",
|
"_domain_selection",
|
||||||
|
|||||||
1
setup/agreement/odoo/addons/agreement
Symbolic link
1
setup/agreement/odoo/addons/agreement
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../../agreement
|
||||||
6
setup/agreement/setup.py
Normal file
6
setup/agreement/setup.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user