Commit Graph
212 Commits
Author SHA1 Message Date
Cédric Krier a6e8ff28bd Fix on_change_type to update account and payment term
issue2143
review103005
2011-09-28 13:20:47 +02:00
Cédric Krier 50876d0f63 Improve Binary fields
review84002
2011-09-17 14:43:48 +02:00
Cédric Krier 101d005da2 Make PYSON more Pythonic 2011-08-21 11:20:30 +02:00
Nicolas Évrard 79c9cb78dd Use function name in workflow instead of python code 2011-08-11 16:34:33 +02:00
Cédric Krier 7d8ed09778 Add test for depends 2011-08-04 16:57:16 +02:00
Cédric Krier d2ac821e59 Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:17:26 +02:00
Cédric Krier 494a91673a Change Pool into a Singleton 2011-07-03 13:18:43 +02:00
Cédric Krier 42fee1ba5c Use account taxes as default value for taxes if no product is set
review39001
2011-06-07 11:55:40 +02:00
Cédric Krier e82dee5a22 Run invoice report in commited transaction for issue1826
Using a new cursor doesn't work because it generate a dead lock when the
report is ran from the workflow.
2011-04-18 11:19:26 +02:00
Cédric Krier 5a4fba67b5 Fix usage of _parent_invoice.currency_date in on_change
The value could be empty so we must use today instead of trying to read the
field invoice.
2011-04-13 16:57:46 +02:00
Udo Spallek a5bdab3583 Start a new transaction to store the resulting report for issue1826. 2011-04-13 14:48:46 +02:00
Mathias Behrle 0b30af33b5 Add field currency_date to set the date for the rate calculation.
Additionally use this date in the context and pass ids for currency rate
calculation.
2011-04-10 20:50:56 +02:00
Robin Baumgartner d6fe80fdc2 Replacement of hard coded field exclusion list in account_invoice (issue1833). 2011-02-06 20:42:42 +01:00
Cédric Krier 3414337a6e Change get_move_line on Invoice Line and Tax to return a list of values 2011-01-16 21:49:35 +01:00
Korbinian Preisler 0fa98ddc66 do not create move line for tax if the amount is 0 2010-11-11 20:14:00 +01:00
Cédric Krier b8ebf6e09c Fix payment with write-off for issue1703
With changeset d6b96d13a3e6, the field payment_lines is reloaded after the
call to pay_invoice.
2010-10-01 23:27:31 +02:00
paul@nfg.nl 6a6d8716c6 fix small typo 2010-09-28 17:00:41 +02:00
Cédric Krier 8f2821375a Update for new Transaction 2010-08-19 22:02:49 +02:00
Cédric Krier 36040e0f2e Add CAST on SUM and convert Decimal into str for issue1615
SQLite fails to compare HAVING clause with a Decimal
2010-07-16 20:19:30 +02:00
Cédric Krier 9713929d6f Catch only Exception according to PEP 352 2010-07-08 19:55:01 +02:00
Cédric Krier 79ebefeb25 Add missing states on reference and comment of invoice for issue1549 2010-04-29 20:21:50 +02:00
Korbinian Preisler d27dd446f2 use setdefault() in copy for invoice_date and accounting_date
to allow override in custom modules for issue 1463
2010-03-30 12:07:18 +02:00
Cédric Krier 2a925bd6d4 searcher on Function fields take only one domain clause as argument 2010-03-23 11:26:24 +01:00
Cédric Krier e0013e5c7d Remove ids from on_change* calls 2010-03-18 18:21:00 +01:00
Cédric Krier 2f7395cd38 New interface for Function/Property fields 2010-03-11 16:45:42 +01:00
Korbinian Preisler 04505f7636 add tax field on account.tax.line for issue1401 2010-02-03 18:11:45 +01:00
Cédric Krier 9dc19b2b2e Add default search value on invoice 2010-01-23 11:41:42 +01:00
Cédric Krier 8de2a62ef1 Use get_id of ir.model.data 2010-01-21 12:08:18 +01:00
Cédric Krier 14fdcad839 Improve Function fields of Invoice
- Use reduce_ids
- Compute get_amount_to_pay only for openned invoice
- Use the same zero Decimal
2010-01-20 15:25:32 +01:00
Cédric Krier aaba43f53f Use PySON 2010-01-20 10:57:08 +01:00
Cédric Krier 77393eea54 Add index on company of Invoice as it is used by ir.rule 2010-01-17 23:12:37 +01:00
Cédric Krier e9d5c804ac Remove unused company_obj 2009-12-29 17:59:44 +01:00
Korbinian Preisler ece4e263dd fix typo for issue1276 2009-11-03 16:54:43 +01:00
Cédric Krier 0ffc5e1c6f Fix company context domain when company is not in context 2009-11-02 19:08:15 +01:00
Cédric Krier 710c99cbaf Fix party_lang for spell attribute on invoice line for issue1221
- Test _parent_invoice with globals()
- Add party_lang on account.invoice.line
2009-10-14 19:27:29 +02:00
Cédric Krier aacc44455a Fix on_change_with_amount if currency is False 2009-10-12 17:45:16 +02:00
Cédric Krier 65f6f4e3ae Fix get_invoice_taxes when there is no invoice on the line 2009-10-12 16:50:19 +02:00
Cédric Krier aed8082a43 Fix test for value from _parent_invoice if they are set to False 2009-10-12 15:11:01 +02:00
Cédric Krier 1ac9b9e6c3 Fix typo in modify error message of tax line 2009-10-06 14:28:12 +02:00
Cédric Krier ebf6bffe08 Allow to modify tax lines from canceled invoice for issue1214 2009-10-06 14:27:30 +02:00
Cédric Krier 0743caae5b Fix SUM with SQLite for issue1184 2009-09-22 16:08:56 +02:00
Korbinian Preisler 585437fcf0 use given date for computation of amount with differing currency instead of currenct date 2009-09-08 21:52:19 +02:00
Cédric Krier 74f9df047a Use faster join implementation 2009-08-26 15:58:34 +02:00
Korbinian Preisler f8a698c0bb set invoice date when invoice is opened 2009-07-18 14:27:14 +02:00
Cédric Krier 87d9584bf0 Use absolute value of amount second currency to compute the amounts to pay for
issue1107
2009-07-14 16:47:53 +02:00
Cédric Krier a5d84e0054 Use sql type from FIELDS to make CAST in SQL query 2009-07-07 19:40:58 +02:00
Cédric Krier 3f6bae69f7 Fix the use of rowcount because it can return -1 or None according to PEP249 2009-07-07 19:40:34 +02:00
Cédric Krier b4c0d4a418 Change string domain into list 2009-06-23 18:52:07 +02:00
Cédric Krier 59bb83ab13 Add invoice number to report name 2009-06-22 19:08:54 +02:00
Cédric Krier 091e02ef63 Fix InvoiceReport for new Report.execute result 2009-06-22 10:47:14 +02:00