diff --git a/shop.py b/shop.py new file mode 100644 index 0000000..b6d4ae8 --- /dev/null +++ b/shop.py @@ -0,0 +1,18 @@ +#This file is part sale_rule module for Tryton. +#The COPYRIGHT file at the top level of this repository contains +#the full copyright notices and license terms. +from trytond.model import fields +from trytond.pool import PoolMeta + +__all__ = ['SaleShop'] +__metaclass__ = PoolMeta + + +class SaleShop: + __name__ = 'sale.shop' + apply_rules = fields.Boolean('Apply Rules', + help='Apply rules when change draft to quotation.') + + @staticmethod + def default_apply_rules(): + return True diff --git a/shop.xml b/shop.xml new file mode 100644 index 0000000..06cbb77 --- /dev/null +++ b/shop.xml @@ -0,0 +1,12 @@ + + + + + + sale.shop + + sale_shop_form + + +