Fix typo classification
This commit is contained in:
parent
9d8e99ab62
commit
f5835bc887
10
account.py
10
account.py
|
@ -1296,7 +1296,7 @@ class PartyWithholdingStart(ModelView):
|
|||
required=True)
|
||||
company = fields.Many2One('company.company', 'Company', required=True)
|
||||
party = fields.Many2One('party.party', 'Party')
|
||||
clasification = fields.Selection('selection_certificate_type',
|
||||
classification = fields.Selection('selection_certificate_type',
|
||||
'Certificate Report')
|
||||
start_period = fields.Many2One('account.period', 'Start Period',
|
||||
domain=[
|
||||
|
@ -1328,7 +1328,7 @@ class PrintPartyWithholding(Wizard):
|
|||
'account_col.print_party_withholding_start_view_form', [
|
||||
Button('Cancel', 'end', 'tryton-cancel'),
|
||||
Button('Ok', 'print_', 'tryton-ok', default=True),
|
||||
])
|
||||
])
|
||||
print_ = StateReport('account_col.party_withholding')
|
||||
|
||||
def do_print_(self, action):
|
||||
|
@ -1348,7 +1348,7 @@ class PrintPartyWithholding(Wizard):
|
|||
'company': self.start.company.id,
|
||||
'fiscalyear': self.start.fiscalyear.id,
|
||||
'party': party_id,
|
||||
'clasification': self.start.clasification,
|
||||
'classification': self.start.classification,
|
||||
'start_period': start_period,
|
||||
'end_period': end_period,
|
||||
}
|
||||
|
@ -1392,10 +1392,10 @@ class PartyWithholding(Report):
|
|||
|
||||
periods = Period.search(dom_periods, order=[('start_date', 'ASC')])
|
||||
period_ids = [p.id for p in periods]
|
||||
if data['clasification'] is None:
|
||||
if data['classification'] is None:
|
||||
dom_taxes = []
|
||||
else:
|
||||
dom_taxes = [('classification', '=', data['clasification'])]
|
||||
dom_taxes = [('classification', '=', data['classification'])]
|
||||
taxes = Tax.search(dom_taxes)
|
||||
tax_ids = [t.id for t in taxes]
|
||||
|
||||
|
|
|
@ -12,6 +12,6 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<field name="end_period" widget="selection"/>
|
||||
<label name="party"/>
|
||||
<field name="party"/>
|
||||
<label name="clasification"/>
|
||||
<field name="clasification"/>
|
||||
<label name="classification"/>
|
||||
<field name="classification"/>
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue