Skip to content

Commit

Permalink
Merge pull request #25 from akretion/7.0_sale_quick_payment_journal_r…
Browse files Browse the repository at this point in the history
…equired

[FIX] the journal must be required
  • Loading branch information
pedrobaeza committed Dec 14, 2014
2 parents aec6977 + 7f02916 commit cfb4b2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sale_quick_payment/wizard/pay_sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ class pay_sale_order(orm.TransientModel):
_description = 'Wizard to generate a payment from the sale order'

_columns = {
'journal_id': fields.many2one('account.journal', 'Journal'),
'journal_id': fields.many2one(
'account.journal',
'Journal',
required=True),
'amount': fields.float('Amount',
digits_compute=dp.get_precision('Sale Price')),
'date': fields.datetime('Payment Date'),
Expand Down

0 comments on commit cfb4b2c

Please sign in to comment.