Commit Graph

1793 Commits

Author SHA1 Message Date
OCA-git-bot
6a751263a9 Merge PR #444 into 12.0
Signed-off-by sbejaoui
2019-12-23 16:20:39 +00:00
sbejaoui
74d7f4202f [IMP] - improve code: unify methods argument _renew_create_line and _renew_extend_line 2019-12-23 16:49:18 +01:00
sbejaoui
61737ea920 [12.0][IMP] - extend contract line at renewal 2019-12-23 16:49:18 +01:00
sbejaoui
c7365b028f [12.0][IMP] - add new option: create_new_line_at_contract_line_renew
Add a company config option to decide whether to create or to extend contract
line at renew action
2019-12-23 16:49:18 +01:00
OCA-git-bot
c97b4a9836 contract_forecast 12.0.1.0.2 2019-12-23 09:41:11 +00:00
sbejaoui
fd10c32f4f [12.0][ADD] - Add note field to contract 2019-12-23 10:27:54 +01:00
OCA-git-bot
bc99f2c2d2 Merge PR #439 into 12.0
Signed-off-by sbejaoui
2019-12-23 09:26:14 +00:00
OCA Transbot
659b91b0f0 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-12.0/contract-12.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract/
2019-12-22 22:55:12 +00:00
OCA-git-bot
fa02bf13a9 contract 12.0.5.1.0 2019-12-22 22:54:50 +00:00
oca-travis
7df7f79702 [UPD] Update contract.pot 2019-12-22 22:39:28 +00:00
OCA-git-bot
51d8ccd387 Merge PR #402 into 12.0
Signed-off-by sbidoul
2019-12-22 22:24:35 +00:00
sbejaoui
a0d9fa2c99 [12.0][FIX] - raise an error when next invoice date before the last date invoiced 2019-12-21 14:11:43 +01:00
sbejaoui
294f92b7ac [12.0][IMP] - Add failing test for next invoice date before the last date invoiced 2019-12-21 14:11:02 +01:00
sbejaoui
f160b68d46 [FIX] - use the next_period dates to compute forecast dates
use the new methods for next period calculation result of the refactoring in #434
to consider the recurring_invoicing_type for monthlylastday mode and clean code
2019-12-18 17:49:55 +01:00
sbejaoui
47eb821dc6 [IMP] - add failing test for monthlylastday, pre-paid case 2019-12-18 17:49:24 +01:00
Daniel Reis
89958e5cfe [FIX] Ensure Analytic Account is copied from SO to Agreement 2019-12-17 14:22:02 +00:00
Augusto D. Lisbôa
7694b30b36 Translated using Weblate (Portuguese (Brazil))
Currently translated at 54.9% (156 of 284 strings)

Translation: contract-12.0/contract-12.0-agreement_legal
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_legal/pt_BR/
2019-12-16 15:05:11 +00:00
Augusto D. Lisbôa
3c7de0372f Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (36 of 36 strings)

Translation: contract-12.0/contract-12.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement/pt_BR/
2019-12-16 15:05:10 +00:00
Augusto D. Lisbôa
270a0aca60 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (34 of 34 strings)

Translation: contract-12.0/contract-12.0-contract_variable_quantity
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract_variable_quantity/pt_BR/
2019-12-16 15:05:09 +00:00
Augusto D. Lisbôa
a33994fb4b Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (216 of 216 strings)

