rename module account_move_usability to account_usability
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
|
||||||
|
|
||||||
from . import account_move_line
|
|
||||||
3
account_usability/__init__.py
Normal file
3
account_usability/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
|
from . import account
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Account Move Usability module for Odoo
|
# Account Usability module for Odoo
|
||||||
# Copyright (C) 2015 Akretion (http://www.akretion.com)
|
# Copyright (C) 2015 Akretion (http://www.akretion.com)
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
#
|
#
|
||||||
@@ -22,14 +22,14 @@
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Account Move Usability',
|
'name': 'Account Usability',
|
||||||
'version': '0.1',
|
'version': '0.1',
|
||||||
'category': 'Accounting & Finance',
|
'category': 'Accounting & Finance',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Small usability enhancements in account move and account move lines',
|
'summary': 'Small usability enhancements in account module',
|
||||||
'description': """
|
'description': """
|
||||||
Account Move Usability
|
Account Usability
|
||||||
======================
|
=================
|
||||||
|
|
||||||
The usability enhancements include:
|
The usability enhancements include:
|
||||||
* Increase the default limit of 80 lines in account move and account move line view.
|
* Increase the default limit of 80 lines in account move and account move line view.
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Account Move Usability module for Odoo
|
# Account Usability module for Odoo
|
||||||
# Copyright (C) 2015 Akretion (http://www.akretion.com)
|
# Copyright (C) 2015 Akretion (http://www.akretion.com)
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
#
|
#
|
||||||
@@ -20,7 +20,25 @@
|
|||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
from openerp import models, api
|
from openerp import models, fields, api
|
||||||
|
|
||||||
|
|
||||||
|
class AccountInvoice(models.Model):
|
||||||
|
_inherit = 'account.invoice'
|
||||||
|
|
||||||
|
origin = fields.Char(track_visibility='onchange')
|
||||||
|
supplier_invoice_number = fields.Char(track_visibility='onchange')
|
||||||
|
internal_number = fields.Char(track_visibility='onchange')
|
||||||
|
reference = fields.Char(track_visibility='onchange')
|
||||||
|
sent = fields.Boolean(track_visibility='onchange')
|
||||||
|
date_invoice = fields.Date(track_visibility='onchange')
|
||||||
|
date_due = fields.Date(track_visibility='onchange')
|
||||||
|
payment_term = fields.Many2one(track_visibility='onchange')
|
||||||
|
period_id = fields.Many2one(track_visibility='onchange')
|
||||||
|
account_id = fields.Many2one(track_visibility='onchange')
|
||||||
|
journal_id = fields.Many2one(track_visibility='onchange')
|
||||||
|
partner_bank_id = fields.Many2one(track_visibility='onchange')
|
||||||
|
fiscal_position = fields.Many2one(track_visibility='onchange')
|
||||||
|
|
||||||
|
|
||||||
class AccountMoveLine(models.Model):
|
class AccountMoveLine(models.Model):
|
||||||
@@ -8,6 +8,30 @@
|
|||||||
<openerp>
|
<openerp>
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
|
<!-- INVOICE -->
|
||||||
|
<record id="invoice_supplier_form" model="ir.ui.view">
|
||||||
|
<field name="name">account_usability.supplier.invoice.form</field>
|
||||||
|
<field name="model">account.invoice</field>
|
||||||
|
<field name="inherit_id" ref="account.invoice_supplier_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="fiscal_position" position="attributes">
|
||||||
|
<attribute name="widget">selection</attribute>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="invoice_form" model="ir.ui.view">
|
||||||
|
<field name="name">account_usability.invoice.form</field>
|
||||||
|
<field name="model">account.invoice</field>
|
||||||
|
<field name="inherit_id" ref="account.invoice_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="fiscal_position" position="attributes">
|
||||||
|
<attribute name="widget">selection</attribute>
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
|
||||||
<!-- model account.move.line / Journal Items -->
|
<!-- model account.move.line / Journal Items -->
|
||||||
<record id="account.action_account_moves_all_a" model="ir.actions.act_window">
|
<record id="account.action_account_moves_all_a" model="ir.actions.act_window">
|
||||||
<field name="limit">500</field>
|
<field name="limit">500</field>
|
||||||
@@ -19,7 +43,7 @@
|
|||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_account_move_line_filter" model="ir.ui.view">
|
<record id="view_account_move_line_filter" model="ir.ui.view">
|
||||||
<field name="name">account_move_usability.account_move_line_search</field>
|
<field name="name">account_usability.account_move_line_search</field>
|
||||||
<field name="model">account.move.line</field>
|
<field name="model">account.move.line</field>
|
||||||
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
|
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
@@ -30,7 +54,7 @@
|
|||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_move_line_form" model="ir.ui.view">
|
<record id="view_move_line_form" model="ir.ui.view">
|
||||||
<field name="name">account_move_usability.account_move_line_form</field>
|
<field name="name">account_usability.account_move_line_form</field>
|
||||||
<field name="model">account.move.line</field>
|
<field name="model">account.move.line</field>
|
||||||
<field name="inherit_id" ref="account.view_move_line_form"/>
|
<field name="inherit_id" ref="account.view_move_line_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
Reference in New Issue
Block a user