-
-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚑 access error for poses created for different companies #1147
base: 11.0
Are you sure you want to change the base?
🚑 access error for poses created for different companies #1147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 installable modules are updated:
├─ pos_longpolling/
| ├─ __manifest__.py
| ├─ doc/
| | └─ changelog.rst
| └─ static/
| └─ src/
| └─ js/
| └─ pos_longpolling.js
└─ pos_multi_session/
├─ __manifest__.py
├─ data/
| └─ pos_multi_session_data.xml
├─ demo/
| └─ demo.xml
├─ doc/
| └─ changelog.rst
├─ models/
| └─ pos_multi_session_models.py
├─ security/
| └─ ir_rule.xml
├─ static/
| └─ src/
| └─ js/
| └─ pos_multi_session.js
└─ views/
└─ pos_multi_session_views.xml
Not installable modules remain unchanged.
sent by ✌️ Odoo Review Bot
-------- | ||
|
||
- **Fix:** Access error for poses created for different companies | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
1e40701
to
0d2c3fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Конфликты надо поправить
result = False | ||
if 'multi_session_id' in vals: | ||
multi_session_id = vals.get('multi_session_id') | ||
if multi_session_id: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я правильно понимаю, что multi_session_id может быть задан в словаре, но иметь значение вида 0, False или None? Меня тут смутило то, что мы сначала проверяем наличие multi_session_id, потом вызываем .get который не выкинет исключение, если его там нет.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get по привычке наверное Саша написал.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Влить можно, но конфликты не очень хочется исправлять. Подождем выхода оду 14, сбросим поддержку оду 11 и закроем))
@@ -88,6 +88,29 @@ | |||
</div> | |||
</div> | |||
</xpath> | |||
<xpath expr="//field[@name='journal_id']/../../../../.." position="after"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Попроще точно ничего нельзя сделать?)
No description provided.