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
Cédric Krier
011da631d8
Remove duplicate question on warning message
...
issue3821
2014-04-29 19:16:37 +02:00
Nicolas Évrard
553e844851
Add index to one2many's on_change add
...
review2091002
issue3539
2014-03-16 20:54:54 +01:00
Cédric Krier
fb274af86f
Be safer with the on_change using One2Many values
...
review4261002
2014-03-16 15:39:58 +01:00
Cédric Krier
e62fa5521b
Use statement line date for currency convertion
...
issue3650
review3571002
2014-02-24 19:19:12 +01:00
Nicolas Évrard
56c9bde881
Prevent usage of paid invoice in draft statements
...
review1721004
2014-02-03 17:42:29 +01:00
Cédric Krier
c658589ead
Use fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:28:55 +01:00
Cédric Krier
d33c4a1cc4
Test if id >= 0 before getting rec_name
...
The instance of many2one received in on_change call could be negative in case it
is a parent record not yet saved.
review2611002
2014-01-12 19:50:32 +01:00
Albert Cervera i Areny
5ba01597ed
Remove dependency on lines from journal.
...
review2351003
issue3555
2013-12-18 23:15:29 +01:00
Cédric Krier
6198d40310
Fix search_rec_name's
...
- balance can not be used for searching rec_name because of incompatible type.
- missing search_rec_name for line as get_rec_name is overridden.
review1791002
2013-11-25 12:31:02 +01:00
Cédric Krier
0614e11c0e
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:13 +02:00
Cédric Krier
4d303042ef
Migration to python-sql
...
review1001002
2013-09-06 22:33:56 +02:00
Cédric Krier
9cf6e04b14
Allow to use invoice to fill party and account on statement line
...
review941002
2013-08-21 18:22:45 +02:00
Nicolas Évrard
dfe4c7094b
Make statements aware of negative amounts in invoice lines
...
review820002
2013-08-16 11:33:24 +02:00
Cédric Krier
010cf656c5
Replace move_lines by a relate
...
review946002
2013-07-22 14:39:21 +02:00
Cédric Krier
e774332008
Fix same_debit_credit_account error parameters
...
issue3294
review980002
2013-07-22 14:34:59 +02:00
Cédric Krier
61f8075cab
Add missing transition from draft to cancel on statement
...
To allow to delete a draft statement, it must be first cancelled.
2013-06-24 11:56:06 +02:00
Albert Cervera i Areny
077957e653
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:54:25 +01:00
Cédric Krier
121c8be80b
Fix flake8
2013-02-17 00:37:49 +01:00
Cédric Krier
541b1e3237
Allow any non-view account on statement line
...
For example, donations are not payable nor receivable
review631005
2013-01-26 15:41:28 +01:00
Cédric Krier
4c217f1479
Update to new invoice states
...
review583002
2012-12-23 22:29:15 +01:00
Cédric Krier
7ee6249bd2
Rationalize accounting moves and lines
...
issue2056
review503006
2012-09-29 15:34:37 +02:00
Cédric Krier
0741cb488d
Active Record
2012-09-24 22:17:36 +02:00
Cédric Krier
9dd8470f4d
Fix domain concatenation between list and tuple
2012-09-19 22:19:04 +02:00
Cédric Krier
97b2c2e1d5
Reset move and invoice when copying Statement Line
...
review496003
2012-09-11 15:26:40 +02:00
Cédric Krier
1cf8dc67e0
Make invoice field also readonly when empty party or account
...
issue2762
review501002
2012-09-05 14:32:27 +02:00
Cédric Krier
b35134fb9a
Fix sign of the amount to pay on line
...
issue2746
review464003
2012-08-16 14:54:26 +02:00
Cédric Krier
26ad2fba55
Allow to use credit note on statement line
...
issue2639
review397001
2012-06-13 23:26:17 +02:00
Cédric Krier
c0f3f872fb
Fix domain for invoice on statement line
...
The invoice state could be any once the statement is no more draft.
issue2453
review386001
2012-06-01 23:44:37 +02:00
Cédric Krier
9307002eb3
Fix pep8 and pyflakes
2012-04-03 20:06:27 +02:00