forked from Techsystech/web
[IMP] web_chatter_position: black, isort, prettier
parent
b7e65be2f8
commit
a71ba65d19
|
@ -0,0 +1 @@
|
||||||
|
../../../../web_chatter_position
|
|
@ -0,0 +1,6 @@
|
||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
|
@ -18,9 +18,7 @@
|
||||||
"/web_chatter_position/static/src/scss/attachment_viewer.scss",
|
"/web_chatter_position/static/src/scss/attachment_viewer.scss",
|
||||||
"/web_chatter_position/static/src/js/form_chatter_position.js",
|
"/web_chatter_position/static/src/js/form_chatter_position.js",
|
||||||
],
|
],
|
||||||
"web.assets_qweb": [
|
"web.assets_qweb": ["/web_chatter_position/static/src/xml/form_buttons.xml"],
|
||||||
"/web_chatter_position/static/src/xml/form_buttons.xml",
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
"installable": True,
|
"installable": True,
|
||||||
"auto_install": False,
|
"auto_install": False,
|
||||||
|
|
|
@ -8,8 +8,7 @@ class ResUsers(models.Model):
|
||||||
_inherit = "res.users"
|
_inherit = "res.users"
|
||||||
|
|
||||||
chatter_position = fields.Selection(
|
chatter_position = fields.Selection(
|
||||||
[("bottom", "Bottom"), ("sided", "Sided")],
|
[("bottom", "Bottom"), ("sided", "Sided")], default="sided",
|
||||||
default="sided",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Override so that the user can change the chatter_position field
|
# Override so that the user can change the chatter_position field
|
||||||
|
|
Loading…
Reference in New Issue