Commit Graph
431 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana ea724b8a22 Add invoice payment method
issue7450
review45561002
2018-09-01 11:21:06 +02:00
Cédric Krier a0d25923ea Improve ModelStorage.copy
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default

issue5576
issue7648
review72291002
2018-09-01 01:02:03 +02:00
Cédric Krier 4be2b4ab6a Add support for chart of account evolution
* Add replacement account
* Add period on account and tax code

issue7417
review45671002
2018-08-31 14:58:05 +02:00
Cédric Krier aa232ecf0e Require fresh session to post invoice
issue7568
review51471002
2018-08-26 18:06:56 +02:00
Cédric Krier 648ff41e95 Use material design icons
issue474
review60291002
2018-08-19 20:02:58 +02:00
Cédric Krier 8900f729a9 Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Sergi Almacellas Abellana 96d189ac77 Remove cancel_move from draft button depends
issue7502
review48461004
2018-08-01 10:43:43 +02:00
Cédric Krier d9b40ac0d9 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:07 +02:00
Sergio Morillo f683b42f3e Show number and reference in invoice rec_name
issue7553
review53321002
2018-07-11 17:17:24 +02:00
Cédric Krier 700b6aa777 Remove unused itertools import 2018-06-26 23:57:44 +02:00
Cédric Krier a43da122fb Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:42 +02:00
Cédric Krier 2decfd0898 Use today as fallback for invoice date report
issue7453
review45541002
2018-05-31 14:01:41 +02:00
Cédric Krier 5a4c5fd58f Use depends on methods
issue5191
review48341002
2018-05-31 13:24:28 +02:00
Cédric Krier d56a461bfa Remove tax code from invoice tax
issue6013
review41941002
2018-03-25 23:34:44 +02:00
Cédric Krier 7b14095c22 Improve payment management
* Ensure payments on Invoice does not exceed invoice amount
* Add method to add payments on Invoice
* Update scenario to set period in context for Tax Code sum

issue7139
review44011002
2018-03-24 15:29:47 +01:00
Cédric Krier 058201c87f Add missing invoice in depends
issue7249
review39241002
2018-03-24 13:46:10 +01:00
Sergi Almacellas Abellana 1567a68edd Apply party tax rules on on_change_account without invoice
Also call tax rule with empty tax to apply aditional taxes

issue7203
review36001003
2018-03-24 12:07:26 +01:00
Cédric Krier f9934f7f6d Return the best combination for get_reconcile_lines_for_amount
issue7153
review43221002
2018-03-14 20:24:48 +01:00
Sergi Almacellas Abellana 88322f767a Add depends on Button
issue6919
review40811002
2018-02-19 11:37:06 +01:00
Cédric Krier 51b6786100 Make currency editable even if lines have been filled
This is no more needed as since rev 1cabb884a217 the unit price is no more
computed automatically.

issue6972
review39991002
2018-01-08 19:32:40 +01:00
Cédric Krier c6140197d2 Set context on Report.execute
Setting the context on Report._get_records does not work because the records
are not actually instantiated on the call but later so the context is lost.

issue7031
review36931002
2017-12-26 17:27:03 +01:00
Cédric Krier 6d8dc227b7 Change reconciled from Boolean to Date
It gives more information to show the date the invoice was paid.

issue7014
review43831002
2017-12-20 19:25:26 +01:00
Cédric Krier 562e68a3a3 Make description on invoice line optional
issue6860
review43781002
2017-12-18 19:02:44 +01:00
Cédric Krier d26c0a6dde Compare amount in the invoice currency against amount_to_pay
issue6842
review40841002
2017-12-06 01:10:35 +01:00
Sergi Almacellas Abellana afbcfe61c9 Do not catch exception on on_change_product
issue6913
review36851002
2017-11-27 16:51:32 +01:00
Sergi Almacellas Abellana 2ad0d23e06 Use tax sequence as default value for invoice taxes sequence
issue6793
review40691002
2017-10-02 10:17:35 +02:00
Sergi Almacellas Abellana 08b600ccae Show taxes extra description on invoice report
issue2329
review41541002
2017-10-02 09:44:08 +02:00
Sergi Almacellas Abellana cb2141d98c Use used properties for account payable and receivable
issue6561
review38471002
2017-09-28 10:18:05 +02:00
Cédric Krier 5513035b91 Add party tax identifier on invoice
When setting the number, if no tax identifier is defined, the default one is
filled.

