Skip to content

Commit

Permalink
fix travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
chafique-delli committed Sep 17, 2015
1 parent 3a733e4 commit 342587f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ install:
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
- printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc
- git clone https://github.com/akretion/e-commerce.git -b 8.0-port-sale-quick-payment-ok ${HOME}/e-commerce-sale-quick-payment
- git clone https://github.com/akretion/bank-statement-reconcile.git -b 8.0-sale-order-completion ${HOME}/bank-statement-reconcile
- printf '[options]\n\nrunning_env = dev' > ${HOME}/.openerp_serverrc

script:
- travis_run_tests
Expand Down
5 changes: 2 additions & 3 deletions pos_sale_order/point_of_sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class SaleOrder(models.Model):
_inherit = 'sale.order'

_sql_constraints = [('pos_reference_uniq',
'unique (pos_reference, session_id)',
'The pos_reference must be uniq per session')]
'unique (pos_reference, session_id)',
'The pos_reference must be uniq per session')]

pos_reference = fields.Char(string='Receipt Ref',
readonly=True,
Expand Down Expand Up @@ -239,7 +239,6 @@ def _get_domains(self, vals, partner_id, session):
def _confirm_orders(self):
sale_obj = self.env['sale.order']
for session in self:
order_ids = []
partner_id = session.config_id.anonymous_partner_id.id
domains = {}
domains = self._get_domains(domains, partner_id, session)
Expand Down

0 comments on commit 342587f

Please sign in to comment.