Second company → separate sequence

Hi.

I have created a second company. Each company has its own number sequence for ‘Sales’ and ‘Parties’.

Under ‘Sales → Configuration → Sequence’, this number sequence can be set individually for each company. Depending on the active company, this sequence is also correctly used when creating a sale.

However, this does not work for Parties. The number sequence most recently set under ‘Parties → Configuration → Sequence’ is always used for both companies, regardless of which company is active.

What am I doing wrong?

Tryton 7.0.6

Did you set the company on the sequence?

The sequence of parties is not defined to depend on company in standard. This is because a party can be used in both companies.

Yes.

In the ‘Company’ column of the table ‘Administration → Sequences → Sequences’, I can see that the different companies are set correctly.

What would be the correct way to allow two companies to distinguish which party “belong” to which company, given that all parties are visible to all companies?

Create 2 databases. If they do not share the parties, they probably share nothing.

If you decide you really need to have them in the same database for some reason, then you could do this with the Party Relationship Module — Party Relationship module for Tryton module, but you will have to manually create the relationships between the parties and the company’s party they belong to.

Great, I’ll take a look at that!

Many thanks to everyone for the help — I really appreciate it.

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