Commit Graph

18 Commits

Author SHA1 Message Date
Wolfgang Pichler
10e9287cb6 [MIG] contract: Migration to 16.0 2023-03-15 12:38:45 +01:00
João Marques
286399345f [FIX] contract: Remove noupdate in mail template data
TT29820
2023-03-15 12:38:45 +01:00
Jean-Charles Drubay
2cae7764c8 [MIG] contract: Migration to 15.0
Most changes are related to the switch from jinja to qweb in mail templates.

Also included:
- convert deprecated onchange that returns a domain and other deprecation warnings
  (see below)
- Add migration scripts from version 14.0 (force the update of the mail templates)
- Fix warnings from pre-commit checks

Fixes depreciation warnings:

- onchange method ContractAbstractContractLine._onchange_product_id returned
  a domain, this is deprecated
- SavepointCase is deprecated:
  https://github.com/odoo/odoo/blob/15.0/odoo/tests/common.py#L742
- assertDictContainsSubset: According to:
  https://stackoverflow.com/questions/20050913/python-unittests-assertdictcontainssubset-recommended-alternative
2023-03-15 12:38:44 +01:00
Víctor Martínez
e72f0fcba3 [IMP] contract: Improve code to show recurring_rule_type from contract line in portal + [FIX] Force add access_token in "View contract" button from contract modification mail 2023-03-15 12:38:44 +01:00
Francisco Ivan Anton Prieto
86ed1e128c [MIG] contract: Migration to 14.0 2023-03-15 12:38:44 +01:00
Víctor Martínez
632ef42207 [IMP] contract: Add contract modification + contract: Add fields to contract page in portal 2023-03-15 12:38:44 +01:00
Víctor Martínez
5f20736565 [IMP] contract: Portal 2023-03-15 12:38:44 +01:00
Víctor Martínez
5f2e61bb16 [IMP] contract: Add followers to invoices created
[UPD] Update contract.pot

[UPD] README.rst
2023-03-15 12:38:43 +01:00
Pedro M. Baeza
1e66a22c61 [IMP] : black, isort, prettier 2023-03-15 12:38:43 +01:00
sbejaoui
00040dab2a [IMP] - Add contract tags 2023-03-15 12:38:43 +01:00
Thomas Binsfeld
a3f1cba1d1 [REF] contract: Several things
[REF] use context_today instead of time in filters
[REF] Contract: split from analytic account
[REF] Contract Sale Invoicing: split from analytic account
[REF] Contract Sale Invoicing: update translations
[IMP] - Assert that the predecessor is available for new link at uncancel
[RMV] - remove usless changes
[RMV] - Remove usless field recurring_invoices
  after the total isolation between contract model and account analytic one.
  recurring_invoices which was used to mark analytic account as contract became usless
[IMP] - P3 syntax
[IMP] - use @openupgrade.migrate() and openupgrade.logged_query
[IMP] - drop transient table in migration script
2023-03-15 12:37:40 +01:00
sbejaoui
2e701748e3 [IMP] contract: Make recurrence mechanism on contract line
Make recurrence mechanism on contract line and some other refactoring

[FIX] - Keep contract_cron on account_analytic_account model

contract_cron defined with no_update option.
Changing it, will cause issue to past version installation.

[IMP] - Fix recurring_next_date default value

recurring_next_date should have start_date as default value in prepaid policy
and start_date + invoicing_interval if postpaid

[FIX] - Fix test check no journal

[IMP] - Return created invoices on recurring_create_invoice

[IMP] - Specific process to compute recurring_next_date for  monthly-last-day

fixes: #198

[ADD] - Add Post-migration script to bring recurrence info from contract to contract lines

[ADD] - Add search filter based on date_end and recurring_next_date

 - not_finished filter in contract search view
 - finished filter in contract search view
 - Next Invoice group by in contract search view

[ADD] - Add unit tests

- cases to compute first recurring next date
- contract recurring_next_date
- contract date_end

[IMP] - Improve Unit tests

[12.0][IMP] - Add strat/stop wizard to contract line

[12.0][IMP] - Add pause button to contract line

[IMP] - Add state filed in contract line form

[FIX] - stop don't change date_end for finished contract line

[IMP] - Change contract line buttons visibility

Add renewal process with termination notice

[FIX] - don't consider stop_date If it is after the contract line end_date

[IMP] - consider more cases in stop_plan_successor

[IMP] - cancel upcoming line on stop

[IMP] - Chnage next invoice date on un-cancel

[IMP] - Post message in contract on contract line actions

[IMP] - check contract line overlap

[FIX] - invoice last period for post-paid case

[IMP] - Add primary views for contract

[IMP] - don't use related filed for partner_id and pricelist_id

[FIX] - fix stop_plan_successor case 5

contract line start in the suspension period and end after it

[IMP] - improve cancel/uncancel process

[FIX] - Test if start_date is set before compute

[FIX] - date_end include in the period in auto_renew case

[FIX] - in suspension case, contract line should start a day after the end

[IMP] - confirm message on contract line cancel

[IMP] - hide recurring_invoicing_type if recurring_rule_type is monthlylastday

for the monthlylastday case, pre-paid is logicly impossible,
if monthlylastday is set, we consider only post-paid case

[IMP] - Improve unit tests

[IMP] - store last_date_invoiced on contract_line

Improve CRITERIA_ALLOWED_DICT

[IMP] - code improvement

[IMP] - Use last_date_invoiced to set marker in invoice description

[IMP] - add migration script to init last_day_invoiced and some other improvement

[FIX] - a contract line suspended should start a day after the suspension end

[IMP] - don't allow to unlink uncnaceled contrac line

[FIX] - check date_start before onchange

[FIX] - compute recurring_next_date for contract

[IMP] - get contract line default data onchange product_id

[IMP] - Add responsible to contract form view

[FIX] - contract recurring_next_date ignore canceled lines

[FIX] - fix _get_invoiced_period if recurring_next_date manually updated

[IMP] - archive contract_line on contract archive
2023-03-15 12:37:28 +01:00
Carlos Dauden
1edf1bfe56 [FIX] contract: Custom values overwrited by xml, missed noupdate 2023-03-15 10:54:36 +01:00
Fekete Mihai
3c8f8662bd [MIG] contract: Migration to version 11.0 2023-03-15 10:43:56 +01:00
cubells
7753273a4e [IMP][10.0] contract: Add report + send by mail (#86)
* [IMP][9.0] contract: Add report + send by mail

* Update translation and rename contract report

* Changes requested and translation updated
2023-03-15 10:43:56 +01:00
Pedro M. Baeza
1e0352a162 [MIG] contract: Migration to version 10.0 2023-03-15 10:43:56 +01:00
Carlos Dauden
e65f6605ac [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2023-03-15 10:43:56 +01:00
Carlos Incaser
0aa65b2e52 [MIG] contract: from v7 to v9 improving features
* Tests added
* Filters added.
* Add _id/_ids in old property fields
* Translations
2023-03-15 10:43:56 +01:00