issue6733
review40601002
2017-09-26 01:23:42 +02:00
Cédric Krier 98b528ff42 Prevent to enter invoice line if company is not set
The company of invoice line is set by the domain from invoice lines. So if the
field is empty, the invoice line is not valid because company is required.

issue6762
review38681002
2017-09-20 19:07:24 +02:00
Cédric Krier efa0e5583f Use single report for invoice
It replaces the custom wizard that manage the printing of many invoices at
once.

issue6640
review42521002
2017-09-03 11:17:09 +02:00
Sergi Almacellas Abellana 0923543707 Don't negate credit line quantity when is empty
issue6508
review40371002
2017-05-17 16:46:27 +02:00
Cédric Krier 52e68de80b Correct wrong quotes in no_invoice_sequence error message 2017-04-04 15:23:55 +02:00
Sergi Almacellas Abellana 012d690795 Use Match pattern for invoice sequences
issue6212
review31991002
2017-03-30 09:45:15 +02:00
Sergi Almacellas Abellana 604b6eebd0 Skip lines without product to determine if invoice is credit_note
Also don't consider lines with zero amount as credit notes

issue6253
review35261002
2017-03-01 09:58:30 +01:00
Sergi Almacellas Abellana 8a262e7d15 Add default invoice state on Invoice Lines
This is required for creating invoice lines not linked to any
invoice

issue6226
review27071002
2017-02-01 10:24:50 +01:00
Cédric Krier 229043d36f Save the modified instances in validate_invoice
As browse creates a new list of instances on which the move is set, this is the
list that must be saved instead of the original which is never modified.

issue6185
review32981002
2017-01-13 20:13:09 +01:00
Cédric Krier acafe2af9d Disable with_refund when it is not available
This provides a better user experience than raising an error message.

issue6112
review34521002
2016-12-21 23:11:22 +01:00
Cédric Krier e3e92f6f58 Manage None as value of field in on_change method
issue6069
review27851002
2016-11-27 22:15:01 +01:00
Sergi Almacellas Abellana a7d6b4e3a7 Set date on PayInvoice.ask transition
Otherwise when using a different currency it raises an error because an
exchange rate can not be found for an empty date.
issue6053
review32821002
2016-11-24 16:42:48 +01:00
Sergi Almacellas Abellana 02a252d84b Skip posted and paid invoices on set_number
When unreconciling the payment of an invoice without tax_identifier the
set_number function is called and it tries to write on tax_identifier field,
which is not allowed to be done because of check_modify.

issue6028
review33621002
2016-11-12 14:23:22 +01:00
Cédric Krier e190a02ef9 Add tax identifier on invoice
Some companies have more than one tax identifier, so this provides a way to
define which one to print on the invoice.

issue5998
review28961002
2016-10-31 17:29:23 +01:00
Sergi Almacellas Abellana 1c6437b9c3 Avoid reading all category uoms when testing uom.category
issue5982
review28951002
2016-10-28 09:51:29 +02:00
Sergi Almacellas Abellana ac38deecaa Use sequence_ordered
issue5105
2016-09-13 14:03:55 +02:00
Cédric Krier 0ee2db70f5 Support address_with_party in invoice report
issue2327
review28661002
2016-09-06 09:23:44 +02:00
Cédric Krier 98340a7e61 Use instances to create invoice account moves
issue5751
review13931002
2016-08-10 22:56:09 +02:00
Cédric Krier 5bec617621 Add configuration option to store invoice report cache in filestore
issue5693
review28461002
2016-07-29 11:02:28 +02:00
Cédric Krier d402aaf364 Remove code to compute amount_writeoff in default_ask
Indeed we can rely on the client calling the on_change_lines to compute and
update the amount_writeoff.

issue4917
review29401002
2016-07-26 23:05:20 +02:00
Cédric Krier 7691b7c64c Use the payment date to compute the write-off in on_change_lines
issue5725
review30341002
2016-07-23 21:23:16 +02:00
Sergi Almacellas Abellana 462c419b77 Replace readonly groups by ir.model.button
issue5068
review29351004
2016-07-18 14:03:30 +02:00