2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import fields, models
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class AccountingCommonPartnerReport(models.TransientModel):
|
|
|
|
_name = 'account.common.partner.report'
|
|
|
|
_description = 'Account Common Partner Report'
|
|
|
|
_inherit = "account.common.report"
|
|
|
|
|
|
|
|
result_selection = fields.Selection([('customer', 'Receivable Accounts'),
|
|
|
|
('supplier', 'Payable Accounts'),
|
|
|
|
('customer_supplier', 'Receivable and Payable Accounts')
|
|
|
|
], string="Partner's", required=True, default='customer')
|
|
|
|
|
|
|
|
def pre_print_report(self, data):
|
|
|
|
data['form'].update(self.read(['result_selection'])[0])
|
|
|
|
return data
|