Browse Source

[ADD] add base wizard for ledger

pull/196/head
Damien Crier 9 years ago
committed by Leonardo Pistone
parent
commit
7bd446e7d4
  1. 1
      account_financial_report_qweb/__openerp__.py
  2. 1
      account_financial_report_qweb/wizard/__init__.py
  3. 15
      account_financial_report_qweb/wizard/ledger_report_wizard.py
  4. 37
      account_financial_report_qweb/wizard/ledger_report_wizard_view.xml

1
account_financial_report_qweb/__openerp__.py

@ -16,6 +16,7 @@
'account', 'account',
], ],
'data': [ 'data': [
'wizard/ledger_report_wizard_view.xml',
], ],
'test': [ 'test': [
], ],

1
account_financial_report_qweb/wizard/__init__.py

@ -2,3 +2,4 @@
# Author: Damien Crier # Author: Damien Crier
# Copyright 2016 Camptocamp SA # Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import ledger_report_wizard

15
account_financial_report_qweb/wizard/ledger_report_wizard.py

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Author: Damien Crier
# Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import time
from openerp import models, fields, api
class LedgerReportWizard(models.TransientModel):
_name = "ledger.report.wizard"
_description = "Ledger Report"
company_id = fields.Many2one(comodel_name='res.company')

37
account_financial_report_qweb/wizard/ledger_report_wizard_view.xml

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="ledger_report_wizard_view_form" model="ir.ui.view">
<field name="name">Ledger</field>
<field name="model">ledger.report.wizard</field>
<field name="arch" type="xml">
<form>
<group name="main_info">
<field name="company_id"/>
</group>
</form>
</field>
</record>
<record id="action_ledger_report_wizard" model="ir.actions.act_window">
<field name="name">Ledger</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">ledger.report.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="ledger_report_wizard_view_form"/>
<field name="target">new</field>
</record>
<menuitem
parent="account.menu_finance_legal_statement"
action="action_ledger_report_wizard"
id="menu_ledger_report_wizard"/>
<!-- <menuitem name="Actions" id="menu_crm_action" parent="base.menu_sales" sequence="5"
action="action_crm_action_view"
groups="group_crm_action_user,group_crm_action_manager"/> -->
</data>
</openerp>
Loading…
Cancel
Save