Translation: contract-12.0/contract-12.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract/pt_BR/
2019-12-16 15:05:09 +00:00
Augusto D. Lisbôa
9ba614804c Added translation using Weblate (Portuguese (Brazil)) 2019-12-16 12:36:21 +00:00
Augusto D. Lisbôa
cfcfc842f8 Added translation using Weblate (Portuguese (Brazil)) 2019-12-16 12:13:05 +00:00
OCA-git-bot
c677201ad4 agreement_legal 12.0.1.1.1 2019-12-12 16:23:54 +00:00
OCA-git-bot
41b6553839 contract_variable_quantity 12.0.2.1.1 2019-12-12 16:23:52 +00:00
OCA-git-bot
bc89f74501 contract_sale_invoicing 12.0.1.0.2 2019-12-12 16:23:49 +00:00
OCA-git-bot
31d2102f4d Merge PR #394 into 12.0
Signed-off-by max3903
2019-12-12 15:51:47 +00:00
OCA Transbot
887be3f9fb Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-12.0/contract-12.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract/
2019-12-12 09:46:27 +00:00
OCA-git-bot
e07ebbe2f7 contract_sale_mandate 12.0.2.0.0 2019-12-12 09:46:08 +00:00
OCA-git-bot
bd08753cc6 contract 12.0.5.0.0 2019-12-12 09:46:06 +00:00
OCA-git-bot
7a0c2ee100 product_contract 12.0.3.0.0 2019-12-12 09:46:04 +00:00
oca-travis
7c8aa7f9b6 [UPD] Update contract.pot 2019-12-12 09:26:45 +00:00
OCA-git-bot
755a03562b Merge PR #434 into 12.0
Signed-off-by pedrobaeza
2019-12-12 09:07:15 +00:00
sbejaoui
ab4ed31e39 [IMP] - Set recurring_invoicing_type for existing products set to monthlylastday 2019-12-09 16:57:56 +01:00
Stéphane Bidoul (ACSONE)
d9bd82241e [IMP] contract: display invoicing offset 2019-12-09 13:17:16 +01:00
Bejaoui Souheil
7212fc4a13 [REF] contract: simplify _get_period_to_invoice 2019-12-09 13:17:16 +01:00
sbejaoui
5a46e97527 [IMP] contract: add unit test for different combinations for next invoicing period 2019-12-09 13:17:16 +01:00
Stéphane Bidoul (ACSONE)
8ba9033903 [REF] contract: rename _get_recurring_next_date as get_next_invoice_date
It is easier to understand. Also make it public.
2019-12-09 13:17:16 +01:00
Stéphane Bidoul (ACSONE)
5286520795 [REF] contract: make get_next_period_date_end public
Make it public because it is the core logic of the module.
Also, clarify that recurring_invoicing_type
and recurring_invoicing_offset are needed only when
we want the next period to be computed from a
user chosen next invoice date.
2019-12-09 13:17:16 +01:00
Stéphane Bidoul (ACSONE)
8b30ed0a3e [REF] contract: make recurring_invoicing_offset a computed field
In preparation to making it user modifiable.
2019-12-09 13:17:16 +01:00
sbejaoui
a90e18b092 [FIX] contract: Improve unit tests 2019-12-09 13:17:15 +01:00
Stéphane Bidoul (ACSONE)
557097be2d [IMP] contract: support pre-paid for monthlylastday
monthlylastday is (almost) not a special case anymore \o/.
montlylastday is simply a montly period where the
periods are aligned on month boundaries.
The last bit of special casing is that postpaid generates
invoice the day after the last dasy of the period, except
for monthlylastday where the invoice is generated on the
last day of the period. This last exception will disappear
when we put the offset under user control.

This is a breaking change because the post-paid/pre-paid
mode becomes relevant for monthlylastday invoicing.
The field becomes visible in the UI. Code that generate
monthlylastday contract lines must now correctly set
the pre-paid/post-paid mode too. Some tests have had
to be adapted to reflect that.
2019-12-09 13:17:15 +01:00
Stéphane Bidoul (ACSONE)
d53f01d66f [REF] contract: remove one monthlylastday special case
get_relative_delta now works the same for all recurring rules.
Move the special case handling to _init_last_date_invoiced
which is used only for migration.
2019-12-08 12:06:57 +01:00
Stéphane Bidoul (ACSONE)
dd3f3a6c77 [FIX] contract: add missing dependency in computed field 2019-12-06 15:33:26 +01:00
Stéphane Bidoul (ACSONE)
7c3b9bcfa7 [REF] contract: re-add _compute_first_recurring_next_date
For backward compatibility
2019-12-06 14:26:04 +01:00
Stéphane Bidoul (ACSONE)
aff3781c92 [REF] contract: refactor _update_recurring_next_date
Reuse the logic that is now fully located in _get_recurring_next_date.
2019-12-06 14:12:18 +01:00
Martronic SA
d89b2abe41 Translated using Weblate (French)
Currently translated at 92.7% (38 of 41 strings)

Translation: contract-12.0/contract-12.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-product_contract/fr/
2019-12-06 12:04:44 +00:00
Martronic SA
01b5858dd0 Translated using Weblate (French)
Currently translated at 40.1% (85 of 212 strings)

Translation: contract-12.0/contract-12.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-contract/fr/
2019-12-06 12:04:43 +00:00
Stéphane Bidoul (ACSONE)
83cb7c1d21 [REF] contract: refactor _get_period_to_invoice
Move the part of the logic that compute the next
period depending on the chosen next invoice date
to _get_next_period_date_end.
2019-12-06 12:44:23 +01:00
Stéphane Bidoul (ACSONE)
edf6833bec [IMP] contract: add next period start/end fields
Add two computed field showing the next period
start and end date. This improve the UX and will
enable further simplifications in the code.
2019-12-06 11:09:32 +01:00
Stéphane Bidoul (ACSONE)
e6b9ea9ce7 [REF] contract: handle max_date_end in _get_recurring_next_date
This concentrates all next date calculation
logic in one place, and will allow further simplifications.
2019-12-06 10:51:16 +01:00