Browse Source

pep8 fixes

pull/29/head
Jos De Graeve 10 years ago
parent
commit
1624bb51da
  1. 8
      pos_require_customer/__openerp__.py
  2. 5
      pos_require_customer/pos.py

8
pos_require_customer/__openerp__.py

@ -37,17 +37,17 @@ In the backend the customer field is required when needed.
""", """,
'author': 'Apertoso NV', 'author': 'Apertoso NV',
'images': [ ],
'images': [],
'depends': ['point_of_sale'], 'depends': ['point_of_sale'],
'data': [ 'data': [
'static/src/xml/templates.xml', 'static/src/xml/templates.xml',
'pos_view.xml', 'pos_view.xml',
], ],
'demo': [ ],
'test': [ ],
'demo': [],
'test': [],
'installable': True, 'installable': True,
'application': True, 'application': True,
'qweb': [ ],
'qweb': [],
'website': 'http://www.apertoso.be', 'website': 'http://www.apertoso.be',
'auto_install': False, 'auto_install': False,
} }

5
pos_require_customer/pos.py

@ -18,15 +18,12 @@
# #
############################################################################## ##############################################################################
import logging
from openerp import fields, models from openerp import fields, models
class PosConfig(models.Model): class PosConfig(models.Model):
_inherit = 'pos.config' _inherit = 'pos.config'
require_customer = fields.Boolean( require_customer = fields.Boolean(
string='Require customer', string='Require customer',
help='Require customer for orders in this point of sale') help='Require customer for orders in this point of sale')
Loading…
Cancel
Save