Sale Cart

This commit is contained in:
resteve 2014-06-25 16:40:44 +02:00
parent dd01e63267
commit 807d0cf0e9
3 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#the full copyright notices and license terms.
from trytond.pool import Pool
from .galatea import *
from .sale_cart import *
from .shop import *
from .product import *
@ -10,6 +11,7 @@ def register():
Pool.register(
GalateaWebSite,
GalateaUser,
SaleCart,
SaleShop,
Template,
module='galatea_esale', type_='model')

14
sale_cart.py Normal file
View File

@ -0,0 +1,14 @@
# This file is part of the galatea_esale module for Tryton.
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
from trytond.pool import PoolMeta
from trytond.model import fields
__all__ = ['SaleCart']
__metaclass__ = PoolMeta
class SaleCart:
__name__ = 'sale.cart'
sid = fields.Char('Session', readonly=True)
galatea_user = fields.Many2One('galatea.user', 'Galatea User', readonly=True)

View File

@ -4,6 +4,7 @@ depends:
galatea
esale
product_esale
sale_cart
xml:
galatea.xml
product.xml