From ab203bf2caede4a5fff1899147aa2bcd1ad482cb Mon Sep 17 00:00:00 2001 From: Guillem Barba Date: Tue, 3 Jun 2014 16:21:50 +0200 Subject: [PATCH] Add COPYRIGHT advice and indent correctly --- __init__.py | 1 - invoice.xml | 2037 +++++++++++++++++++++++++-------------------------- 2 files changed, 1018 insertions(+), 1020 deletions(-) diff --git a/__init__.py b/__init__.py index f0c1e2d..9db9b81 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,6 @@ # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. from trytond.pool import Pool - from .model import * diff --git a/invoice.xml b/invoice.xml index 6e65b44..a1e8087 100644 --- a/invoice.xml +++ b/invoice.xml @@ -1,1040 +1,1039 @@ - + + - - - - Posted/Paid Customer Invoices/Credit Notes - - [('state', 'in', ['posted','paid']), ('type', 'in', ['out_invoice', 'out_credit_note'])] - - - Posted/Paid Supplier Invoices/Credit Notes - - [('state', 'in', ['posted','paid']), ('type', 'in', ['in_invoice', 'in_credit_note'])] - - - Posted Customer Invoices/Credit Notes - - [('state', 'in', ['posted']), ('type', 'in', ['out_invoice', 'out_credit_note'])] - - - Posted Supplier Invoices/Credit Notes - - [('state', 'in', ['posted']), ('type', 'in', ['in_invoice', 'in_credit_note'])] - - - + + + + Posted/Paid Customer Invoices/Credit Notes + + [('state', 'in', ['posted','paid']), ('type', 'in', ['out_invoice', 'out_credit_note'])] + + + Posted/Paid Supplier Invoices/Credit Notes + + [('state', 'in', ['posted','paid']), ('type', 'in', ['in_invoice', 'in_credit_note'])] + + + Posted Customer Invoices/Credit Notes + + [('state', 'in', ['posted']), ('type', 'in', ['out_invoice', 'out_credit_note'])] + + + Posted Supplier Invoices/Credit Notes + + [('state', 'in', ['posted']), ('type', 'in', ['in_invoice', 'in_credit_note'])] + + + - - - Posted/Paid Customer Invoices/Credit Notes - - [('invoice.state', 'in', ['posted','paid']), ('invoice.type', 'in', ['out_invoice', 'out_credit_note'])] - - - Posted/Paid Supplier Invoices/Credit Notes - - [('invoice.state', 'in', ['posted','paid']), ('invoice.type', 'in', ['in_invoice', 'in_credit_note'])] - - - Posted Customer Invoices/credit_notes - - [('invoice.state', 'in', ['posted']), ('invoice.type', 'in', ['out_invoice', 'out_credit_note'])] - - - Posted Supplier Invoices/credit_notes - - [('invoice.state', 'in', ['posted']), ('invoice.type', 'in', ['in_invoice', 'in_credit_note'])] - - - + + + Posted/Paid Customer Invoices/Credit Notes + + [('invoice.state', 'in', ['posted','paid']), ('invoice.type', 'in', ['out_invoice', 'out_credit_note'])] + + + Posted/Paid Supplier Invoices/Credit Notes + + [('invoice.state', 'in', ['posted','paid']), ('invoice.type', 'in', ['in_invoice', 'in_credit_note'])] + + + Posted Customer Invoices/credit_notes + + [('invoice.state', 'in', ['posted']), ('invoice.type', 'in', ['out_invoice', 'out_credit_note'])] + + + Posted Supplier Invoices/credit_notes + + [('invoice.state', 'in', ['posted']), ('invoice.type', 'in', ['in_invoice', 'in_credit_note'])] + + + - - - - many2one - - o.id - Invoice - - - - int - - o.id - ID - - - char - - o.number - Number - - - char - - y(o.invoice_date) - Year - - - char - - m(o.invoice_date) - Month - - - char - - d(o.invoice_date) - Day - - - char - - w(o.invoice_date) - Week - - - char - - ym(o.invoice_date) - Year-Month - - - char - - ymd(o.invoice_date) - Date - - - char - - o.party and o.party.rec_name - Party Name - - - float - - o.untaxed_amount if o.type in ('out_invoice', 'in_credit_note') else -o.untaxed_amount - Untaxed Amount - - - float - - o.total_amount if o.type in ('out_invoice', 'in_credit_note') else -o.total_amount - Total Amount - - - char - - o.invoice_address.city - City - - - char - - o.invoice_address.zip - Zip - - - char - - o.invoice_address.subdivision and o.invoice_address.subdivision.rec_name - State/Region - - - char - - o.invoice_address.country and o.invoice_address.country.rec_name - Country - - - char - - o.currency.rec_name - Currency - - - char - - o.payment_term.rec_name - Payment Term - - - char - - o.payment_type and o.payment_type.rec_name - Payment Type - - - char - - o.move.period.rec_name - Period - - - char - - o.state - State - - - char - - o.account.code - Account Code - - - char - - o.account.name - Account Name - + + + + many2one + + o.id + Invoice + + + + int + + o.id + ID + + + char + + o.number + Number + + + char + + y(o.invoice_date) + Year + + + char + + m(o.invoice_date) + Month + + + char + + d(o.invoice_date) + Day + + + char + + w(o.invoice_date) + Week + + + char + + ym(o.invoice_date) + Year-Month + + + char + + ymd(o.invoice_date) + Date + + + char + + o.party and o.party.rec_name + Party Name + + + float + + o.untaxed_amount if o.type in ('out_invoice', 'in_credit_note') else -o.untaxed_amount + Untaxed Amount + + + float + + o.total_amount if o.type in ('out_invoice', 'in_credit_note') else -o.total_amount + Total Amount + + + char + + o.invoice_address.city + City + + + char + + o.invoice_address.zip + Zip + + + char + + o.invoice_address.subdivision and o.invoice_address.subdivision.rec_name + State/Region + + + char + + o.invoice_address.country and o.invoice_address.country.rec_name + Country + + + char + + o.currency.rec_name + Currency + + + char + + o.payment_term.rec_name + Payment Term + + + char + + o.payment_type and o.payment_type.rec_name + Payment Type + + + char + + o.move.period.rec_name + Period + + + char + + o.state + State + + + char + + o.account.code + Account Code + + + char + + o.account.name + Account Name + + + + float + + o.id + ID + + + char + + y(o.invoice.invoice_date) + Year + + + char + + m(o.invoice.invoice_date) + Month + + + char + + d(o.invoice.invoice_date) + Day + + + char + + ym(o.invoice.invoice_date) + Year-Month + + + char + + o.invoice.invoice_date + Date + + + char + + o.invoice.party.rec_name + Party Name + + + float + + o.invoice.untaxed_amount if o.invoice.type in ('out_invoice', 'in_credit_note') else -o.invoice.untaxed_amount + Invoice Untaxed Amount + + + float + + o.invoice.total_amount if o.invoice.type in ('out_invoice', 'in_credit_note') else -o.invoice.total_amount + Invoice Total Amount + + + char + + o.invoice.invoice_address.city + City + + + char + + o.invoice.invoice_address.zip + Zip + + + char + + o.invoice.invoice_address.subdivision and o.invoice.invoice_address.subdivision.rec_name + State/Region + + + char + + o.invoice.invoice_address.country and o.invoice.invoice_address.country.rec_name + Country + + + char + + o.invoice.currency.rec_name + Currency + + + char + + o.invoice.payment_term.rec_name + Payment Term + + + char + + o.invoice.payment_type.rec_name + Payment Type + + + char + + o.invoice.move.period.rec_name + Period + + + char + + o.invoice.state + Invoice State + + + char + + o.invoice.account.code + Invoice Account Code + + + char + + o.invoice.account.name + Invoice Account Name + + + many2one + + o.product and o.product.id + Product + + + + char + + o.product and o.product.code + Product Code + + + char + + o.product and o.product.name + Product Name + + + char + + o.product and o.product.category and o.product.category.rec_name + Product Category + + + float + + o.quantity + Quantity (no UoM conversion) + + + float + + o.discount + Discount + + + char + + o.account.code + Account Code + + + char + + o.account.name + Account Name + + + float + + o.unit_price + Unit Price + + + float + + o.amount + Amount + + + char + + o.unit.rec_name + UoM + + + char + + ','.join([x.rec_name for x in o.taxes]) + Tax Names + + + char + + ','.join([x.description for x in o.taxes]) + Tax Codes + + + char + + o.product and o.product_id.type + Product Type + + + float + + o.product and o.product.quantity + Product Available Quantity + + + float + + o.product and o.product.forecast_quantity + Product Forecast Quantity + + + - - - float - - o.id - ID - - - char - - y(o.invoice.invoice_date) - Year - - - char - - m(o.invoice.invoice_date) - Month - - - char - - d(o.invoice.invoice_date) - Day - - - char - - ym(o.invoice.invoice_date) - Year-Month - - - char - - o.invoice.invoice_date - Date - - - char - - o.invoice.party.rec_name - Party Name - - - float - - o.invoice.untaxed_amount if o.invoice.type in ('out_invoice', 'in_credit_note') else -o.invoice.untaxed_amount - Invoice Untaxed Amount - - - float - - o.invoice.total_amount if o.invoice.type in ('out_invoice', 'in_credit_note') else -o.invoice.total_amount - Invoice Total Amount - - - char - - o.invoice.invoice_address.city - City - - - char - - o.invoice.invoice_address.zip - Zip - - - char - - o.invoice.invoice_address.subdivision and o.invoice.invoice_address.subdivision.rec_name - State/Region - - - char - - o.invoice.invoice_address.country and o.invoice.invoice_address.country.rec_name - Country - - - char - - o.invoice.currency.rec_name - Currency - - - char - - o.invoice.payment_term.rec_name - Payment Term - - - char - - o.invoice.payment_type.rec_name - Payment Type - - - char - - o.invoice.move.period.rec_name - Period - - - char - - o.invoice.state - Invoice State - - - char - - o.invoice.account.code - Invoice Account Code - - - char - - o.invoice.account.name - Invoice Account Name - - - many2one - - o.product and o.product.id - Product - - - - char - - o.product and o.product.code - Product Code - - - char - - o.product and o.product.name - Product Name - - - char - - o.product and o.product.category and o.product.category.rec_name - Product Category - - - float - - o.quantity - Quantity (no UoM conversion) - - - float - - o.discount - Discount - - - char - - o.account.code - Account Code - - - char - - o.account.name - Account Name - - - float - - o.unit_price - Unit Price - - - float - - o.amount - Amount - - - char - - o.unit.rec_name - UoM - - - char - - ','.join([x.rec_name for x in o.taxes]) - Tax Names - - - char - - ','.join([x.description for x in o.taxes]) - Tax Codes - - - char - - o.product and o.product_id.type - Product Type - - - float - - o.product and o.product.quantity - Product Available Quantity - - - float - - o.product and o.product.forecast_quantity - Product Forecast Quantity - - - + + + + + + Year - Month - Day + + + + + + + + + + Year + 1 + + + + + Month + 2 + + + + + Day + 3 + + + + + Untaxed Amount + sum + - - - - - - Year - Month - Day - - - - - - - - - - Year - 1 - - - - - Month - 2 - - - - - Day - 3 - - - - - Untaxed Amount - sum - + + + + + + Month - Year + + + + + + + + + + Month + 1 + + + + + Year-Month + 2 + + + + + Untaxed Amount + sum + - - - - - - Month - Year - - - - - - - - - - Month - 1 - - - - - Year-Month - 2 - - - - - Untaxed Amount - sum - + + + + + + Year - Country - State - City + + + + + + + + + + Year + 1 + + + + + Country + 2 + + + + + State/Region + 3 + + + + + City + 4 + + + + + Untaxed Amount + sum + - - - - - - Year - Country - State - City - - - - - - - - - - Year - 1 - - - - - Country - 2 - - - - - State/Region - 3 - - - - - City - 4 - - - - - Untaxed Amount - sum - + + + + + + Year - Payment Type + + + + + + + + + + Year + 1 + + + + + Payment Type + 2 + + + + + Untaxed Amount + sum + - - - - - - Year - Payment Type - - - - - - - - - - Year - 1 - - - - - Payment Type - 2 - - - - - Untaxed Amount - sum - + + + + + + Partner - Year - Month + + + + + + + + + + Party + 1 + + + + + Year + 2 + + + + + Month + 3 + + + + + Untaxed Amount + sum + - - - - - - Partner - Year - Month - - - - - - - - - - Party - 1 - - - - - Year - 2 - - - - - Month - 3 - - - - - Untaxed Amount - sum - + + + + + + Year - Partner - Month + + + + + + + + + + Year + 1 + + + + + Partner + 2 + + + + + Month + 3 + + + + + Untaxed Amount + sum + - - - - - - Year - Partner - Month - - - - - - - - - - Year - 1 - - - - - Partner - 2 - - - - - Month - 3 - - - - - Untaxed Amount - sum - + + + + + + Unpaid Supplier - Year-Month - Invoice + + + + + + + + + + Party + 1 + + + + + Year-Month + 2 + + + + + Invoice + 3 + + + + + Untaxed Amount + sum + - - - - - - Unpaid Supplier - Year-Month - Invoice - - - - - - - - - - Party - 1 - - - - - Year-Month - 2 - - - - - Invoice - 3 - - - - - Untaxed Amount - sum - + + + + + + + Year - Product - Month + + + + + + + + + + Year + 1 + + + + + Product + 2 + + + + + Month + 3 + + + + + Quantity + sum + 1 + + + + + Amount + sum + 2 + - + + + + + + Year - Product - Party - Month + + + + + + + + + + Year + 1 + + + + + Product + 2 + + + + + Party + 3 + + + + + Month + 4 + + + + + Quantity + sum + 1 + + + + + Subtotal + sum + 2 + - - - - - - Year - Product - Month - - - - - - - - - - Year - 1 - - - - - Product - 2 - - - - - Month - 3 - - - - - Quantity - sum - 1 - - - - - Amount - sum - 2 - + + + + + + Party - Product - Year - Month + + + + + + + + + + Party + 1 + + + + + Product + 2 + + + + + Year + 3 + + + + + Month + 4 + + + + + Quantity + sum + 1 + + + + + Subtotal + sum + 2 + - - - - - - Year - Product - Party - Month - - - - - - - - - - Year - 1 - - - - - Product - 2 - - - - - Party - 3 - - - - - Month - 4 - - - - - Quantity - sum - 1 - - - - - Subtotal - sum - 2 - + + + + + + Product - Year - Month + + + + + + + + + + Product + 1 + + + + + Year + 2 + + + + + Month + 3 + + + + + Quantity + sum + 1 + + + + + Subtotal + sum + 2 + - - - - - - Party - Product - Year - Month - - - - - - - - - - Party - 1 - - - - - Product - 2 - - - - - Year - 3 - - - - - Month - 4 - - - - - Quantity - sum - 1 - - - - - Subtotal - sum - 2 - + + + + + + Year - Product Category - Product + + + + + + + + + + Year + 1 + + + + + Product Category + 2 + + + + + Product + 3 + + + + + Quantity + sum + 1 + + + + + Subtotal + sum + 2 + - - - - - - Product - Year - Month - - - - - - - - - - Product - 1 - - - - - Year - 2 - - - - - Month - 3 - - - - - Quantity - sum - 1 - - - - - Subtotal - sum - 2 - - - - - - - - Year - Product Category - Product - - - - - - - - - - Year - 1 - - - - - Product Category - 2 - - - - - Product - 3 - - - - - Quantity - sum - 1 - - - - - Subtotal - sum - 2 - - - - - - - - Year - Sale Account - Month - - - - - - - - - - Year - 1 - - - - - Sale Account - 2 - - - - - Month - 3 - - - - - Subtotal - sum - - - - - - - - Year - Product - Country - State - City - - - - - - - - - - Year - 1 - - - - - Product - 2 - - - - - Country - 3 - - - - - State/Region - 4 - - - - - City - 5 - - - - - Quantity - sum - 1 - - - - - Subtotal - sum - 2 - + + + + + + Year - Sale Account - Month + + + + + + + + + + Year + 1 + + + + + Sale Account + 2 + + + + + Month + 3 + + + + + Subtotal + sum + + + + + + + Year - Product - Country - State - City + + + + + + + + + + Year + 1 + + + + + Product + 2 + + + + + Country + 3 + + + + + State/Region + 4 + + + + + City + 5 + + + + + Quantity + sum + 1 + + + + + Subtotal + sum + 2 +