diff --git a/yuthon_property/views/property_bank_statements_views.xml b/yuthon_property/views/property_bank_statements_views.xml index e2eeb6df0..21b1a5b99 100644 --- a/yuthon_property/views/property_bank_statements_views.xml +++ b/yuthon_property/views/property_bank_statements_views.xml @@ -86,7 +86,7 @@ 银行流水 property.bank.statements - tree,form,search + tree,search [('is_company', '=', True)] {'group_by': 'bank_state'} + diff --git a/yuthon_property_approval/wizard/property_reconciliation_wizard.py b/yuthon_property_approval/wizard/property_reconciliation_wizard.py index 2208d91c9..5521a172d 100644 --- a/yuthon_property_approval/wizard/property_reconciliation_wizard.py +++ b/yuthon_property_approval/wizard/property_reconciliation_wizard.py @@ -381,7 +381,6 @@ class PropertyReconciliationWizard(models.Model): last_day = (first_day + relativedelta(months=1)) - relativedelta(days=1) domain = [ ('management_type_id.name', '!=', '违约金'), - ('lessee_id', '=', first_line.tenant_id.id), ('is_reconciliation', '=', False), ('is_suspend', '=', False), ('due_date', '>=', first_day), @@ -422,7 +421,6 @@ class PropertyReconciliationWizard(models.Model): ('due_date', '=', extract_start_date), ('contract_id', '=', line.contract_id.id), ('management_type_id', '=', management_type_id.id), - ('lessee_id', '=', first_line.tenant_id.id), ] # 检查是否已有相同记录 existing_record = self.env['property.accounts.receivable'].search(check_domain) @@ -441,7 +439,6 @@ class PropertyReconciliationWizard(models.Model): 'due_date_end': extract_end_date, 'penalty': reconciliation_id.rent, 'management_type_id': management_type_id.id, - 'lessee_id': first_line.tenant_id.id, 'contract_id': line.contract_id.id, 'delivered1': line.amount, 'payout_date': rec.actual_date if (line.rent == line.amount and line.rent != 0) else None,