Commit Graph
464 Commits
Author SHA1 Message Date
Korbinian Preisler 91febfd671 Do not raise PayInvoiceError on credit note partial payment
issue8401
review249441002
2019-11-01 23:17:42 +01:00
Cédric Krier a6bafb42c5 Group taxes also per base sign
This allow to report in tax code the invoice and credit note separately.

issue8759
review282291002
2019-11-01 22:50:21 +01:00
Cédric Krier 175ec95a49 Avoid override invoices variable when search other invoices
The invoices list should not be modified because it is saved at the end of the method.

issue8724
review286051003
2019-10-24 19:06:04 +02:00
Cédric Krier 1348fb8ba3 Prevent using same sequence on earlier customer invoice
issue5205
review267921002
2019-09-28 23:42:07 +02:00
Cédric Krier e5b5df2776 Add visual context on tree view
issue8562
review261951002
2019-09-20 11:47:15 +02:00
Cédric Krier 6d9276562a Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta

issue8567
review254091002
2019-09-07 23:45:08 +02:00
Sergi Almacellas Abellana f995ad6d22 Show cancel button on posted invoices when its company allows
issue8543
review255741002
2019-08-03 11:15:42 +02:00
Sergi Almacellas Abellana 76e6930e3a Recompute party account when changing invoice_date or accounting_date
The party account may depend be have a replaced_by so we must recompute
it to get the correct based on the invoice date

issue8522
review275761005
2019-07-31 11:59:11 +02:00
Sergi Almacellas Abellana df75a41eb0 Use current account when paying invoice
issue8540
review277631003
2019-07-31 09:18:28 +02:00
Sergi Almacellas Abellana c198d26825 Set correct date on invoice and lines account context
It is required to correctly compute the active accounts depending on the date

issue8523
review287821002
2019-07-26 09:44:39 +02:00
Cédric Krier 020d3f191c Add option to cancel customer invoice
issue8445
review273511002
2019-07-22 23:52:26 +02:00
Cédric Krier 24284cce38 Require tax on tax line
Without a proper tax, the tax line is never shown in any tax code reports.

issue8364
review261511002
2019-06-16 19:14:46 +02:00
Cédric Krier 76a6121fec Use correct API to remove payment_lines
The Many2Many value must be a list of operations.

issue8287
review277321002
2019-05-02 12:50:55 +02:00
Cédric Krier db7148b247 Use id as fallback prefix for record name of line
Non-line type does not have an account, so we need another fallback for those
cases.

issue8302
review285151002
2019-04-24 23:48:35 +02:00
Cédric Krier 3668616183 Process reconciled invoice when posted
A supplier invoice can be paid before being posted. So the workflow should
continue if it is reconciled.

issue7999
review279231002
2019-04-15 22:12:03 +02:00
Cédric Krier e95cf44c2c Add group lines wizard
issue8213
review275091002
2019-04-12 19:43:53 +02:00
Cédric Krier 9702768861 Remove unused help key in cancel button states
issue8262
review279221003
2019-04-12 13:07:26 +02:00
Cédric Krier 6ab587cf70 Raise NotImplementedError when setting Function field without setter
issue7985
review265101002
2019-03-27 00:28:57 +01:00
Cédric Krier 19701b4997 Merge account kind and account type
issue4990
review68401002
2019-03-24 18:00:01 +01:00
Cédric Krier 25f0f7ed1a Show reconciliations lines as payment lines
Once the invoice is paid, we can show the reconciliation lines instead of the
payment lines.

issue8157
review70581002
2019-03-08 23:59:16 +01:00
Cédric Krier 9f85b3efc0 Add rec_name to invoice line
issue8137
review56631002
2019-03-04 18:53:11 +01:00
Cédric Krier fbc8c9b5e5 Add origin on move line and product and category on analytic rule
issue8074
issue8075
review62421002
2019-03-03 23:06:25 +01:00
Cédric Krier f65538a716 Include all identifiers from python-stdnum
issue7906
review72371002
2019-03-02 22:56:01 +01:00
Sergi Almacellas Abellana 16ca779bb9 Add default name ordering on referential models
issue7971
review66501002
2019-01-30 11:58:25 +01:00
Cédric Krier bd7a6163f4 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:28 +01:00
Cédric Krier 2f9187d287 Remove SQL checks on invoice line type
Those checks are already implemented with domain on respective fields.

issue7940
review70471002
2018-12-23 17:31:21 +01:00
Cédric Krier 3a02c0f65f Set cancel state when refund with credit note
and clear partial payments.

Other modules may trigger events base on the paid or cancel state of the
invoice. So we should allow the user to not trigger the paid event when he
cancel an invoice with a credit note.

issue7682
issue4775
review48581002
2018-10-15 22:56:01 +02:00
Cédric Krier bb474a9cfa Do not update domain field in base class
The field on the base class is the one copied on each __setup__ call so if it
is updated (instead of assigned) this creates an implicit loop in the setup
that applies the same update multiple times.

issue7758
review54391002
2018-10-08 16:01:35 +02:00
Cédric Krier 7754c5c3c1 Use accounting date to format invoice number
issue7716
review51541002
2018-09-26 23:06:18 +02:00
Cédric Krier bbc4a49bda Use origin instead of description when paying invoice
The payment move on an invoice must be linked to the invoice with the origin
field and let the description as free text for the user. As there is only one
description for the move, it should be stored on the move instead of the line.

issue7702
review46641002
2018-09-24 14:43:59 +02:00
Cédric Krier 237a155f16 Replace self by cls in classmethod
issue7630
review74341002
2018-09-19 00:15:58 +02:00
Cédric Krier 9d25c28b29 Avoid negative zero as amount to pay
When the amount to pay for a supplier invoice, it should not be multiplied by
-1 otherwise -0.00 will be display which may confuse the user.

issue7584
review56371002
2018-09-17 17:53:24 +02:00
Cédric Krier 71642c6127 Compare amount in invoice currency against amount_to_pay
The transition_pay should have the same test as the default_ask because
amount_to_pay is computed in the invoice currency. Otherwise if the rate is
lower the test fail in transition_pay and the empty ask state is tested which
raises an exception.

issue7192
review52471002
2018-09-17 17:51:05 +02:00
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