Commit Graph
163 Commits
Author SHA1 Message Date
Cédric Krier 432a6cdbd5 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier f301ebdf26 Use grouped line class also for origins
The statement report expect to loop over an object that has a descriptions
attribute.

issue7763
review48631002
2018-10-15 22:54:19 +02:00
Sergi Almacellas Abellana 60c55dd0d6 Test if move is set before reading its lines
issue7687
review49561002
2018-09-17 09:44:41 +02:00
Cédric Krier 3ea3350181 Do not fail if invoice is not in invoice_id2amount_to_pay
Amount to pay is computed only for invoices with the company currency.

issue7427
review53381002
2018-09-12 12:48:31 +02:00
Cédric Krier eda49bec9b Do not concatenate map with list
In Python3, map does not return anymore a list.

issue7675
review49551002
2018-09-09 10:08:22 +02:00
Sergi Almacellas Abellana 68461cf889 Use single account for statement journal
issue7450
review50391002
2018-09-01 11:19:35 +02:00
Cédric Krier e69567177a Improve ModelStorage.copy
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default

issue5576
issue7648
review72291002
2018-09-01 01:02:03 +02:00
Cédric Krier dfba734fe4 Add support for chart of account evolution
* Add replacement account
* Add period on account and tax code

issue7417
review45671002
2018-08-31 14:58:05 +02:00
Cédric Krier 37d40d01c9 Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier 55de823416 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:07 +02:00
Cédric Krier 820bc9707e Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:43 +02:00
Cédric Krier 2f74ad234a Update depends methods name
issue5191
review47431002
2018-05-31 13:24:54 +02:00
Cédric Krier eb9932fd9f Use amount from the move line to compute reconciliation
- Do not check amount to pay when reconcile move lines
- Remove line split by invoice in non company currency

issue7314
review38131002
2018-04-13 18:47:34 +02:00
Cédric Krier 128947ed08 Use Invoice.add_payments method
issue7139
review43131002
2018-03-24 15:30:29 +01:00
Cédric Krier 923285de8d Use new API for Line.reconcile
issue7132
review41061002
2018-03-07 00:11:08 +01:00
Sergi Almacellas Abellana 46ebd6497b Add depends on Button
issue6919
review40811002
2018-02-19 11:38:12 +01:00
Cédric Krier 0e03c8e259 Add button to reconcile statement
issue6917
review43741002
2017-12-26 17:41:30 +01:00
Cédric Krier 237360ecb5 Simplify language formatting
issue6858
review44391002
2017-11-15 00:18:10 +01:00
Sergi Almacellas Abellana b72a37bb25 Fix origin company searcher for dot notation
issue6757
review35681002
2017-10-09 16:44:33 +02:00
Sergi Almacellas Abellana f5ddc62409 Cast statement file before saving to the database
Otherwise it crashes when saving non ascii files on sqlite

issue6802
review39731003
2017-10-04 11:55:41 +02:00
Sergi Almacellas Abellana dbd673a374 Use used properties for account payable and receivable
issue6561
review39521002
2017-09-28 10:16:05 +02:00
Cédric Krier e86568dc03 Fix searcher methods for dot notation
issue6757
review40651002
2017-09-27 18:37:26 +02:00
Cédric Krier 1bc0542c40 Add statment origin and wizard to import them
issue5882
review30501002
2017-09-27 09:01:28 +02:00
Cédric Krier 8b826906c8 Unreconcile lines when cancelling statement
As it is not allowed to delete a move with lines reconciled.

issue4017
review37631002
2017-09-03 11:23:02 +02:00
Cédric Krier 2137eecd2c Improve accounting move descriptions
- Add statement line number as move description
- Set description on statement account line if unique

issue6205
review26051002
2017-02-01 21:43:20 +01:00
Cédric Krier c7ed8f340d Use the last journal encoded of the day to fill start balance
issue5939
review27681002
2016-10-11 18:15:44 +02:00
Sergi Almacellas Abellana 7fc1c2b484 Use sequence_ordered
issue5105
2016-09-13 14:04:17 +02:00
Sergi Almacellas Abellana 6a408088e1 Apply invoice's account clause only when the account is set
The account domain on invoice field is applied when the party is set, but it should only be applied when the account is set. This gives an invalid domain when the party is set and the account is not set.

issue5766
review32391002
2016-08-08 15:23:14 +02:00
Cédric Krier ee47d40ac5 Manage readonly state on Statement Line
issue5628
review22091002
2016-06-30 18:55:57 +02:00
Cédric Krier 46d244b061 Test if there is something to write before calling write
ModelStorage.write requires at least a tuple of records, values.

issue5456
review21921002
2016-04-08 22:54:24 +02:00
Cédric Krier e44a6de850 Merge invoice and credit note
issue5225
review18921002
2016-03-20 22:58:29 +01:00
Nicolas Évrard 9f65450909 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:54:04 +01:00
Nicolas Évrard 6a1ab8945d Remove state on statement's date
issue4681
review11151002
2015-10-04 00:39:51 +02:00
Cédric Krier 81b4ac90d8 Remove boolean expression in order
issue4852
review15541002
2015-07-13 23:57:57 +02:00
Cédric Krier 7d844159ae Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:58:59 +02:00
Cédric Krier 1952b3cc22 Add line group model
It is a simple view on the move with the fields used for grouping.

issue4588
review11941004
2015-03-02 23:36:17 +01:00
Cédric Krier 2b01537aab Normalize the usage of amount second currency
issue3663
review14921003
2015-02-10 00:00:55 +01:00
Cédric Krier ab0ba26035 Return moves from create_move
issue4454
review6811002
2015-01-07 14:51:34 +01:00
Cédric Krier 3ade6fb133 Create Move by grouped lines
Create one move per lines having the same number, date and party.
Use the statement as origin of the move instead of the line.

issue4386
review7771002
2015-01-02 15:43:29 +01:00
Cédric Krier a8f37a27ab Add missing company domain/field
issue4311
review7691002
2014-12-03 16:13:25 +01:00
Cédric Krier 2d65503eb4 Fix most flake8 errors
review8771002
2014-12-02 12:54:50 +01:00
Nicolas Évrard fa11256ad4 Changeset 3a3cf7ba24de intoduced a name clash
issue4367
review13721002
2014-11-28 11:35:41 +01:00
Robin Baumgartner f0adfd8a1b Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 14:00:58 +01:00
Cédric Krier a0d4cb3a47 New API for on_change
issue4203
review8581002
2014-10-29 20:39:23 +01:00
Nicolas Évrard ffeaad8ee5 Make party mandatory / invisible according to account configuration
issue3731
review14341002
2014-09-19 18:44:55 +02:00
Cédric Krier a6de03d181 Add validation type on journal
It also adds a name on statement to replace to current rec_name and some
documentation.

issue3943
review5331002
2014-07-20 13:45:45 +02:00
Cédric Krier 6d3c2c74d0 Add report to statement
issue4018
review6401002
2014-07-20 13:13:00 +02:00
Cédric Krier 8f4a5d61f3 lines should be named Lines
issue4037
review5441002
2014-07-10 00:08:44 +02:00
Cédric Krier b993f7180f Add number and sequence on statement line
issue4013
review9451005
2014-07-04 14:43:49 +02:00
Robin Baumgartner f4357d611c Switch journal debit/credit account usage
issue4000
review11311004
2014-06-23 09:35:57 +02:00