Hello everybody!

I would like to make some questions when using Proteus.

The first one is related with its use to create a party with these commands:
>>> Party = Model.get('party.party')
>>> party = Party()
>>> party.name = 'Test'
>>> party.save()

It turns out that always that I execute this, it is created an empty 
address for that party. Is there any way that this wouldn't happen? I tried 
creating the address also before saving (see the following code), but 
anyway it creates that empty entry:
>>> Party = Model.get('party.party')
>>> party = Party()
>>> party.name = 'Test'
>>> address = party.addresses.new(zip='42')
>>> party.save()

Another question that I have is related with the error "Bypass an access 
rule". I know it is related with the user permissions, but I cannot find 
how to solve it. For example, I am trying to create with Proteus with the 
admin user a sequence ("ir.sequence"), I gave to my admin user all the 
permissions for this module, but anyway it keeps throwing me this error:
*You try to bypass an access rule. Document type: ir.sequence*
How I should give permissions to my user to avoid this error?

Thanks a lot in advance. Best regards.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/c81baf57-74ba-4c98-ab58-3eb602abfbc6%40googlegroups.com.

Reply via email to