Cédric Krier
23cd459b36
Improve get_reconcile_lines_for_amount
...
Test all combinations of both payment_lines and lines_to_pay and keep the one
with the smaller remainder.
Use a namedtuple as result to ease its usage to callers.
issue5327
review16001003
2016-03-04 00:23:47 +01:00
Nicolas Évrard
4e64cedb9e
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:53:42 +01:00
Cédric Krier
f3791e4fee
Don't set missing attribute on line in _on_change_lines_taxes
...
because it is sent back to the client as changed values, instead improve
taxable_lines to work with missing values
issue5103
review22691002
2016-01-13 21:05:55 +01:00
Cédric Krier
a510480891
Fix typo in TaxLine.on_change_tax
...
changeset 610475eb7232 factorized the tax computation with TaxableMixin and in
the process get_tax_context became _get_tax_context.
issue5199
review17711002
2015-12-31 13:29:08 +01:00
Mario Puntin
ca2473422f
Prevent deleting product, unit, account and taxes linked to invoice lines
...
issue4894
review19641002
2015-11-17 18:04:45 -03:00
Karla Stenger
508e4e1eac
Add missing quote in error message missing_credit_account
...
issue5073
review16831002
2015-11-17 15:14:52 -03:00
Ralf Peschke
3f0d75766d
Prevalidate invoice date on 'in invoice' and 'in credit note'
...
issue4865
review18401002
2015-09-24 10:34:12 +02:00
Cédric Krier
969e02cf3a
Remove trailing space introduced in changeset 90d4db8f1491
2015-09-04 12:09:23 +02:00
Cédric Krier
12e11dafca
Set spell attribute only on form view
...
issue4944
review16571002
2015-09-04 12:02:55 +02:00
David Harper
c7b45078ac
Fix calculation of displayed writeoff amount
...
issue4917
review16541002
2015-08-28 10:50:30 +02:00
Cédric Krier
bdcbea5030
Use StateReport
...
issue4896
review19371002
2015-08-14 18:05:59 +02:00
Cédric Krier
df828ba978
Don't set default unit price on invoice line
...
issue4857
review23281003
2015-07-16 19:31:46 +02:00
Cédric Krier
5af5a4c834
Remove boolean expression in order
...
issue4852
review15541002
2015-07-13 23:57:43 +02:00
Cédric Krier
f6dd60b8fa
Use Constraint instance in ModelSQL._sql_constraints
...
issue4814
review15491002
2015-06-22 16:58:43 +02:00
Cédric Krier
e6ef32e87d
Use new Rule.query_get
...
issue4800
review7211002
2015-06-15 01:15:46 +02:00
Cédric Krier
b3d9a48f64
Allow to modify some fields of posted invoice line
...
issue4727
review11231002
2015-05-19 09:51:25 +02:00
Cédric Krier
2fd76b594d
on_change must return nothing now
...
issue4719
review9221002
2015-05-06 18:22:33 +02:00
Cédric Krier
c99662310f
Fix search_rec_name for negative operator
...
In case of negative operator, each subclause must be composed with 'AND'.
issue4559
review13111002
2015-04-05 23:35:37 +02:00
Cédric Krier
6527297e61
Use Binary cast
...
issue4637
review11091003
2015-03-16 19:32:21 +01:00
Nicolas Évrard
a9bc301744
Fix on_change's returning value
...
issue4554
review14991002
2015-03-16 17:58:43 +01:00
Nicolas Évrard
401a460ae6
Use tax sequence to order M2M of taxes
...
issue4120
review12461002
2015-03-16 15:40:37 +01:00
David Harper
0332e1b29d
change Ok to OK
...
issue4290
review7981003
2015-03-10 18:48:00 +01:00
Cédric Krier
fbed749bba
Remove safe_eval
...
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.
issue4416
review6971002
2015-03-09 19:41:10 +01:00
Cédric Krier
139da7ec62
Fix all issues introduced by the refactoring of Report API
...
The refactoring of Report API from changeset 50c1863e0483 broke all the
customized behaviour of the Invoice report.
- Fix the cache that could not be managed from the get_context
- Fix the cache storage in case of missing
2015-03-08 10:34:23 +01:00
Cédric Krier
74b7ad3d31
Fix wrong function for Report
...
The refactoring of Report API from changeset 50c1863e0483, keep the name
generate function name from an intermediary review instead of convert.
2015-03-08 01:11:35 +01:00
Cédric Krier
b7a1b9313b
Allow to easily extend account domain of invoice line
...
issue4598
review15061002
2015-03-02 23:37:40 +01:00
Cédric Krier
b970ee2e37
Normalize the usage of amount second currency
...
issue3663
review8901002
2015-02-10 00:01:46 +01:00
Nicolas Évrard
ca9f92956c
Report API refactorization
...
review8831002
2015-01-20 18:49:54 +01:00
Cédric Krier
f1f1afb60f
Use price_digits
...
issue4438
review6791002
2015-01-06 23:30:09 +01:00
Cédric Krier
940bbdb18c
Redefine _order instead of duplicate order on id
...
issue3439
review14831002
2015-01-02 15:49:24 +01:00
Nicolas Évrard
219cc949a0
Fix flake8 errors introduced in changeset 610475eb7232
2014-12-22 17:28:20 +01:00
Nicolas Évrard
ef2b93dcaa
Fix use of None instead Null in changeset 51e5f7fb547b
2014-12-22 17:27:45 +01:00
Nicolas Évrard
f9543baa64
Factorize tax computation
...
issue4115
review9561002
2014-12-19 19:41:49 +01:00
Nicolas Évrard
0e2c476e07
Skip posted moved/invoices in post
...
issue4283
review13661002
2014-12-16 14:48:14 +01:00
Cédric Krier
b1567ac8c4
Add missing company domain/field
...
issue4311
review7691002
2014-12-03 16:13:16 +01:00
Cédric Krier
a316785bd0
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:39 +01:00
Robin Baumgartner
f4825c3e0b
Use Null constant from python-sql for comparisons
...
issue4143
review13701003
2014-11-24 13:59:09 +01:00
Sergi Almacellas Abellana
2c77907898
Use grouped_slice on get_lines_to_pay
...
issue4321
review6651002
2014-11-06 16:46:07 +01:00
Cédric Krier
8d96a06bf3
New API for on_change
...
issue4203
review8581002
2014-10-29 20:39:13 +01:00
Cédric Krier
3026853b46
Fix ponctuation and closing quote of account_different_company error message
...
issue4248
2014-10-23 20:28:46 +02:00
Cédric Krier
37be4ef305
Missing closing quotes in account_different_company error message
...
issue4245
2014-10-23 20:26:41 +02:00
Cédric Krier
05c04fc9c5
Fix Invoice.on_change_party when there is no address
...
issue4256
review13621002
2014-10-18 09:12:59 +02:00
Cédric Krier
a3dde5797e
Prevent undefined type in on_change_product
...
review6581002
2014-10-10 10:07:02 +02:00
Cédric Krier
325ec41b1e
Re-browse taxes before computing to get name in right language
...
issue4182
review14541002
2014-09-24 11:21:17 +02:00
Nicolas Évrard
45d73e2d14
Make party mandatory / invisible according to account configuration
...
issue3731
review14341002
2014-09-19 18:44:54 +02:00
Cédric Krier
ffbc7a3432
Add Tax rounding configuration
...
issue4106
review11401002
2014-09-17 22:19:37 +02:00
Cédric Krier
561151b719
Use context to check model and field access
...
issue4081
review8481002
2014-09-17 21:44:59 +02:00
Sergi Almacellas Abellana
cb267977f3
Use grouped_slice helper.
...
issue3516
review10301002
2014-07-17 18:57:29 +02:00
Cédric Krier
35477b7ee4
Group calls to create/delete/write in Invoice.update_taxes
...
issue3947
review5351002
2014-06-08 00:40:00 +02:00
Nicolas Évrard
62eebce14e
Use SQL query to fetch lines to pay
...
issue3846
review5091003
2014-06-06 13:00:19 +02:00