[FIX] Few fixes to solve warnings:

- _description in account_financial_report_abstract
- _description in vat.report.wizard
- Two fields using same label 'Accounts' in account.group
- Two fields using same label 'Account' in report_journal_ledger_move_line
- Two fields using same label 'Partner' in report_journal_ledger_move_line
- Two fields using same label 'Accounts' in report_trial_balance_account
- Two fields using same label 'Tax' in report_vat_report_taxtag
- Two fields using same label 'Tax' in report_vat_report_tax
- Two fields using same label 'Filter accounts' in general.ledger.report.wizard
This commit is contained in:
Quentin Groulard
2019-03-28 16:51:50 +01:00
committed by chaule97
parent dd1dface54
commit efd0123bf6
7 changed files with 13 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ from odoo import models
class AbstractReport(models.AbstractModel):
_name = 'account_financial_report_abstract'
_description = 'Abstract Report'
def _transient_clean_rows_older_than(self, seconds):
assert self._transient, \

View File

@@ -715,7 +715,8 @@ class ReportJournalLedgerMoveLine(models.TransientModel):
ondelete='cascade',
)
account_id = fields.Many2one(
comodel_name='account.account'
comodel_name='account.account',
string='Account ID',
)
account = fields.Char()
account_code = fields.Char()
@@ -723,6 +724,7 @@ class ReportJournalLedgerMoveLine(models.TransientModel):
partner = fields.Char()
partner_id = fields.Many2one(
comodel_name='res.partner',
string='Partner ID',
)
date = fields.Date()
entry = fields.Char()

View File

@@ -93,10 +93,10 @@ class TrialBalanceReportAccount(models.TransientModel):
index=True
)
child_account_ids = fields.Char(
string="Accounts")
string="Child accounts")
compute_account_ids = fields.Many2many(
'account.account',
string="Accounts", store=True)
string="Compute accounts", store=True)
# Data fields, used for report display
code = fields.Char()

View File

@@ -64,7 +64,8 @@ class VATReportTaxTags(models.TransientModel):
# Data fields, used to browse report data
tax_ids = fields.One2many(
comodel_name='report_vat_report_tax',
inverse_name='report_tax_id'
inverse_name='report_tax_id',
string='Taxes'
)
@@ -82,7 +83,8 @@ class VATReportTax(models.TransientModel):
# Data fields, used to keep link with real object
tax_id = fields.Many2one(
'account.tax',
index=True
index=True,
string='Tax ID',
)
# Data fields, used for report display