Commit Graph
322 Commits
Author SHA1 Message Date
Cédric Krier db4c87ffbc Use cancel of Account Move
issue3875
review10261002
2014-05-09 23:33:02 +02:00
Cédric Krier 19d639255d Reconcile lines to pay with the cancellation ones
issue3437
review4981002
2014-05-04 00:07:35 +02:00
Sergi Almacellas Abellana a78ff71da7 Fix move's amount_secound_currency with negative taxes.
issue3683
review4721002
2014-03-28 19:10:16 +01:00
Nicolas Évrard fc449df49d Add index to one2many's on_change add
review2091002
issue3539
2014-03-16 20:51:06 +01:00
Cédric Krier b8a10a5324 Be safer with the on_change using One2Many values
review4261002
2014-03-16 15:39:22 +01:00
Cédric Krier ede359688e Set amount_second_currency to None instead of 0
issue3712
review3811002
2014-03-07 19:29:00 +01:00
Sergi Almacellas Abellana f32ac0d328 Fix amount calculation in supplier invoices with moves browsed multiple times
get_amount function must process invoices only one time (despite passed more
than one time) because supplier invoices total_amount is multiplied by -1 when
it has accounting moves and if multiplied 2 (or any pair number) times it
returns the amount in the wrong sign.

issue3711
review3791002
2014-02-28 21:00:57 +01:00
Jordi Esteve a9a1b6c5df Use OR clause in search_rec_name of invoices
issue3708
review3771002
2014-02-25 10:57:31 +01:00
Cédric Krier 47ba04ab97 Use sign to preserve precision in get_amount
issue3668
review3421002
2014-02-14 00:01:24 +01:00
Cédric Krier b4499155ae Fix computation of second currency amount
issue3664
review3351002
2014-02-10 22:28:29 +01:00
Cédric Krier 49ac8de2a2 Fix account move cache computation when second currency
issue3645
review3131002
2014-02-10 22:27:27 +01:00
Cédric Krier 8a60537bc6 Replace wrong usage of False by None 2014-02-10 20:32:37 +01:00
Cédric Krier 342b781b24 Use start/end date of tax
review2771002
2014-01-31 22:31:31 +01:00
Cédric Krier 2b597dd1bb Drop support of Python 2.6
review2691002
2014-01-31 00:03:05 +01:00
Cédric Krier 1283b931fb Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:28:52 +01:00
Eduardo Ruiz b8b9f2e601 Add missing 'invoice_type' to on_change of product
invoice_type is used in the on_change method of product.

issue3586
review2731002
2014-01-23 11:26:25 +01:00
Sergi Almacellas Abellana d45007d32f Clear origin field on copying lines
review2421002
issue3565
2013-12-23 21:16:56 +01:00
Sergi Almacellas Abellana 91b82d6122 Remove unused code on Invoice.copy
review2421003
2013-12-23 21:15:55 +01:00
Cédric Krier a7ca4e89f9 Improve write-off
- Use account of write-off journal as default
- Add write-off journal type

issue3538
review2101002
2013-12-20 14:00:28 +01:00
Cédric Krier 79e3bb9235 Fix pay wizard for supplier invoice
Since changeset ec72480260e4, get_reconcile_lines_for_amount expect to have
signed amount but the pay wizard use absolute amount.

issue3552
review2211002
2013-12-20 13:53:55 +01:00
Cédric Krier 6bae222e70 Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:44:39 +01:00
Albert Cervera i Areny 4c6505e7ab Merge 2013-12-19 00:56:22 +01:00
Albert Cervera i Areny 48e48be073 Do not copy invoices one by one.
Do not copy invoices one by one because the new copy action on xxx2Many fields
already takes care of this.

