Commit Graph
37 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana aed09fc630 Add tests for analytic line state with several companies 2021-05-28 09:03:50 +02:00
Cédric Krier 68c865162d Check rule only if _check_access is set and enforce companies rule
issue4080
review343891009
2021-04-10 23:46:23 +02:00
Cédric Krier c4c5f460f6 Store directly sequence type to sequence
issue10122
2021-03-13 11:55:43 +01:00
Cédric Krier cce0877deb Add test on context of company multivalue target fields
issue10067
review333851026
2021-03-05 15:49:19 +01:00
Sebastien Marie eb871c2ae5 Ignore balance of non-deferral move
issue9460
review294111002
2020-07-25 12:31:10 +02:00
David Harper a60825f77f Use Activate modules as test scenario section name
issue9395
review291901002
2020-07-09 10:21:06 +01:00
Sebastien Marie d651fcb029 Use line date instead of post_date when creating an analytic line from rule
issue9230
review305271002
2020-04-19 11:32:37 +02:00
Cédric Krier 605e95fc79 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:52 +01:00
Cédric Krier 0ba68c43c9 Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta

issue8567
review254091002
2019-09-07 23:45:08 +02:00
Cédric Krier 707db1b6b5 Prevent assign unknown attributes on Model
by adding __slots__ on proteus classes.

issue6573
review254081002
2019-09-07 23:38:20 +02:00
Cédric Krier e33d63c34f Merge account kind and account type
issue4990
review68401002
2019-03-24 18:00:01 +01:00
Cédric Krier 1861d82a36 Add rule engine
The rule is applied when posting move on the lines without any analytic lines.

issue6007
review26881002
2017-01-07 16:46:24 +01:00
Nicolas Évrard 77ac69ee1a Use activate instead of install for module activation
issue1456
review28931002
2016-10-20 12:54:39 +02:00
Cédric Krier 57ce272f7c Add distribution account type
A new type of account is added for distribution.
It is used on Account Entry to yield the lines to create for a accounting line.

issue5908
review31551002
2016-10-05 19:20:00 +02:00
Cédric Krier fa7412390b Add analytic state on move line
issue5900
review25661002
2016-09-28 14:44:59 +02:00
Cédric Krier 3d59d872c2 Clean Line Model
- remove non useful fields
- simplify views
- improve debit, credit and balance computation

issue3916
review33401002
2016-09-27 20:55:23 +02:00
Cédric Krier 26f3c5c534 Use install_modules tools in scenario
issue5794
2016-08-26 09:58:40 +02:00
Cédric Krier 2a20a92f73 Use converted tests converted by 2to3
distutils import tests module from the source code, so we must force it to use
the test suite from the absolute path because it will be the converted on in
case of 2to3 otherwise we fall-back to the relative module.

issue3211
2016-03-11 21:56:19 +01:00
Jonathan Levy a6b2ad04ab Add Python3 support
issue3211
review19021003
2016-02-26 19:49:55 +01:00
Cédric Krier 5b49ebd3d2 Make TestCase create and drop its database
and use with_transaction decorator.

issue5263
review20711002
2016-02-06 19:12:19 +01:00
Cédric Krier bcc3ddf444 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:03:21 +02:00
Sergi Almacellas Abellana 3e703ef35f Add doctest scenario
issue4528
review11921002
2015-02-15 12:07:35 +01:00
Cédric Krier 78997b5b32 Add check for default model access
When group access exists, a default model access should be defined otherwise
all access are given to non group users.

issue4485
review5941002
2015-01-27 18:13:07 +01:00
Cédric Krier 31ef81c8fa Add tox and drone
issue4431
2015-01-22 10:44:26 +01:00
Nicolas Évrard ec32558835 Add test for access rights of menu and actions
issue4295
review12661002
2015-01-02 16:07:56 +01:00
Cédric Krier b043e273e6 Fix most flake8 errors
review8771002
2014-12-02 12:54:55 +01:00
Nicolas Évrard 250bb474fb Make party mandatory / invisible according to account configuration
issue3731
review14341002
2014-09-19 18:44:56 +02:00
Sergi Almacellas Abellana c64f335b33 Add test for credit, debit and balance calculation
issue3877
review8271002
2014-04-30 19:58:33 +02:00
Cédric Krier 175ce76bab Cleanup tests
review2491002
2014-01-12 19:59:29 +01:00
Cédric Krier 275f8fc517 Fix flake8 2013-10-05 12:16:39 +02:00
Cédric Krier 35adcc5ffa Fix pep8 and pyflakes 2012-04-03 20:06:33 +02:00
Nicolas Évrard 932e0c4324 Use relative imports 2011-12-14 17:04:20 +01:00
Cédric Krier 2c04fd2e66 Add test for depends 2011-08-04 16:57:21 +02:00
Cédric Krier e50dbec0a2 Fix test_view for issue1651 2010-08-27 12:17:59 +02:00
Cédric Krier 0435d0d56d Add test_suite in setup.py 2010-03-12 17:49:33 +01:00
Cédric Krier 4702fcb30c New unittest design 2010-03-04 14:05:27 +01:00
Cédric Krier 9db3a20786 Add test views 2009-06-27 11:20:12 +02:00