Commit Graph

40 Commits

Author SHA1 Message Date
?ngel ?lvarez 991cf377cc fix mispelled code 2019-01-06 10:08:36 +01:00
?ngel ?lvarez 1ab00e6c44 Add ir.message and use UserWarning/UserError 2019-01-06 10:07:35 +01:00
Raimon Esteve 5796336dce Replace self to invoice from >4.8 in date control when amount is round 0
From changeset-a67397bf91c1
2018-12-14 10:06:32 +01:00
Bernat Brunet Torruella 0727f139fe Fix problem on sequence date control, when amount is round 0. 2018-12-11 13:42:03 +01:00
Raimon Esteve 2aa2ad43cd Search invoices that has number and not draft state
From changeset-ff6ac72690be
2018-11-19 13:51:58 +01:00
Albert Cervera i Areny 9a7e89dda6 Migrate to python 3 2018-08-24 12:16:31 +02:00
Raimon Esteve 2575e06d6f FIX get first languages in case has language in transaction or default 'en' 2018-04-17 23:22:04 +02:00
Raimon Esteve fd4a7ba073 Check invoice number and dates when an invoice has not number
From changeset-39bcbc8ec7e5
2018-03-15 10:15:13 +01:00
?ngel ?lvarez e639ae2c78 fix account_invoice consecutive, adapt to 4.0 to calc invoice type 2018-01-11 23:48:38 +01:00
C?dric Krier da21626f4a Fix style 2018-01-09 15:53:17 +01:00
C?dric Krier 3b9a2fd9e6 Remove volumes from drone and fix tests 2018-01-09 15:53:01 +01:00
Raimon Esteve 6c87bd07dd FIX search account_invoice_multisequence module when state is activated 2017-02-28 11:55:52 +01:00
Raimon Esteve e59d6c24a2 Check number when the invoice already has a number
Revert changeset-d04736470e24
2017-01-20 14:49:57 +01:00
Raimon Esteve 0241b61d1c Make date not readonly when the number is already set
Revert changeset-6ba7d3dfd85c
2017-01-20 14:38:28 +01:00
Sergi Almacellas Abellana c92fc53cba Make date readonly when the number is already set
Is should not be possible to modify the invoice_date when a number is set,
otherwise it should be possible to make an invoice which is not consecutive
because we only check it when creating the number.
2016-12-20 15:30:28 +01:00
Sergi Almacellas Abellana d9cf25e165 Ensure a language instance is always used to format date 2016-12-19 10:07:08 +01:00
Raimon Esteve 6944e72aa6 pyflakes 2016-12-12 11:38:23 +01:00
Raimon Esteve 207a7731d4 Rename language code
issue5443
2016-12-12 11:34:10 +01:00
Sergi Almacellas Abellana 4cf1afe561 Change Invoice.set_number into classmethod 2016-08-11 15:20:20 +02:00
jmartin cf9e3780f1 Merge invoice and credit note 2016-03-29 17:30:01 +02:00
jmartin 532069914b Add python 3 support 2016-03-29 11:43:12 +02:00
jmartin 070a123239 Follow PEP-0249 for Transaction and backends 2016-03-10 13:34:40 +01:00
Sergi Almacellas Abellana 144c6073ee Don't check for number correctness when the invoice already has a number
(grafted from 6ba7d3dfd85ce19523657c21b9fd06e5173c7c80)
2016-01-13 15:45:32 +01:00
resteve 2d3707e646 Rename ir.module.module to ir.module 2015-09-29 15:43:31 +02:00
Bernat Brunet Torruella cd580ca48a not control the invoice_date and accounting_date are to be equals 2015-09-28 15:04:28 +02:00
Bernat Brunet Torruella d1d03f62da Add a control in the invoice validation that it have the same date for the invoice_date and accounting_date, because is needed for the number and date correlation control 2015-08-11 10:49:07 +02:00
Sergi Almacellas Abellana dac1c6f378 Add tests and fix pyflakes 2015-05-11 17:48:45 +02:00
Sergi Almacellas Abellana f44d16370b Check invoices on the same fiscalyear, not on the same period only
Witout this changes an unconsecutive invoice can be generated if it's placed
on another period of the same fiscalyear
2015-05-06 11:47:52 +02:00
Jordi Esteve 054fced7a8 Fix extra module name 'account_invoice_multisequence' 2015-03-20 19:14:18 +01:00
jmartin 750c0e3dd3 Add extras depend of account_invoice_sequence 2014-11-10 13:51:42 +01:00
jmartin 0ea7b8dbae Add period condition to avoid search of numbers of other periods 2014-11-10 13:31:41 +01:00
Jordi Esteve d9ec186853 Improve error message with date format depending on transaction language 2014-08-31 02:14:37 +02:00
Sergi Almacellas Abellana 8ba461fd09 Use python-sql instead of raw query 2014-07-18 16:22:06 +02:00
Sergi Almacellas Abellana fe4f7f4fe5 Only validate non draft invoices. 2013-04-22 14:28:10 +02:00
Albert Cervera i Areny 8540b91962 pyflakes fixes. 2013-04-16 23:07:22 +02:00
Sergi Almacellas Abellana 02d2a65aaf [FIX] Always call super on set_number
If you don't call always super the supplier invoices won't get any secuence number.
2013-03-21 12:18:28 +01:00
resteve 8e3b4eccb1 Add company in query set_number 2012-10-17 12:13:36 +02:00
resteve 0e973f9308 Active Record 2012-10-17 11:18:43 +02:00
resteve fcc6e3c371 Readme and Legal notice 2012-08-27 12:35:30 +02:00
resteve c056765eb7 Initial release 2012-08-27 12:19:36 +02:00