mirror of
https://github.com/NaN-tic/trytond-sale_product_stock_shop.git
synced 2023-12-14 02:12:55 +01:00
Add python 3 support
This commit is contained in:
parent
a2ee2e2620
commit
05d2a921f7
2
sale.py
2
sale.py
|
@ -5,10 +5,10 @@ from trytond.pool import Pool, PoolMeta
|
||||||
from trytond.transaction import Transaction
|
from trytond.transaction import Transaction
|
||||||
|
|
||||||
__all__ = ['Sale']
|
__all__ = ['Sale']
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
|
|
||||||
|
|
||||||
class Sale:
|
class Sale:
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'sale.sale'
|
__name__ = 'sale.sale'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
2
shop.py
2
shop.py
|
@ -6,10 +6,10 @@ from trytond.model import fields
|
||||||
from trytond.pyson import Eval
|
from trytond.pyson import Eval
|
||||||
|
|
||||||
__all__ = ['SaleShop']
|
__all__ = ['SaleShop']
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
|
|
||||||
|
|
||||||
class SaleShop:
|
class SaleShop:
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'sale.shop'
|
__name__ = 'sale.shop'
|
||||||
enough_stock = fields.Boolean('Enough Stock',
|
enough_stock = fields.Boolean('Enough Stock',
|
||||||
help='Check enough stock when convert a sale to quotation')
|
help='Check enough stock when convert a sale to quotation')
|
||||||
|
|
Loading…
Reference in a new issue