Sergi Almacellas Abellana
603b8880e5
Restrict deleting accounts and tax rules linked to a party
...
issue9668
review306621002
2020-10-09 21:40:42 +02:00
Cédric Krier
f5d1d549d7
Fix flake8 errors and warnings
...
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.
issue9082
review297061002
2020-03-01 12:33:50 +01:00
Cédric Krier
3c9fd8f8da
Add domain against closed account
...
issue8917
review262641002
2019-12-28 17:48:50 +01:00
Nicolas Évrard
2037b6b71b
Use direct access to backend classes
...
issue8836
review258421002
2019-12-06 17:33:46 +01:00
Cédric Krier
eda62e8f1c
Add visual context on tree view
...
issue8562
review261951002
2019-09-20 11:47:15 +02:00
Cédric Krier
74ce1bacd5
Add default customer and supplier tax rule
...
issue8542
review267741002
2019-08-18 19:06:19 +02:00
Cédric Krier
0929d8d550
Merge account kind and account type
...
issue4990
review68401002
2019-03-24 18:00:01 +01:00
Cédric Krier
1e447a7f39
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:28 +01:00
Cédric Krier
cc9f1e7c68
Enforce party required on account receivable and payable
...
It is needed to correctly compute the payable and receivable amounts.
issue5565
review50561002
2018-09-11 00:17:46 +02:00
Cédric Krier
317858703d
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
9dda2b3560
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:40 +02:00
Cédric Krier
0678268232
Use sql_cast from Field
...
issue7266
2018-04-30 15:26:03 +02:00
Cédric Krier
e2d8d0a808
Quantize to number of digits instead of rounding computed amount
...
Rounding may change the result if currency rounding is not unitary.
issue7284
review37251002
2018-04-18 10:18:37 +02:00
Cédric Krier
e0903ab24e
Check receivable/payable to erase party
...
issue7169
review41151002
2018-03-24 00:04:07 +01:00
Sergi Almacellas Abellana
b7dcfe1ecc
Do not raise missing accounts errors on readonly transactions
...
issue6913
review39871002
2017-11-27 16:50:33 +01:00
Sergi Almacellas Abellana
aa71a1e6f5
Drop required on party receivable and payable accounts
...
Use the default account defined on configuration when the value is not set
issue6561
review40441002
2017-09-28 10:15:43 +02:00
Cédric Krier
4adfcb8860
Make search_receivable_payable works with 'in' operator
...
issue6712
review38641003
2017-09-15 19:40:40 +02:00
Diego Abad
f5e59c095c
Remove duplicate account kind conditional on query
...
issue6569
review37461002
2017-06-15 22:45:56 +02:00
Cédric Krier
e019315e9c
Remove Property fields
...
issue2349
review34831002
2017-04-01 00:25:49 +02:00
Sergi Almacellas Abellana
acf52bf6ab
Round party payable and receivable with current company currency
...
Round only for backend that do not support correct numeric addition.
issue6305
review29251002
2017-02-27 17:52:45 +01:00
Xavier Codinas
5b66b33c6d
Add digits in receivable and payable function fields
...
issue2274
review31781002
2016-12-13 11:06:00 +01:00
Cédric Krier
9d18366256
Manage Replace Wizard
...
issue5820
review32471002
2016-10-02 15:19:34 +02:00
Cédric Krier
cf7407b333
Do not apply MoveLine filter to search Party payable/receivable
...
and cast to numeric for sqlite
issue5793
review30451002
2016-08-31 22:49:08 +02:00
Cédric Krier
32ff13021d
Do not apply MoveLine filter to compute Party payable/receivable
...
The MoveLine.query_get is only for fiscal year purpose but payable and
receivable are deferrable.
This should have been removed with changeset c7da745a25fc when the deferrable
concept was introduced.
issue5793
review30411003
2016-08-19 21:32:29 +02:00
Nicolas Évrard
a829d4308a
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:53:17 +01:00
Cédric Krier
a86cfb55d0
Add doctest checker for Python 2-3
...
issue3211
2016-02-25 00:06:33 +01:00
Sergi Almacellas Abellana
a768d62f7d
Improve get_receivable_payable for large ids list
...
issue2275
review7431004
2015-01-21 19:47:37 +01:00
Cédric Krier
dd10ef8dca
Simplify get company from user
...
The user can directly be fetch from Transaction and company read from User
instance.
issue4414
review11731002
2014-12-20 19:12:19 +01:00
Cédric Krier
671312b221
Add missing line_query clause in search_receivable_payable
...
As it is used in the getter, it should be also used in the searcher.
issue4415
review10761003
2014-12-20 18:56:21 +01:00
Cédric Krier
492ffa9f5a
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:29 +01:00
Robin Baumgartner
63bd7b99f3
Use Null constant from python-sql for comparisons
...
issue4143
review13701003
2014-11-24 13:58:35 +01:00
Cédric Krier
44c4b89065
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:04 +02:00
Cédric Krier
c0a859ab2e
Fix flake8
2013-10-05 12:16:23 +02:00
Cédric Krier
51bd459220
Migration to python-sql
...
review1001002
2013-09-06 22:33:47 +02:00
Cédric Krier
f943da6141
Fix flake8
2013-02-16 18:54:35 +01:00
Cédric Krier
69abbc85e3
Fix test on company of user
...
issue2908
review599007
2012-12-05 13:43:06 +01:00
Cédric Krier
925c4fadd3
Add sale, purchase or other kind on Tax Rule and Tax Group
...
review587003
2012-12-05 13:00:13 +01:00
Cédric Krier
0f919d5f3a
Active Record
2012-09-24 22:17:29 +02:00
Cédric Krier
f73bd47027
Fix search_receivable_payable with None value
2012-08-02 15:57:40 +02:00
Cédric Krier
ff9f887f17
Fix pep8 and pyflakes
2012-04-03 20:06:15 +02:00
Cédric Krier
5831f9d977
Convert value to Decimal when searching receivabel/payable
...
issue2299
review191001
2011-12-02 11:42:35 +01:00
Cédric Krier
42fd417931
Remove unused company code
2011-11-28 10:26:08 +01:00
Cédric Krier
fce51401ed
Context company check is made in User read now
...
review177001
2011-11-14 18:02:27 +01:00
Cédric Krier
cbacef96c9
Make PYSON more Pythonic
2011-08-21 11:20:29 +02:00
Cédric Krier
9a132acef1
Add test for depends
2011-08-04 16:57:14 +02:00
Cédric Krier
085b7ba58b
Use user context if user is root
...
review60001
2011-07-20 16:58:39 +02:00
Cédric Krier
509b86dc79
Change Pool into a Singleton
2011-07-03 13:18:40 +02:00
Cédric Krier
7e4d193ddc
Update for new Transaction
2010-08-19 22:02:00 +02:00
Cédric Krier
b7cba0e0d9
searcher on Function fields take only one domain clause as argument
2010-03-23 11:26:52 +01:00
Cédric Krier
c4096a3144
New interface for Function/Property fields
2010-03-11 16:45:27 +01:00