From 8d40893e6fa216873b867cf1734cacdfe049088e Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 22 Oct 2012 12:32:16 +0200 Subject: [PATCH 1/5] [IMP] account: added field supplier invoice number, as suggested by Normunds Vilcans lp bug: https://launchpad.net/bugs/814128 fixed bzr revid: qdp-launchpad@openerp.com-20121022103216-9rnvr84s62ugazny --- addons/account/account_invoice.py | 1 + addons/account/account_invoice_view.xml | 13 ++++++++----- addons/base_crypt/crypt.py | 17 ++++++++++------- addons/event_sale/event_sale.py | 2 +- 4 files changed, 20 insertions(+), 13 deletions(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 57f16473b82..0508a7cadfe 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -185,6 +185,7 @@ class account_invoice(osv.osv): _columns = { 'name': fields.char('Description', size=64, select=True, readonly=True, states={'draft':[('readonly',False)]}), 'origin': fields.char('Source Document', size=64, help="Reference of the document that produced this invoice.", readonly=True, states={'draft':[('readonly',False)]}), + 'supplier_invoice_number': fields.char('Supplier Invoice Number', size=64, help="The reference of this invoice as provided by the supplier.", readonly=True, states={'draft':[('readonly',False)]}), 'type': fields.selection([ ('out_invoice','Customer Invoice'), ('in_invoice','Supplier Invoice'), diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 8516fcd96ae..ee5a911d933 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -170,12 +170,15 @@ context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" domain="[('supplier', '=', True)]"/> - -