added trastales to pay invoice for statement
This commit is contained in:
16
statement.py
16
statement.py
@@ -307,9 +307,9 @@ class CloseStatement(Wizard):
|
||||
account=account.id)]
|
||||
)
|
||||
statement.lines = statement.lines + conciliation
|
||||
|
||||
else:
|
||||
statement.end_balance = end_balance
|
||||
|
||||
statement.save()
|
||||
statements.append(statement)
|
||||
results.append(gettext('sale_payment.close_statement',
|
||||
@@ -373,7 +373,7 @@ class PayInvoiceSupplierStart(ModelView):
|
||||
'Payment Invoice To Supplier'
|
||||
__name__ = 'pay_invoice.statement.start'
|
||||
|
||||
invoice_to_pay = fields.One2Many('line_invoice.pay', None, 'Lines To Pay')
|
||||
invoice_to_pay = fields.One2Many('line_invoice.pay', None, "Invoice To Pay")
|
||||
|
||||
class PayInvoiceSupplier(Wizard):
|
||||
'Payment Invoice To Supplier'
|
||||
@@ -429,13 +429,9 @@ class LinesInvoiceToPay(ModelView):
|
||||
'company.company', "Company", required=True, select=True)
|
||||
journal = fields.Many2One('account.statement.journal', 'Journal',
|
||||
required=True, select=True)
|
||||
amount = Monetary(
|
||||
"Amount", currency='currency', digits='currency', required=True)
|
||||
party = fields.Many2One(
|
||||
'party.party', "Party",
|
||||
context={
|
||||
'company': Eval('company', -1),
|
||||
},)
|
||||
amount = Monetary("Amount", currency='currency', digits='currency', required=True)
|
||||
party = fields.Many2One('party.party', "Party", required=True,
|
||||
context={'company': Eval('company', -1)},)
|
||||
invoice = fields.Reference(
|
||||
"Related To", 'get_relations', required=True,
|
||||
domain={
|
||||
@@ -479,5 +475,3 @@ class LinesInvoiceToPay(ModelView):
|
||||
models = cls._get_relations()
|
||||
|
||||
return [(m, get_name(m)) for m in models]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user