OCA / vertical-hotel

Odoo for Hotel Management
https://odoo-community.org/project/13
GNU Affero General Public License v3.0
140 stars 254 forks source link

Error when entering the reservation module with a different company than the first company in Odoo #172

Closed totoday72 closed 11 months ago

totoday72 commented 2 years ago

at the time of wanting to enter the reservations module through another company other Different hotel companies in a if it works but in the second one gives error and does not allow to enter the module.

Module

hotel_reservation

Describe the bug

When try enter to the hotel_reservation module with 2nd company, the message appears:

The requested operation ("read" in "product" (product.product)) was rejected by any of the following rules: (Records: [69] false (id = 36), user: user (id = 2)) Implicitly accessed through 'product' (product.product).

I try in other odoo 13 instance, and appear same error.

Note: this error only appears in hotel_reservation module, hotel module work normally

To Reproduce

Odoo 13:

Steps to reproduce the behavior:

  1. Create 2nd company ( example we have 2 hotels)
  2. Set User to de 2nd company
  3. Login User
  4. Enter to hotel_reservation module

Expected behavior When I perform the previous actions I hope that the module of the screen again with all the rooms for this empty hotel because they are different rooms for each of the hotels. and make the reservations for each one.

Additional context Odoo Local Ubuntu 18.04 16GB RAM

totoday72 commented 2 years ago

at the time of wanting to enter the reservations module through another company other Different hotel companies in a if it works but in the second one gives error and does not allow to enter the module.

Module

hotel_reservation

Describe the bug

When try enter to the hotel_reservation module with 2nd company, the message appears:

The requested operation ("read" in "product" (product.product)) was rejected by any of the following rules: (Records: [69] false (id = 36), user: user (id = 2)) Implicitly accessed through 'product' (product.product).

I try in other odoo 13 instance, and appear same error.

Note: this error only appears in hotel_reservation module, hotel module work normally

To Reproduce

Odoo 13:

Steps to reproduce the behavior:

1. Create 2nd company ( example we have 2 hotels)

2. Set User to de 2nd company

3. Login User

4. Enter to hotel_reservation module

Expected behavior When I perform the previous actions I hope that the module of the screen again with all the rooms for this empty hotel because they are different rooms for each of the hotels. and make the reservations for each one.

Additional context Odoo Local Ubuntu 18.04 16GB RAM

Solution I create "Record Rules" for models.

All record rules are Global (no Group).

Greetings!

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

JayVora-SerpentCS commented 1 year ago

@nikul-serpentcs Can you help this be checked by @ShwetaSerpentCS once ? Thanks.

nikul-serpentcs commented 1 year ago

Yes Sure @JayVora-SerpentCS

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.