Add forget files last commit

This commit is contained in:
resteve 2015-04-17 08:04:49 +02:00
parent 6a254fd0e4
commit 8f1b03e5f3
2 changed files with 30 additions and 0 deletions

18
shop.py Normal file
View File

@ -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

12
shop.xml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- 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. -->
<tryton>
<data>
<record model="ir.ui.view" id="sale_shop_view_form">
<field name="model">sale.shop</field>
<field name="inherit" ref="sale_shop.sale_shop_view_form"/>
<field name="name">sale_shop_form</field>
</record>
</data>
</tryton>