Skip to content

Commit

Permalink
[FIX] 计算最后收款日期 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
USI-SHRD committed Jun 11, 2018
1 parent 75b609e commit ce88d81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion money/models/money_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,8 @@ def compute_overdue(self):
@api.one
@api.depends('reconciled')
def _get_sell_amount_state(self):
self.get_amount_date = self.write_date[:10]
if self.reconciled:
self.get_amount_date = self.write_date[:10]

state = fields.Selection([
('draft', u'草稿'),
Expand Down

0 comments on commit ce88d81

Please sign in to comment.