review2331002
2013-12-19 00:55:47 +01:00
Albert Cervera i Areny 0a38b43b6b Avoid unnecessary browsing in get_amount().
review2321002
issue3556
2013-12-18 23:23:20 +01:00
Albert Cervera i Areny a246490910 Remove dependency on lines from type and currency.
issue3555
review2311002
2013-12-18 00:30:32 +01:00
Cédric Krier 3c872ee178 Store report cache using buffer
SQLite doesn't detect the binary even if stored in BLOB if the type is not
buffer.

issue2704
review1941002
2013-11-28 23:09:22 +01:00
Cédric Krier 9233332e12 Fix usage of context company
Default value of company should be -1 to get the right cast and an impossible
value.
Replace False by None as other value in "in" clause.

issue3394
review1119002
2013-10-09 18:25:10 +02:00
Cédric Krier 1750d9afcb Fix flake8 2013-10-05 12:16:31 +02:00
Guillem Barba 9bb4c1621a Fix domain concatenation between list and tuple
issue3386
review1099002
2013-09-30 17:41:37 +02:00
Cédric Krier 5032a5338b Use origin with credit invoice
issue1426
review1076003
2013-09-22 14:30:02 +02:00
Nicolas Évrard 4ae553d74d Replace reference copying by relate
review932002
2013-09-19 17:33:27 +02:00
Cédric Krier ade8368c34 Hide payment_lines when paid or empty
issue3112
review900003
2013-09-10 11:38:13 +02:00
Cédric Krier 5bcfa55544 Migration to python-sql
review1001002
2013-09-06 22:33:52 +02:00
Robin Baumgartner 99128cb0ed Fix missing reconciliation lines during writeoff
issue3354
review1052002
2013-09-04 09:16:40 +02:00
Nicolas Évrard 974d988765 Make statements aware of negative amounts in invoice lines
review820002
2013-08-16 11:32:15 +02:00
Nicolas Évrard c0e6d311e0 Do not set a default invoice_type on InvoiceLines
review899002
2013-08-16 10:53:53 +02:00
Cédric Krier 2b8593e1fd Fix docstring of CreditInvoiceStart 2013-07-12 10:37:12 +02:00
Cédric Krier cd59025fec Don't use IN clause to filter invoices
In this case, filtering using an IN clause may cost more than just looping over
all invoices as the IN clause could be very large.

review940002
2013-06-26 22:46:51 +02:00
Cédric Krier 8b3872a7b3 Test Autoreconciliation of posted move with just one line of zero
issue3208
review867002
2013-06-06 20:33:15 +02:00
Cédric Krier df99a699eb Improve refund_supplier error message 2013-06-03 15:15:17 +02:00
Cédric Krier 557959cb5b Re-add missing test for raising refund_supplier error
The test was removed by accident in changeset 3fa9b0a518b3

issue3241
2013-06-03 15:14:11 +02:00
Cédric Krier 7ab11b2b32 Use one getter for all amounts and use account move as cache
issue2936
review897002
2013-06-01 00:00:58 +02:00
Cédric Krier e65e63990c Test invoice sequence before accessing id
issue3199
2013-05-23 23:01:09 +02:00
Albert Cervera i Areny 7e5850998a Remove centralised from account.journal
review853002
issue3071
2013-05-21 19:12:48 +02:00
Albert Cervera i Areny fc440bccc3 Raise an error in check_cancel_move function
issue3196
review842002
2013-05-02 09:25:22 +02:00
Cédric Krier 995ff5afc3 Fix print_invoice as it is stored only if state is set
issue2998
review780003
2013-04-12 00:47:07 +02:00
Cédric Krier c93b4429d7 Validate button is now named validate_invoice 2013-04-04 18:16:55 +02:00
Cédric Krier 8aceefaa32 Fix origin states to use _parent_invoice 2013-03-27 22:42:57 +01:00
Udo Spallek a594ce4121 Add missing Active Record migration.
issue3093
review742002
2013-03-26 11:38:41 +00:00
Udo Spallek e815a27c30 Add missing Active Record migration.
issue3081
review721003
2013-03-25 18:49:29 +00:00