Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

aa.gusti / opensipkd-base

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • opensipkd-base
  • opensipkd
  • base
  • models
  • partner_odoo.py
  • aa.gusti's avatar
    odoo init · c0e6d973
    aa.gusti committed Sep 30, 2021
    c0e6d973
partner_odoo.py 377 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
from sqlalchemy import (
    Column,
    Integer,
    ForeignKey,
    String
)

from . import Partner
from ..models import (Base, DefaultModel)


class PartnerOdooModel(Base, DefaultModel):
    __tablename__ = 'partner_odoo'
    partner_id = Column(Integer, ForeignKey(Partner.id))
    url = Column(String(254))
    db = Column(String(254))
    api_key = Column(String(256))