3
0
Fork 0

[IMP] web_chatter_position: black, isort, prettier

13.0
SergiCForgeFlow 2023-07-18 13:47:24 +02:00
parent b7e65be2f8
commit a71ba65d19
5 changed files with 13 additions and 9 deletions

View File

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

View File

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

View File

@ -18,9 +18,7 @@
"/web_chatter_position/static/src/scss/attachment_viewer.scss",
"/web_chatter_position/static/src/js/form_chatter_position.js",
],
"web.assets_qweb": [
"/web_chatter_position/static/src/xml/form_buttons.xml",
],
"web.assets_qweb": ["/web_chatter_position/static/src/xml/form_buttons.xml"],
},
"installable": True,
"auto_install": False,

View File

@ -8,8 +8,7 @@ class ResUsers(models.Model):
_inherit = "res.users"
chatter_position = fields.Selection(
[("bottom", "Bottom"), ("sided", "Sided")],
default="sided",
[("bottom", "Bottom"), ("sided", "Sided")], default="sided",
)
# Override so that the user can change the chatter_position field