Skip to content
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

Open
wants to merge 9 commits into
base: 11.0
Choose a base branch
from

Conversation

KolushovAlexandr
Copy link
Contributor

No description provided.

Copy link
Contributor

@itpp-bot itpp-bot left a 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

Copy link
Contributor

Choose a reason for hiding this comment

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

😍

@KolushovAlexandr KolushovAlexandr force-pushed the 11.0-pos_ms-wmc-compatibility branch from 1e40701 to 0d2c3fd Compare November 11, 2019 10:04
Copy link
Contributor

@em230418 em230418 left a 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:
Copy link
Contributor

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 который не выкинет исключение, если его там нет.

Copy link
Collaborator

Choose a reason for hiding this comment

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

get по привычке наверное Саша написал.

Copy link
Collaborator

@yelizariev yelizariev left a 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">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Попроще точно ничего нельзя сделать?)

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.

6 participants