16 lines
281 B
Python
16 lines
281 B
Python
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path(__file__).parent / "src"))
|
|
|
|
from tryton_mcp.config import settings
|
|
|
|
client = settings.get_client()
|
|
|
|
client.connect()
|
|
|
|
name = "model.party.party.read"
|
|
args = ([1], ["id", "name", "code"], {})
|
|
|
|
client.call(name, args)
|