first commit

This commit is contained in:
root
2026-03-14 09:42:12 +00:00
commit 0adbd20c2c
10991 changed files with 1646955 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
==============================
Party Identifier Notifications
==============================
Imports::
>>> from proteus import Model
>>> from trytond.tests.tools import activate_modules
Activate modules::
>>> config = activate_modules('party')
>>> Party = Model.get('party.party')
Create first party::
>>> party1 = Party(name="Party 1")
>>> identifier = party1.identifiers.new(type='be_vat')
>>> identifier.code = "500923836"
>>> party1.save()
Create second party::
>>> party2 = Party(name="Party 2")
>>> identifier = party2.identifiers.new(type='be_vat')
>>> identifier.code = "500923836"
Check notifications::
>>> len(identifier.notifications())
1
Change identifier::
>>> identifier.type = None
>>> identifier.code = "foo"
Check notifications::
>>> len(identifier.notifications())
0