Commit Graph

79 Commits

Author SHA1 Message Date
Pedro M. Baeza
9cbebbb551 [FIX] contract: Switch string > title in buttons
In v14, the `string` attribute of the buttons is shown directly in UI.
The tooltips are now put through `title` attribute. As that was the
original intention, let's switch `string` to `title`.
2022-11-03 20:10:51 +01:00
Víctor Martínez
a148e91cb5 [IMP] contract: Use _prepare_home_portal_values() function. 2022-09-02 17:08:37 +02:00
chandni299
2ad4a2d790 [14.0][IMP] contract : show tags with colors in the contract 2022-07-27 14:43:19 +02:00
OCA-git-bot
628ec6fc68 Merge PR #809 into 14.0
Signed-off-by rousseldenis
2022-06-18 11:15:27 +00:00
Denis Roussel
25dd79a8d0 [IMP] contract: Add contract lines entry point for reporting 2022-05-16 09:15:47 +02:00
Denis Roussel
5b5948b4a6 [14.0][IMP] contract: Make last_date_invoiced optional 2022-03-23 16:16:41 +01:00
OCA-git-bot
517170d23f Merge PR #772 into 14.0
Signed-off-by pedrobaeza
2022-02-23 22:25:57 +00:00
Víctor Martínez
476c99a0e1 [IMP] contract: Add discount + price_subtotal fields to the contract lines in the portal view.
TT34117
2022-02-02 09:51:30 +01:00
Denis Roussel
81872b3a49 [IMP] contract: Update button visibility 2022-01-26 09:04:31 +01:00
Denis Roussel
ab1c15b4ca [IMP] contract: Add generation_type field 2022-01-26 09:04:31 +01:00
Denis Roussel
6fd2749114 [IMP] contract: Set visibility on button to show invoices 2022-01-26 09:04:31 +01:00
Denis Roussel
e0b44cfa39 [14.0][IMP] contract: Remove deprecated domain in onchange 2022-01-25 12:00:02 +01:00
Víctor Martínez
69a28f5c0a [IMP] contract: Improve code to show recurring_rule_type from contract line in portal 2021-05-25 10:37:49 +02:00
Denis Roussel
78e52968aa [13.0][FIX] contract: Set layout for section and note in portal template 2021-05-24 09:24:46 +02:00
Víctor Martínez
5790cf4d8f [FIX] contract: Set groups in back_in_edit_mode link to show only correct users 2021-04-01 13:53:04 +02:00
Víctor Martínez
d4d16c4cf6 [IMP] contract: Add fields to contract page in portal 2021-04-01 13:53:04 +02:00
Víctor Martínez
d7dee0c1f8 [IMP] contract: Add contract modification 2021-04-01 13:53:04 +02:00
Pedro M. Baeza
5667977264 [IMP] contract: JS tour on test assets 2021-04-01 13:53:03 +02:00
Víctor Martínez
ea928628bb [IMP] contract: Portal 2021-04-01 13:53:03 +02:00
Pedro M. Baeza
3374384101 [IMP+REF] contract: Allow to set recurrency at header level
Big refactoring for allowing to define recurrency at header level for simplifying
the use of the module for most of the cases where you don't need different
recurrency at line level.
2021-04-01 13:53:03 +02:00
Pedro M. Baeza
fc4eb98c74 [MIG] contract: Migration to 13.0
- Standard procedure
- Adapt invoice creation to new account.move
- Tests adapted
2021-04-01 13:53:03 +02:00
Pedro M. Baeza
a2f71595bf [IMP] : black, isort, prettier 2021-04-01 13:53:03 +02:00
Ernesto Tejeda
cd93b6a114 [FIX] contract: Select the correct sections/notes to be invoiced 2021-04-01 13:53:03 +02:00
Ernesto Tejeda
493501e6c7 [IMP] contract: add section and notes in contract line 2021-04-01 13:53:03 +02:00
Bejaoui Souheil
45122e17ed [IMP] - Place id attribute before model
Co-Authored-By: Carlos Dauden <carlos.dauden@tecnativa.com>
2021-04-01 13:53:03 +02:00
sbejaoui
f9167d81e8 [IMP] - Add contract tags 2021-04-01 13:53:03 +02:00
sbejaoui
3ff689a01d [IMP] - contract termination 2021-04-01 13:53:03 +02:00
sbejaoui
1533e3cd4c [12.0][IMP] - Improve partner With running contracts search view filter 2021-04-01 13:53:03 +02:00
Ernesto Tejeda
e9e3284274 [IMP] contract: add analytic_tag_ids field in contract lines 2021-04-01 13:53:03 +02:00
sbejaoui
becaad164f [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
2021-04-01 13:53:02 +02:00
sbejaoui
f2de4aafe9 [12.0][ADD] - Add note field to contract 2021-04-01 13:53:02 +02:00
Stéphane Bidoul (ACSONE)
4188abb093 [IMP] contract: display invoicing offset 2021-04-01 13:53:02 +02:00
Stéphane Bidoul (ACSONE)
7649f5b385 [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.
2021-04-01 13:53:02 +02:00
Stéphane Bidoul (ACSONE)
ea235974b8 [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.
2021-04-01 13:53:02 +02:00
Enrique
caa5cae7d7 [12.0][FIX] contract & contract_sale - security fix
The lowest model access for contract.contract model is group_account_invoice group. However the addon adds two smart buttons to res.partner view without any security restrictions and without compute_sudo attribute on computed fields.
This causes the view to crash when a user without the proper permissions tries to access the res.partner form view.
The solution adds groups_id to the partner form views in which the buttons are added, so the only loads when the user has proper permissions.
Other way to solve it would be to add compute_sudo attribute to the relevant fields, but this causes an access error when the user clicks on the smart buttons.
2021-04-01 13:53:02 +02:00
hparfr
cc7f8c66a1 Add commercial_partner_id fields into contract module
Remove string attribute
2021-04-01 13:53:02 +02:00
Pedro M. Baeza
a2cd6455ad [FIX+IMP+MIG] contract: Several refinements:
* Remove incorrect oldname attributes.
* Add filter on partners for running contracts (+ a support o2m field for that).
* Cover more tables in model renaming + cleaner code using a loop.
* Don't copy contract lines, but rename table + copy contract records on pre.
* Contract code is now populated to "Reference/Description" field in invoice.
* Order on new contract model has been restored to the same as old analytic accounts.
2021-04-01 13:53:02 +02:00
sbejaoui
f55b537d08 [IMP] - Make one migration from 12.0.1 to 12.0.4
[RMV] - Remove empty file

[IMP] - Update no_update cron after migration

[IMP] - move contract template recurrence info to line level

[FIX] - Fix contract line model description

[IMP] - Link contracts to analytic accounts

[FIX] - Fix pylint

[IMP] - Move chatter and attachments from analytic account to contract

[IMP] - Move account_analytic_id to contract line level

[IMP] - Improve version check in migration script

[IMP] - Move contracts followers from analytic accounts

[ADD] - Add mail.activity.mixin to contract.contract model

remove data drop from migration scripts

[12.0][FIX] - Fix _init_last_date_invoiced

fix flake8

[ADD] - Update contributors list
2021-04-01 13:53:02 +02:00
Thomas Binsfeld
c770e97adb [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
2021-04-01 13:53:02 +02:00
Thomas Binsfeld
3ca769e079 [REF] Contract: split from analytic account 2021-04-01 13:53:02 +02:00
Thomas Binsfeld
70db1094ff [REF] Contract: use context_today instead of time in filters 2021-04-01 13:53:02 +02:00
sbejaoui
5c8c875b61 [FIX] - don't play onchange date_start for old lines on contract template change
[FIX] - Fix stop post message

[FIX] - Fix sale_contract_count should count all partner contract

[FIX] - set recurring_next_date to False if contract line stoped at last date invoiced

[FIX] - Group by next_invoice also considers dates in the past
2021-04-01 13:53:02 +02:00
sbejaoui
5248e17bab [FIX] - Onchange contract line don't reste contract lines
[FIX] - Rename _get_invoiced_period to _get_period_to_invoice

[ADD] - Add stop_at_date_end to _get_period_to_invoice

[FIX] - Remove useless filter
2021-04-01 13:53:02 +02:00
sbejaoui
af8efa9505 [FIX] - Fix In progress contract filter 2021-04-01 13:53:02 +02:00
sbejaoui
4dd60400fd [FIX] - manual_renew_needed should be visible to all contract users 2021-04-01 13:53:02 +02:00
Thomas Binsfeld
62e1a7fd79 [IMP] Contract: matching invoice view depending on contract type
[ADD] Contract: invoice partner
2021-04-01 13:53:02 +02:00
Thomas Binsfeld
ac56addd2b [ADD] Contract: fiscal position
[ADD] Contract: new contributor

[REF] Contract: indexes
2021-04-01 13:53:02 +02:00
sbejaoui
c2555ea18a [IMP] - Replace is_suspended flag by manual_renew_needed
Add a computed field for the first date of the termination notice period

Adapt state compute and search method

[IMP] - Improve unit tests
2021-04-01 13:53:02 +02:00
sbejaoui
46133d4175 [IMP] - Link invoice line to contract lines
[IMP] - Add index on contract line

[IMP] - Add is_suspended flag and _search_state

[IMP] - Add is_suspended flag to stop contract line
2021-04-01 13:53:02 +02:00
sbejaoui
8bef36cdd3 [IMP] - Improve inprogress search filter 2021-04-01 13:53:02 +02:00