formatting
This commit is contained in:
parent
5007985264
commit
3db5ec1619
6 changed files with 58 additions and 57 deletions
|
@ -26,12 +26,13 @@ class RunXRechnungReportStart(ModelView):
|
|||
'eDocument Export'
|
||||
__name__ = 'account_invoice_xrechnung.runrep.start'
|
||||
|
||||
invoice = fields.Many2One(string='Invoice', readonly=True,
|
||||
invoice = fields.Many2One(
|
||||
string='Invoice', readonly=True,
|
||||
model_name='account.invoice', required=True)
|
||||
state = fields.Char(string='State', readonly=True,
|
||||
states={'invisible': True})
|
||||
edocument = fields.Selection(string='Type', required=True,
|
||||
selection=sel_edocument)
|
||||
state = fields.Char(
|
||||
string='State', readonly=True, states={'invisible': True})
|
||||
edocument = fields.Selection(
|
||||
string='Type', required=True, selection=sel_edocument)
|
||||
as_zip = fields.Boolean(string='ZIP-File')
|
||||
|
||||
@classmethod
|
||||
|
@ -84,7 +85,7 @@ class RunXRechnungReport(Wizard):
|
|||
if self.start.state != 'posted':
|
||||
raise UserError(gettext(
|
||||
'account_invoice_xrechnung.msg_invoice_must_posted',
|
||||
invname = self.start.invoice.rec_name,
|
||||
invname=self.start.invoice.rec_name,
|
||||
))
|
||||
return action, {
|
||||
'invoice': self.start.invoice.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue