mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos_frontend_rest.git
synced 2023-12-14 06:12:59 +01:00
22 lines
645 B
Python
22 lines
645 B
Python
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||
|
# this repository contains the full copyright notices and license terms.
|
||
|
from __future__ import unicode_literals
|
||
|
from trytond.pool import PoolMeta, Pool
|
||
|
from trytond.model import fields
|
||
|
from trytond.pyson import Eval
|
||
|
|
||
|
__all__ = ['Sale', 'Shop']
|
||
|
|
||
|
|
||
|
class Sale(metaclass=PoolMeta):
|
||
|
__name__ = 'sale.sale'
|
||
|
table_assigned = fields.Many2One('sale.shop.table', 'Table Assigned',
|
||
|
domain=[
|
||
|
('shop', '=', Eval('shop'))
|
||
|
])
|
||
|
|
||
|
|
||
|
class Shop(metaclass=PoolMeta):
|
||
|
__name__ = 'sale.shop'
|
||
|
tables = fields.One2Many('sale.shop.table', 'shop','Tables')
|