Skip to content

[FIX][11.0][web_responsive] Chatter Position#966

Merged
yajo merged 6 commits into
OCA:11.0from
Tardo:fix_chatter_position
Jun 27, 2018
Merged

[FIX][11.0][web_responsive] Chatter Position#966
yajo merged 6 commits into
OCA:11.0from
Tardo:fix_chatter_position

Conversation

@Tardo

@Tardo Tardo commented Jun 25, 2018

Copy link
Copy Markdown
Member

Fix user preferences view... and clean unused variables.

Fix #951 detected issue...

@yajo yajo added this to the 11.0 milestone Jun 25, 2018
@yajo

yajo commented Jun 25, 2018

Copy link
Copy Markdown
Member

I set as WIP until you say it's ready. Thanks!

@Tardo

Tardo commented Jun 25, 2018

Copy link
Copy Markdown
Member Author

Ok.. i think that is fixed... first time that i use this... sorry for the generated issue :/

('sided', 'Sided'),
], string="Chatter Position", default='normal')


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 too many space

type(self).SELF_WRITEABLE_FIELDS.extend(['chatter_position'])
# duplicate list to avoid modifying the original reference
type(self).SELF_READABLE_FIELDS = list(self.SELF_READABLE_FIELDS)
type(self).SELF_READABLE_FIELDS.extend(['chatter_position'])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL 😃

I think it would be good to add a test for this. It would be so simple as impersonating the demo user and trying to write own field, and read if it got properly written.

@yajo

yajo commented Jun 27, 2018

Copy link
Copy Markdown
Member

You have a linter error.

@yajo

yajo commented Jun 27, 2018

Copy link
Copy Markdown
Member

Bah, I fixed it myself. I'll fast-track this if it goes ✔️

@yajo yajo merged commit 38a3dda into OCA:11.0 Jun 27, 2018
@Tardo Tardo deleted the fix_chatter_position branch July 3, 2018 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants