Commit Graph
143 Commits
Author SHA1 Message Date
Cédric Krier 94b7a8676a Add reverse_compute on Tax
issue4444
review6801002
2015-01-15 23:40:42 +01:00
Jordi Esteve 629bcbe163 Move company domain from credit_note_base_sign to credit_note_base_code
Introduced in changeset 42b9acc4c201

issue4470
review6841002
2015-01-10 13:13:35 +01:00
Nicolas Évrard 57d2105f18 Factorize tax computation
issue4115
review9561002
2014-12-19 19:42:37 +01:00
Cédric Krier 36c1ff8e75 Add missing company domain/field
issue4311
review7691002
2014-12-03 16:13:08 +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 46e8b22da8 New API for on_change
issue4203
review8581002
2014-10-29 20:39:03 +01:00
Nicolas Évrard b6a0117962 Do not allow to delete taxes or group used in tax rule lines
issue3882
review12261002
2014-06-06 12:51:33 +02:00
Cédric Krier 6a2149e5bc Use MatchMixin
issue3867
review5271002
2014-05-09 23:16:44 +02:00
Sergi Almacellas Abellana 5908d38458 Fix update chart of accounts with changes on taxes or rule lines
- invoice_account, credit_note_account, invoice_base_code, invoice_tax_code,
  credit_note_base_code and credit_note_tax_code where not properly compared
  when upgrading the chart of accounts.
- Origin tax of rule_lines was updated with the value of the template, so
  it raised a domain validation error.

issue3617
review2961002
2014-02-11 16:28:50 +01:00
Cédric Krier b98b668000 merge 2014-01-31 22:39:21 +01:00
Cédric Krier cedde4101f Add start/end date to tax
issue3600
review2771002
2014-01-31 22:30:34 +01:00
Jordi Esteve e6be1ca3f6 Use OR clause in all search_rec_name
issue3613
review2901003
2014-01-31 14:06:56 +01:00
Cédric Krier a73abc860f Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:28:46 +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 51bd459220 Migration to python-sql
review1001002
2013-09-06 22:33:47 +02:00
Cédric Krier fd72f7a822 Change tax percentage into rate
review824002
2013-06-26 22:59:55 +02:00
Cédric Krier 6017f5714c Fix Open Chart of Tax Codes when no fiscalyear is selected
issue3202
2013-05-04 11:55:46 +02:00
Cédric Krier f2a5639da5 Add missing default_kind for TaxRule 2013-03-20 12:24:33 +01:00
Albert Cervera i Areny 27fc93c12f Fix validate error and add test.
review711002
2013-03-10 19:01:35 +01:00
Albert Cervera i Areny 7f9c38ee89 Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:53:42 +01:00
Cédric Krier f943da6141 Fix flake8 2013-02-16 18:54:35 +01:00
Albert Cervera i Areny 87222daf32 Use a list of dictionaries in create().
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier 66538d503b Fix tax matching on many2one
review599005
2012-12-05 13:36: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 3b88d537bb Store default language in database
review592004
2012-11-23 18:00:16 +01:00
Cédric Krier f26f6d1cd7 Fix DeprecationWarning: Use __getattr__ instead of __getitem__ 2012-10-21 23:11:23 +02:00
Cédric Krier 5111d2398b Fix creation and update of chart of account
Some test on id must be replaced by instance test and some typo during active
record migration.

issu2844
2012-10-21 21:11:39 +02:00
Cédric Krier 6d8fa372ef Fix typo in _get_tax_code_value
issue2834
2012-10-17 17:31:05 +02:00
Cédric Krier d90917677b Fix typo when looping on childs from Active Record migration
issue2823
2012-10-10 16:51:31 +02:00
Cédric Krier de8eb110e6 Use ternary operator because there is no more BrowseRecordNull 2012-10-09 19:47:57 +02:00
Cédric Krier 85f88bfd14 Improve titles of "Open Chart"
review535002
2012-09-27 11:07:08 +02:00
Cédric Krier 0f919d5f3a Active Record 2012-09-24 22:17:29 +02:00
Cédric Krier 6d0aecf891 Ensure clause concatination works with tuple vs list 2012-08-05 21:10:40 +02:00
Nicolas Évrard d525f60138 Do not use not required "tax" field as _rec_name 2012-07-27 19:44:39 +02:00
Cédric Krier c00adbaa7f Remove required on sequence
review348001
2012-05-14 15:36:13 +02:00
Cédric Krier ff9f887f17 Fix pep8 and pyflakes 2012-04-03 20:06:15 +02:00
Cédric Krier 1bae6a181e Enforce the usage of account kind
issue2475
review295005
2012-03-30 14:18:10 +02:00
Cédric Krier 36bb3ddde1 Replace wrong usage of False by None
issue2512
2012-03-27 10:43:03 +02:00
Nicolas Évrard 06f7a2dd00 Integer, Numeric and Float allow None as value
NULL value is None and not False

issue2022
review237004
2012-03-23 18:38:49 +01:00
Sergi Almacellas Abellana b94555c750 Added indexes on company fields
Put an index on every company field.

issue2184
review224004
2012-03-14 09:23:04 +01:00
Mathias Behrle 70f08b7c1f Change select=1|2 to select=True
issue2305
review269003
2012-03-05 10:52:56 +01:00
Cédric Krier 3bf0effd14 Add default database language code
review200001
2012-01-27 21:13:00 +01:00
Cédric Krier 7df64ddc43 New wizard design 2012-01-02 17:54:33 +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 fecfac6a5c Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:17:23 +02:00
Cédric Krier 509b86dc79 Change Pool into a Singleton 2011-07-03 13:18:40 +02:00
Cédric Krier e15aa760b6 Move Cache in trytond.cache 2010-08-24 20:55:18 +02:00
Cédric Krier 7e4d193ddc Update for new Transaction 2010-08-19 22:02:00 +02:00