This commit is contained in:
Bertrand Chenal committed 2008-11-05 22:19:55 +01:00
commit 04231ea6ee
5 files changed
+48 -18

No files matched your search

+10 -1
View File
@@ -7,7 +7,16 @@
'email': 'info@b2ck.com',
'website': 'http://www.tryton.org/',
'category': 'Accounting',
'description': 'Invoice',
'description': '''Financial and Accounting Module with:
- Payment Term
- Invoice / Credit Note
- Supplier Invoice / Supplier Credit Note
With the possibilities:
- to follow the payment of the invoices.
- to define invoice sequences on fiscal year or period.
- to credit any invoice.
''',
'depends': [
'ir',
'account',
+1 -2
View File
@@ -142,7 +142,7 @@ model,"ir.action,name",act_invoice_form,All Invoices,Alle Rechnungen,0
model,"ir.action,name",credit_invoice,Credit,Gutschrift erstellen,0
model,"ir.action,name",act_invoice_out_credit_note_form,Credit Notes,Gutschriften an Kunden,0
model,"ir.action,name",,Custom Invoice,,0
model,"ir.action,name",report_invoice,Custom Invoice,Angepasste Rechnung drucken,0
model,"ir.action,name",report_invoice,Invoice,Angepasste Rechnung drucken,0
model,"ir.action,name",print_invoice_report,Invoice,Rechnung drucken,0
model,"ir.action,name",act_invoice_out_invoice_form,Invoices,Rechnungsausgang,0
model,"ir.action,name",wizard_pay_invoice,Pay Invoice,Rechnung bezahlen,0
@@ -238,4 +238,3 @@ wizard_button,"account.invoice.pay_invoice,init,choice",0,Ok,OK,0
wizard_button,"account.invoice.pay_invoice,init,end",0,Cancel,Abbrechen,0
wizard_button,"account.invoice.print_invoice_report,warning,end",0,Cancel,Abbrechen,0
wizard_button,"account.invoice.print_invoice_report,warning,print",0,Print,Drucken,0
wizard_button,"account.invoice.refund_invoice,init,end",0,Cancel,Abbrechen,0
1 type name res_id src value fuzzy
142 model ir.action,name act_invoice_in_invoice_form Supplier Invoices Rechnungseingang 0
143 model ir.ui.menu,name menu_invoice_form All Invoices Alle Rechnungen 0
144 model ir.ui.menu,name menu_invoice_out_credit_note_form Credit Notes Gutschriften an Kunden 0
145 model ir.ui.menu,name menu_invoices_configuration Invoices Rechnungen 0
146 model ir.ui.menu,name menu_invoices Invoices Rechnungen 0
147 model ir.ui.menu,name menu_invoice_out_invoice_form Invoices Rechnungsausgang 0
148 model ir.ui.menu,name menu_payment_term_form Payment Terms Zahlungsbedingungen 0
238
239
240
+1 -8
View File
@@ -34,10 +34,8 @@ error,account.invoice.tax,0,"You can not modify tax from an invoice that is open
error,account.period,0,You can not change the invoice sequence if there is already an invoice opened in the period,No puede cambiar la secuencia de una factura si hay una factura abierta en el período,0
field,"account.fiscalyear,in_credit_note_sequence",0,Supplier Credit Note Sequence,Secuencia de la Nota Crédito del Proveedor,0
field,"account.fiscalyear,in_invoice_sequence",0,Supplier Invoice Sequence,Secuencia de Factura de Proveedor,0
field,"account.fiscalyear,in_refund_sequence",0,Supplier Refund Sequence,Secuencia de Devolución a Proveedor,0
field,"account.fiscalyear,out_credit_note_sequence",0,Customer Credit Note Sequence,Secuencia de Nota Crédito de Cliente,0
field,"account.fiscalyear,out_invoice_sequence",0,Customer Invoice Sequence,Secuencia de Facturas de Cliente,0
field,"account.fiscalyear,out_refund_sequence",0,Customer Refund Sequence,Secuencia de Devolución del Cliente,0
field,"account.invoice,account",0,Account,Cuenta,0
field,"account.invoice,amount_to_pay",0,Amount to Pay,Cantidad a pagar,0
field,"account.invoice,amount_to_pay_today",0,Amount to Pay Today,Cantidad a pagar hoy,0
@@ -127,10 +125,8 @@ field,"account.invoice,type_name",0,Type,Tipo,0
field,"account.invoice,untaxed_amount",0,Untaxed,Sin Impuesto,0
field,"account.period,in_credit_note_sequence",0,Supplier Credit Note Sequence,Secuencia de la Nota Crédito del Proveedor,0
field,"account.period,in_invoice_sequence",0,Supplier Invoice Sequence,Secuencia de Factura de Proveedor,0
field,"account.period,in_refund_sequence",0,Supplier Refund Sequence,Secuencia de Devolución a Proveedor,0
field,"account.period,out_credit_note_sequence",0,Customer Credit Note Sequence,Secuencia de Nota Crédito de Cliente,0
field,"account.period,out_invoice_sequence",0,Customer Invoice Sequence,Secuencia de Facturas de Cliente,0
field,"account.period,out_refund_sequence",0,Customer Refund Sequence,Secuencia de Devolución del Cliente,0
field,"party.address,invoice",0,Invoice,Factura,0
field,"party.party,payment_term",0,Invoice Payment Term,Término de Pago de la Factura,0
field,"party.party,supplier_payment_term",0,Supplier Payment Term,Término de Pago a Proveedor,0
@@ -188,10 +184,8 @@ selection,"account.invoice,state",0,Paid,Pagado,0
selection,"account.invoice,state",0,Pro forma,Pro forma,0
selection,"account.invoice,type",0,Credit Note,Nota de Crédito,0
selection,"account.invoice,type",0,Invoice,Factura,0
selection,"account.invoice,type",0,Refund,Devolución,0
selection,"account.invoice,type",0,Supplier Credit Note,Nota Crédito del Proveedor,0
selection,"account.invoice,type",0,Supplier Invoice,Factura de Proveedor,0
selection,"account.invoice,type",0,Supplier Refund,Devolución a Proveedor,0
view,account.invoice,0,Amount Second Currency,Cantidad en la Moneda Secundaria,0
view,account.invoice,0,_Cancel,_Cancelar,0
view,account.invoice,0,Credit,Crédito,0
@@ -231,6 +225,7 @@ view,account.invoice.refund_invoice.init,0,Refund Invoice,Factura de Devolución
view,account.invoice.tax,0,Invoice Tax,Impuesto en Factura,0
view,account.invoice.tax,0,Invoice Taxes,Impuestos de Facturas,0
view,account.invoice.tax,0,Tax Code,Código de Impuesto,0
view,party.party,0,Payment Terms,Términos de Pago,0
wizard_button,"account.invoice.credit_invoice,init,credit",0,Credit,Crédito,0
wizard_button,"account.invoice.credit_invoice,init,end",0,Cancel,Cancelar,0
wizard_button,"account.invoice.pay_invoice,ask,end",0,Cancel,Cancelar,0
@@ -239,5 +234,3 @@ wizard_button,"account.invoice.pay_invoice,init,choice",0,Ok,Aceptar,0
wizard_button,"account.invoice.pay_invoice,init,end",0,Cancel,Cancelar,0
wizard_button,"account.invoice.print_invoice_report,warning,end",0,Cancel,Cancelar,0
wizard_button,"account.invoice.print_invoice_report,warning,print",0,Print,Imprimir,0
wizard_button,"account.invoice.refund_invoice,init,end",0,Cancel,Cancelar,0
wizard_button,"account.invoice.refund_invoice,init,refund",0,Refund,Devolución,0
1 type name res_id src value fuzzy
34 field account.invoice,account account.invoice,amount_to_pay_today 0 Account Amount to Pay Today Cuenta Cantidad a pagar hoy 0
35 field account.invoice,amount_to_pay account.invoice,comment 0 Amount to Pay Comment Cantidad a pagar Comentario 0
36 field account.invoice,amount_to_pay_today account.invoice,company 0 Amount to Pay Today Company Cantidad a pagar hoy Compañía 0
field account.invoice,comment 0 Comment Comentario 0
37 field account.invoice,company account.invoice,contact_address 0 Company Contact Address Compañía Dirección de Contacto 0
38 field account.invoice,contact_address account.invoice,currency 0 Contact Address Currency Dirección de Contacto Moneda 0
field account.invoice,currency 0 Currency Moneda 0
39 field account.invoice,currency_digits 0 Currency Digits Dígitos de Moneda 0
40 field account.invoice,description 0 Description Descripción 0
41 field account.invoice,invoice_address 0 Invoice Address Dirección de Facturación 0
125 field party.address,invoice party.party,supplier_payment_term 0 Invoice Supplier Payment Term Factura Término de Pago a Proveedor 0
126 field help party.party,payment_term account.invoice.payment_term.line,sequence 0 Invoice Payment Term Use to order lines in ascending order Término de Pago de la Factura Para ordenar las líneas ascendentemente 0
127 field model party.party,supplier_payment_term account.invoice.payment_term.line.delay,name 0 payment_term_line_delay_end_month Supplier Payment Term End Month Término de Pago a Proveedor Mes Final 0
help account.invoice.payment_term.line,sequence 0 Use to order lines in ascending order Para ordenar las líneas ascendentemente 0
128 model account.invoice.payment_term.line.delay,name payment_term_line_delay_end_month payment_term_line_delay_net_days End Month Net Days Mes Final Días Netos 0
129 model account.invoice.payment_term.line.delay,name account.invoice.payment_term.line.type,name payment_term_line_delay_net_days payment_term_line_type_fixed Net Days Fixed Días Netos Fijo 0
model account.invoice.payment_term.line.type,name payment_term_line_type_fixed Fixed Fijo 0
130 model account.invoice.payment_term.line.type,name payment_term_line_type_percent Percent Por ciento 0
131 model account.invoice.payment_term.line.type,name payment_term_line_type_remainder Remainder Diferencia 0
132 model ir.action,name act_invoice_form All Invoices Todas las facturas 0
184 view account.invoice 0 Amount Second Currency Credit Cantidad en la Moneda Secundaria Crédito 0
185 view account.invoice 0 _Cancel Debit _Cancelar Débito 0
186 view account.invoice 0 Credit _Draft Crédito _Borrador 0
view account.invoice 0 Debit Débito 0
187 view account.invoice 0 _Draft Invoice _Borrador Factura 0
188 view account.invoice 0 Invoice Invoices Factura Facturas 0
view account.invoice 0 Invoices Facturas 0
189 view account.invoice 0 Lines Líneas 0
190 view account.invoice 0 _Open _Abrir 0
191 view account.invoice 0 Other Info Información Adicional 0
225 wizard_button account.invoice.pay_invoice,init,choice account.invoice.pay_invoice,ask,pay 0 Ok Aceptar 0
226 wizard_button account.invoice.pay_invoice,init,end account.invoice.pay_invoice,init,choice 0 Cancel Ok Cancelar Aceptar 0
227 wizard_button account.invoice.print_invoice_report,warning,end account.invoice.pay_invoice,init,end 0 Cancel Cancelar 0
228 wizard_button account.invoice.print_invoice_report,warning,end 0 Cancel Cancelar 0
229 wizard_button account.invoice.print_invoice_report,warning,print 0 Print Imprimir 0
230
231
234
235
236
+27 -2
View File
@@ -2101,8 +2101,11 @@ Period()
class PayInvoiceInit(WizardOSV):
_name = 'account.invoice.pay_invoice.init'
amount = fields.Numeric('Amount', digits=(16, 2), required=True)
amount = fields.Numeric('Amount', digits="(16, currency_digits)",
required=True)
currency = fields.Many2One('currency.currency', 'Currency', required=True)
currency_digits = fields.Integer('Currency Digits', readonly=True,
on_change_with=['currency'])
description = fields.Char('Description', size=None, required=True)
journal = fields.Many2One('account.journal', 'Journal', required=True,
domain=[('type', '=', 'cash')])
@@ -2112,6 +2115,15 @@ class PayInvoiceInit(WizardOSV):
date_obj = self.pool.get('ir.date')
return date_obj.today(cursor, user, context=context)
def on_change_with_currency_digits(self, cursor, user, ids, vals,
context=None):
currency_obj = self.pool.get('currency.currency')
if vals.get('currency'):
currency = currency_obj.browse(cursor, user, vals['currency'],
context=context)
return currency.digits
return 2
PayInvoiceInit()
@@ -2132,8 +2144,10 @@ class PayInvoiceAsk(WizardOSV):
'invisible': "type != 'writeoff'",
'required': "type == 'writeoff'",
})
amount = fields.Numeric('Amount', digits=(16, 2), readonly=True)
amount = fields.Numeric('Amount', digits="(16, currency_digits)", readonly=True)
currency = fields.Many2One('currency.currency', 'Currency', readonly=True)
currency_digits = fields.Integer('Currency Digits', readonly=True,
on_change_with=['currency'])
lines_to_pay = fields.Char(string='Lines to Pay', size=None)
lines = fields.One2Many('account.move.line', 'ham', 'Lines',
domain="[('id', 'in', eval(lines_to_pay)), " \
@@ -2151,6 +2165,15 @@ class PayInvoiceAsk(WizardOSV):
def default_type(self, cursor, user, context=None):
return 'writeoff'
def on_change_with_currency_digits(self, cursor, user, ids, vals,
context=None):
currency_obj = self.pool.get('currency.currency')
if vals.get('currency'):
currency = currency_obj.browse(cursor, user, vals['currency'],
context=context)
return currency.digits
return 2
PayInvoiceAsk()
@@ -2200,6 +2223,7 @@ class PayInvoice(Wizard):
res = {}
invoice = invoice_obj.browse(cursor, user, data['id'], context=context)
res['currency'] = invoice.currency.id
res['currency_digits'] = invoice.currency.digits
res['amount'] = invoice.amount_to_pay_today
res['description'] = invoice.number
return res
@@ -2233,6 +2257,7 @@ class PayInvoice(Wizard):
res['amount'] = data['form']['amount']
res['currency'] = data['form']['currency']
res['currency_digits'] = data['form']['currency_digits']
res['description'] = data['form']['description']
res['journal'] = data['form']['journal']
res['date'] = data['form']['date']
+9 -5
View File
@@ -760,6 +760,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="journal"/>
<label name="date"/>
<field name="date"/>
<field name="currency_digits" colspan="4" invisible="1"/>
</form>
]]>
</field>
@@ -789,13 +790,16 @@ this repository contains the full copyright notices and license terms. -->
<field name="credit" sum="Credit"/>
<field name="amount_second_currency" sum="Amount Second Currency"/>
<field name="second_currency"/>
<field name="currency_digits" tree_invisible="1"/>
<field name="second_currency_digits" tree_invisible="1"/>
</tree>
</field>
<field name="lines_to_pay" invisible="1"/>
<field name="description" invisible="1"/>
<field name="journal" invisible="1"/>
<field name="date" invisible="1"/>
<field name="company" invisible="1"/>
<field name="lines_to_pay" colspan="4" invisible="1"/>
<field name="description" colspan="4" invisible="1"/>
<field name="journal" colspan="4" invisible="1"/>
<field name="date" colspan="4" invisible="1"/>
<field name="company" colspan="4" invisible="1"/>
<field name="currency_digits" colspan="4" invisible="1"/>
</form>
]]>
</field>