From 8f1b03e5f38870fa16ddf2d927adf24f41c15185 Mon Sep 17 00:00:00 2001 From: resteve Date: Fri, 17 Apr 2015 08:04:49 +0200 Subject: [PATCH] Add forget files last commit --- shop.py | 18 ++++++++++++++++++ shop.xml | 12 ++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 shop.py create mode 100644 shop.xml 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 + + +