Add date to Pay Lines wizard
issue4921 review23381002
This commit is contained in:
1 parent
3cb4e1d95c
commit
b20faf7595
3 files changed
+12
No files matched your search
@@ -1,3 +1,5 @@
|
||||
* Add date to Pay Lines wizard
|
||||
|
||||
Version 3.6.0 - 2015-04-20
|
||||
* Bug fixes (see mercurial logs for details)
|
||||
* Add support for PyPy
|
||||
|
||||
@@ -126,6 +126,13 @@ class PayLineStart(ModelView):
|
||||
required=True, domain=[
|
||||
('company', '=', Eval('context', {}).get('company', -1)),
|
||||
])
|
||||
date = fields.Date('Date', required=True)
|
||||
|
||||
@staticmethod
|
||||
def default_date():
|
||||
pool = Pool()
|
||||
Payment = pool.get('account.payment')
|
||||
return Payment.default_date()
|
||||
|
||||
|
||||
class PayLine(Wizard):
|
||||
@@ -152,6 +159,7 @@ class PayLine(Wizard):
|
||||
journal=self.start.journal,
|
||||
party=line.party,
|
||||
kind=kind,
|
||||
date=self.start.date,
|
||||
amount=line.payment_amount,
|
||||
line=line,
|
||||
)
|
||||
|
||||
@@ -4,4 +4,6 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<form string="Pay Line">
|
||||
<label name="journal"/>
|
||||
<field name="journal"/>
|
||||
<label name="date"/>
|
||||
<field name="date"/>
|
||||
</form>
|
||||
Reference in new issue
Block a user