Commit Graph
59 Commits
Author SHA1 Message Date
Cédric Krier 1a2c268bd9 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 600c226e07 Store directly sequence type to sequence
issue10122
2021-03-13 12:27:47 +01:00
Cédric Krier e0b8ce3672 Add test on context of company multivalue target fields
issue10067
review333851026
2021-03-05 15:49:19 +01:00
David Harper 7b5f10d633 Use Activate modules as test scenario section name
issue9395
review291901002
2020-07-09 10:21:06 +01:00
David Harper e883a5ab83 Rename statement state from cancel to cancelled
issue8927
review309681006
2020-06-04 11:11:01 +01:00
Cédric Krier 1c3e728871 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:51 +01:00
Cédric Krier 49a5b37d97 Prevent posting move from not posted statement
issue8864
review288581003
2019-12-05 21:38:47 +01:00
Sergi Almacellas Abellana 8ef82d2dfc Use invoice amount to pay as line amount when creating lines from origins
issue7912
review52551002
2019-04-14 14:30:06 +02:00
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 68461cf889 Use single account for statement journal
issue7450
review50391002
2018-09-01 11:19:35 +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 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
Nicolas Évrard 2c5e88f76f Use activate instead of install for module activation
issue1456
review28931002
2016-10-20 12:54:38 +02:00
Cédric Krier e11b5b0780 Use install_modules tools in scenario
issue5794
2016-08-26 09:58:31 +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
Cédric Krier 76069d164a 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:09 +01:00
Jonathan Levy f7fcc0de7b Add Python3 support
issue3211
review21751003
2016-03-05 12:33:11 +01:00
Cédric Krier 773e55b040 Rename ir.module.module* into ir.module*
issue4764
review7171002
2015-05-28 21:03:14 +02:00
Cédric Krier 85d880d031 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:04 +01:00
Nicolas Évrard fecd404a3a Add test for access rights of menu and actions
issue4295
review12661002
2015-01-02 16:07:54 +01:00
Cédric Krier 2d65503eb4 Fix most flake8 errors
review8771002
2014-12-02 12:54:50 +01:00
Cédric Krier be7b962b17 Add some test tools to ease scenario writing
review11331002
2014-10-24 10:44:20 +02: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 8aeb1767e1 Use new doctest setup/teardown
issue3627
review7401002
2014-09-04 08:44:49 +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
Nicolas Évrard 56c9bde881 Prevent usage of paid invoice in draft statements
review1721004
2014-02-03 17:42:29 +01:00
Cédric Krier 572276ee4e Drop support of Python 2.6
review2691002
2014-01-31 00:03:11 +01:00
Cédric Krier 17b308440e Anonymise tests
review2681002
2014-01-16 22:10:09 +01:00
Cédric Krier 0733f4a1c0 Cleanup tests
review2491002
2014-01-12 19:59:26 +01:00
Cédric Krier c2d1aceb8f Use common doctest_dropdb
review2151002
2013-12-18 18:29:06 +01:00
Cédric Krier 28d31e7b9b Fix flake8 2013-10-05 12:16:36 +02:00
Cédric Krier 4d303042ef Migration to python-sql
review1001002
2013-09-06 22:33:56 +02:00
Cédric Krier 90fed0deba Fix last line amount comparison in test scenario 2013-08-21 11:18:40 +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 7863f488d3 Remove _inherits
review670002
2013-03-20 22:50:26 +01: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 4c217f1479 Update to new invoice states
review583002
2012-12-23 22:29:15 +01:00
Cédric Krier c76df8ac1d FiscalYear.create_period returns nothing now 2012-09-11 15:24:07 +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 9307002eb3 Fix pep8 and pyflakes 2012-04-03 20:06:27 +02:00
Cédric Krier 78892320b2 Simplify workflow engine
review256001
2012-03-25 00:17:31 +01:00
Nicolas Évrard c62bae0a8f Integer, Numeric and Float allow None as value
NULL value is None and not False

issue2022
review237004
2012-03-23 18:38:51 +01:00
Cédric Krier 35b968c69f New wizard design 2012-01-02 17:58:20 +01:00
Nicolas Évrard ff80b6f141 Use relative imports 2011-12-14 17:04:19 +01:00