Browse Source

Some refactoring

pull/29/head
Jos De Graeve 10 years ago
parent
commit
00b6564d4d
  1. 3
      pos_require_customer/__init__.py
  2. 2
      pos_require_customer/__openerp__.py
  3. 7
      pos_require_customer/pos.py
  4. 0
      pos_require_customer/pos_view.xml

3
pos_require_customer/__init__.py

@ -1,2 +1 @@
__author__ = 'josdg'
import pos_require_customer
import pos

2
pos_require_customer/__openerp__.py

@ -41,7 +41,7 @@ In the backend the customer field is required when needed.
'depends': ['point_of_sale'],
'data': [
'static/src/xml/templates.xml',
'pos_require_customer_view.xml',
'pos_view.xml',
],
'demo': [ ],
'test': [ ],

7
pos_require_customer/pos_require_customer.py → pos_require_customer/pos.py

@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2004-2014 Apertoso NV (<http://www.apertoso.be>).
#
# This program is free software: you can redistribute it and/or modify
@ -21,10 +19,9 @@
##############################################################################
import logging
from openerp import fields
from openerp.models import Model
from openerp import fields, models
class pos_config(Model):
class PosConfig(models.Model):
_inherit = 'pos.config'
require_customer = fields.Boolean(

0
pos_require_customer/pos_require_customer_view.xml → pos_require_customer/pos_view.xml

Loading…
Cancel
Save