Browse Source

fixup! [10.0][account_bank_statement_line_reconciliation][IMP] + Reconcil start

pull/472/head
Tonow-c2c 6 years ago
parent
commit
b660c9fa2a
  1. 6
      account_bank_statement_line_reconciliation/models/account_bank_statement.py
  2. 1
      account_bank_statement_line_reconciliation/models/company.py
  3. 11
      account_bank_statement_line_reconciliation/views/res_config_settings_views.xml

6
account_bank_statement_line_reconciliation/models/account_bank_statement.py

@ -1,13 +1,11 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from datetime import datetime
from odoo import models, fields, api
from odoo.osv import expression
from odoo import models, api
class AccountBankStatementLine(models.Model): class AccountBankStatementLine(models.Model):
_inherit = "account.bank.statement.line" _inherit = "account.bank.statement.line"
def get_move_lines_for_reconciliation( def get_move_lines_for_reconciliation(
self, excluded_ids=None, str=False, offset=0, limit=None, self, excluded_ids=None, str=False, offset=0, limit=None,
additional_domain=None, overlook_partner=False additional_domain=None, overlook_partner=False

1
account_bank_statement_line_reconciliation/models/company.py

@ -2,6 +2,7 @@
from odoo import fields, models from odoo import fields, models
class ResCompany(models.Model): class ResCompany(models.Model):
_inherit = "res.company" _inherit = "res.company"

11
account_bank_statement_line_reconciliation/views/res_config_settings_views.xml

@ -1,16 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<odoo> <odoo>
<record id="extra_account_mass_reconcile_view_account_config" model="ir.ui.view">
<field name="name">extra.account.mass.reconcile.view.account.config</field>
<record id="extra_view_account_config_settings" model="ir.ui.view">
<field name="name">extra.view.account.config.settings</field>
<field name="model">account.config.settings</field> <field name="model">account.config.settings</field>
<field name="inherit_id" ref="account_mass_reconcile.view_account_config"/>
<field name="inherit_id" ref="account.view_account_config_settings"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//div[@name='reconciliation_config']" position="inside">
<xpath expr="//group[@groups='account.group_account_user']" position="inside">
<label for="id" string="Bank Reconciliation Threshold"/>
<div>
<div> <div>
<label for="account_bank_reconciliation_start"/> <label for="account_bank_reconciliation_start"/>
<field name="account_bank_reconciliation_start" class="oe_inline"/> <field name="account_bank_reconciliation_start" class="oe_inline"/>
</div> </div>
</div>
</xpath> </xpath>
</field> </field>

Loading…
Cancel
Save