User not allowed to create records of "Sequence" - Rule: User in companies

Hello Tryton Community,

I’m encountering the following error when trying to create or edit a Sequence in Tryton:

“You are not allowed to create records of ‘Sequence’ because they fail on at least one of these rules: User in companies”

:pushpin: What I’m trying to do:

  • I’m setting up sequences for fiscal year and it showed up

:test_tube: My setup:

  • Tryton version: 6.0

:red_question_mark: Questions:

  1. How can I fix this error? Am I missing a permission or company assignment?
  2. Should all sequences be linked to a specific company?
  3. How do I grant a user/group the right to manage sequences?
  4. Or is it because i have two companies?

Any help would be greatly appreciated!

Thank you in advance!
Best regards

It looks like you are trying to create a sequence for a company that your user/session does not belong to.

To fix this, simply assign your user to the desired company before creating the sequence. You can check the official Tryton documentation: Usage — Tryton module with companies and employees

Note that not all sequences have to be linked to a specific company—you can leave the company field blank if you want the sequence to be shared across multiple companies. However, this approach may or may not be best practice, depending on your enterprise’s requirements

I now understand the issue. However, another problem has occurred — the companies are not displaying any data. I have already assigned the company in the Company module, but it does not appear in the Users section.

The reason “Current company” field is not displaying any data in the Users section is because first of all you need to add the companies into the “one2many” field “Companies” . Even if you have already created and assigned the company in the Company module, it will not appear in the Users form until you explicitly add it to the user’s list of companies in the o2m field.

I still lost (sorry Oscar), how do i do that? do i have to add it to my database? or i can through that in SAO?

To set this up, you first need to fill in the “Companies” field:


Once you have added at least one company, you’ll be able to select which company is the current one for that user.

1 Like

Oh my God, lifesaver. Thank you so muuuuchh!!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.