Browse Source

Code cleaning

pull/367/head
jcoux 8 years ago
committed by Jordi Ballester
parent
commit
3d12c5e114
  1. 7
      account_financial_report_qweb/menuitems.xml
  2. 1
      account_financial_report_qweb/report/general_ledger.py
  3. 6
      account_financial_report_qweb/reports.xml
  4. 7
      account_financial_report_qweb/view/account_view.xml
  5. 9
      account_financial_report_qweb/wizard/aged_partner_balance_wizard.py
  6. 6
      account_financial_report_qweb/wizard/aged_partner_balance_wizard_view.xml
  7. 6
      account_financial_report_qweb/wizard/balance_common_wizard_view.xml
  8. 6
      account_financial_report_qweb/wizard/general_ledger_wizard_view.xml
  9. 9
      account_financial_report_qweb/wizard/open_items_wizard.py
  10. 6
      account_financial_report_qweb/wizard/open_items_wizard_view.xml
  11. 6
      account_financial_report_qweb/wizard/trial_balance_wizard_view.xml

7
account_financial_report_qweb/menuitems.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<menuitem <menuitem
parent="account.menu_finance_reports" parent="account.menu_finance_reports"
@ -37,6 +36,4 @@
sequence="40" sequence="40"
/> />
</data>
</openerp>
</odoo>

1
account_financial_report_qweb/report/general_ledger.py

@ -594,7 +594,6 @@ AND
query_inject_partner_params += ( query_inject_partner_params += (
self.env.uid, self.env.uid,
) )
print query_inject_partner_params
self.env.cr.execute(query_inject_partner, query_inject_partner_params) self.env.cr.execute(query_inject_partner, query_inject_partner_params)
def _inject_line_not_centralized_values(self, def _inject_line_not_centralized_values(self,

6
account_financial_report_qweb/reports.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<!-- PDF REPORTS --> <!-- PDF REPORTS -->
@ -72,5 +71,4 @@
<field name="auto" eval="False"/> <field name="auto" eval="False"/>
</record> </record>
</data>
</openerp>
</odoo>

7
account_financial_report_qweb/view/account_view.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<record model="ir.ui.view" id="view_account_specific_form"> <record model="ir.ui.view" id="view_account_specific_form">
<field name="name">account.account.form.inherit</field> <field name="name">account.account.form.inherit</field>
<field name="inherit_id" ref="account.view_account_form"/> <field name="inherit_id" ref="account.view_account_form"/>
@ -12,6 +11,4 @@
</field> </field>
</field> </field>
</record> </record>
</data>
</openerp>
</odoo>

9
account_financial_report_qweb/wizard/aged_partner_balance_wizard.py

@ -37,15 +37,6 @@ class AgedPartnerBalance(models.TransientModel):
) )
show_move_line_details = fields.Boolean() show_move_line_details = fields.Boolean()
@api.onchange('date_range_id')
def onchange_date_range_id(self):
"""Handle date range change."""
self.date_at = self.date_range_id.date_end
if self.date_range_id.date_start:
self.fy_start_date = self.env.user.company_id.find_daterange_fy(
fields.Date.from_string(self.date_range_id.date_start)
).date_start
@api.onchange('receivable_accounts_only', 'payable_accounts_only') @api.onchange('receivable_accounts_only', 'payable_accounts_only')
def onchange_type_accounts_only(self): def onchange_type_accounts_only(self):
"""Handle receivable/payable accounts only change.""" """Handle receivable/payable accounts only change."""

6
account_financial_report_qweb/wizard/aged_partner_balance_wizard_view.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<!-- AGED PARTNER BALANCE --> <!-- AGED PARTNER BALANCE -->
<record id="aged_partner_balance_wizard" model="ir.ui.view"> <record id="aged_partner_balance_wizard" model="ir.ui.view">
@ -48,5 +47,4 @@
<field name="target">new</field> <field name="target">new</field>
</record> </record>
</data>
</openerp>
</odoo>

6
account_financial_report_qweb/wizard/balance_common_wizard_view.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<record id="account_balance_common_wizard_view" model="ir.ui.view"> <record id="account_balance_common_wizard_view" model="ir.ui.view">
<field name="name">Balance Common Wizard</field> <field name="name">Balance Common Wizard</field>
@ -55,5 +54,4 @@
</field> </field>
</record> </record>
</data>
</openerp>
</odoo>

6
account_financial_report_qweb/wizard/general_ledger_wizard_view.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<!-- GENERAL LEDGER --> <!-- GENERAL LEDGER -->
<record id="general_ledger_wizard" model="ir.ui.view"> <record id="general_ledger_wizard" model="ir.ui.view">
@ -57,5 +56,4 @@
<field name="target">new</field> <field name="target">new</field>
</record> </record>
</data>
</openerp>
</odoo>

9
account_financial_report_qweb/wizard/open_items_wizard.py

@ -43,15 +43,6 @@ class OpenItemsReportWizard(models.TransientModel):
string='Filter partners', string='Filter partners',
) )
@api.onchange('date_range_id')
def onchange_date_range_id(self):
"""Handle date range change."""
self.date_at = self.date_range_id.date_end
if self.date_range_id.date_start:
self.fy_start_date = self.env.user.company_id.find_daterange_fy(
fields.Date.from_string(self.date_range_id.date_start)
).date_start
@api.onchange('receivable_accounts_only', 'payable_accounts_only') @api.onchange('receivable_accounts_only', 'payable_accounts_only')
def onchange_type_accounts_only(self): def onchange_type_accounts_only(self):
"""Handle receivable/payable accounts only change.""" """Handle receivable/payable accounts only change."""

6
account_financial_report_qweb/wizard/open_items_wizard_view.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<!-- OPEN ITEMS --> <!-- OPEN ITEMS -->
<record id="open_items_wizard" model="ir.ui.view"> <record id="open_items_wizard" model="ir.ui.view">
@ -48,5 +47,4 @@
<field name="target">new</field> <field name="target">new</field>
</record> </record>
</data>
</openerp>
</odoo>

6
account_financial_report_qweb/wizard/trial_balance_wizard_view.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<record id="account_trial_balance_wizard_view" model="ir.ui.view"> <record id="account_trial_balance_wizard_view" model="ir.ui.view">
<field name="name">Trial Balance Wizard</field> <field name="name">Trial Balance Wizard</field>
@ -34,5 +33,4 @@
<field name="context">{'balance_common': 'trial_balance'}</field> <field name="context">{'balance_common': 'trial_balance'}</field>
</record> </record>
</data>
</openerp>
</odoo>
Loading…
Cancel
Save